CN103678506B - The method, apparatus and browser of loading application programs shortcut in a browser - Google Patents
The method, apparatus and browser of loading application programs shortcut in a browser Download PDFInfo
- Publication number
- CN103678506B CN103678506B CN201310591212.7A CN201310591212A CN103678506B CN 103678506 B CN103678506 B CN 103678506B CN 201310591212 A CN201310591212 A CN 201310591212A CN 103678506 B CN103678506 B CN 103678506B
- Authority
- CN
- China
- Prior art keywords
- application program
- operation instruction
- command
- browser
- identifier
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 232
- 230000008569 process Effects 0.000 claims abstract description 173
- 241000700605 Viruses Species 0.000 claims description 62
- 238000012544 monitoring process Methods 0.000 claims description 53
- 244000035744 Hura crepitans Species 0.000 claims description 50
- 238000001514 detection method Methods 0.000 claims description 50
- 230000001960 triggered effect Effects 0.000 claims description 22
- 238000012217 deletion Methods 0.000 claims description 18
- 230000037430 deletion Effects 0.000 claims description 18
- 239000000725 suspension Substances 0.000 claims description 16
- 230000003993 interaction Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 22
- 230000006870 function Effects 0.000 description 11
- 238000009434 installation Methods 0.000 description 10
- 238000011022 operating instruction Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000002155 anti-virotic effect Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 230000024241 parasitism Effects 0.000 description 1
- 230000002688 persistence Effects 0.000 description 1
- 238000004886 process control Methods 0.000 description 1
- 230000003362 replicative effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of method, apparatus and browser of the shortcut of loading application programs in a browser, the method includes:When triggering shortcut in browser side, the corresponding startup order of the shortcut is obtained;The corresponding application program of the shortcut is started using startup order;The application program identification of the application program is added in preset process list;Obtain the performance information of the application program of the application program identification instruction in the process list;By performance information load in the first preset displayed page.The present invention adds the order with interactions such as application program and operating systems in logical process layer, has been finally completed the method used in a browser with scheduling application, can gradually replace the desktop of windows operating systems.
Description
Technical Field
The invention relates to the technical field of browsers, in particular to a method for loading application shortcuts in a browser, a device for loading application shortcuts in a browser and a browser.
Background
The rapid development of the Internet brings people into an information society era, profound influence is generated on the life of people, and people can acquire massive information on the Internet through a browser so as to meet the requirements of life, work, study and the like.
A browser is an application that displays files on a web server or file system and allows a user to interact with the files. Browsers are used to display text, images and other information on the world wide web or local area network. These texts or images can be hyperlinks connecting other websites, so that the user can browse various information quickly and easily.
In order to extend the functions of the browser, some browsers provide plug-ins, the plug-ins can be used for calling application programs of an operating system in the browser, some default application programs of the operating system can be carried in the plug-ins, and some user-defined application programs can be added. However, the plug-in calls other applications only in one direction in the browser, and cannot manage or control the called applications in the browser.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method for loading application shortcuts in a browser and a corresponding apparatus for loading application shortcuts in a browser, and a browser, which overcome or at least partially solve the above problems.
According to one aspect of the present invention, there is provided a method for loading application shortcuts in a browser, comprising:
when a shortcut is triggered at the browser side, acquiring a starting command corresponding to the shortcut;
starting the application program corresponding to the shortcut by adopting the starting command;
adding the application program identification of the application program into a preset process list;
acquiring performance information of the application program indicated by the application program identifier in the process list;
and loading the performance information in a preset first display page.
Optionally, the performance information includes one or more of:
process identifier, user name, session ID, CPU usage, CPU time, memory working set, memory peak working set, memory working set increment, memory dedicated working set, memory commit size, memory page buffer pool, memory non-page buffer pool, page fault increment, base priority, handle number, thread number, user object, I/O read, I/O write, I/O other, I/O read byte/command line, description information.
Optionally, the method further comprises:
acquiring performance information of the application program indicated by the application program identifier in the process list within a preset time period;
correspondingly displaying the performance information in the preset time period in a preset second display page;
or,
and generating a report document according to the performance information in the preset time period.
Optionally, the method further comprises:
acquiring a notification message of the application program indicated by the application program identifier in the process list;
and correspondingly prompting the notification message on a preset third display page.
Optionally, the method further comprises:
when an operation instruction for the application program identification is received, the operation indicated by the operation instruction is executed.
Optionally, the operation command includes an operation instruction for the browser;
the operation instruction for the browser comprises an operation instruction for ending a process, an operation instruction for stopping monitoring and/or an operation instruction for deleting.
Optionally, the operation command comprises an operation instruction for an operating system;
the operation instruction for the operating system comprises an uninstalled operation instruction and/or a suspended operation instruction.
Optionally, the operation command includes an operation instruction for virus detection.
Optionally, the operation command includes an operation instruction of sandbox operation.
Optionally, the step of executing the operation indicated by the operation instruction includes:
for an ending command corresponding to the operation instruction of the ending process of the application program identifier, ending the operation of the application program corresponding to the application program identifier by adopting the ending command;
and/or the presence of a gas in the gas,
for a monitoring stopping command corresponding to the monitoring stopping operation instruction of the application program identifier, stopping monitoring of the application program corresponding to the application program identifier by using the monitoring stopping command;
and/or the presence of a gas in the gas,
and deleting the application program identifier from the current page by adopting the deletion command aiming at the deletion command corresponding to the operation instruction for deleting the application program identifier.
Optionally, the step of executing the operation indicated by the operation instruction includes:
for an uninstalling command corresponding to the uninstalled operation instruction of the application program identifier, adopting the uninstalling command to uninstall the application program corresponding to the application program identifier;
and/or the presence of a gas in the gas,
and aiming at a suspension command corresponding to the suspended operation instruction of the application program identifier, adopting the suspension command to execute the suspended operation on the application program corresponding to the application program identifier.
Optionally, the step of executing the operation indicated by the operation instruction includes:
and aiming at a virus detection command corresponding to the operation instruction of the virus detection of the application program identifier, adopting the virus detection command to execute virus detection on the application program corresponding to the application program identifier.
Optionally, the step of executing the operation indicated by the operation instruction includes:
and aiming at a sandbox operation command corresponding to the sandbox operation instruction of the application program identification, placing the application program corresponding to the application program identification in a sandbox for operation by adopting the sandbox operation command.
According to another aspect of the present invention, there is provided an apparatus for loading application shortcuts in a browser, comprising:
the starting command acquisition module is suitable for acquiring a starting command corresponding to the shortcut when the shortcut is triggered at the browser side;
the application program starting module is suitable for starting the application program corresponding to the shortcut by adopting the starting command;
the process list adding module is suitable for adding the application program identifier of the application program into a preset process list;
the first performance information acquisition module is suitable for acquiring the performance information of the application program indicated by the application program identifier in the process list;
and the loading module is suitable for loading the performance information into a preset first display page.
Optionally, the performance information includes one or more of:
process identifier, user name, session ID, CPU usage, CPU time, memory working set, memory peak working set, memory working set increment, memory dedicated working set, memory commit size, memory page buffer pool, memory non-page buffer pool, page fault increment, base priority, handle number, thread number, user object, I/O read, I/O write, I/O other, I/O read byte/command line, description information.
Optionally, the method further comprises:
the second performance information acquisition module is suitable for acquiring performance information of the application program indicated by the application program identifier in the process list within a preset time period;
the display module is suitable for correspondingly displaying the performance information in the preset time period in a preset second display page;
or,
and the report document generation module is suitable for generating a report document according to the performance information in the preset time period.
Optionally, the method further comprises:
the notification message acquisition module is suitable for acquiring the notification message of the application program indicated by the application program identifier in the process list;
and the prompting module is suitable for correspondingly prompting the notification message on a preset third display page.
Optionally, the method further comprises:
and the operation instruction execution module is suitable for executing the operation indicated by the operation instruction when the operation instruction aiming at the application program identification is received.
Optionally, the operation command includes an operation instruction for the browser;
the operation instruction for the browser comprises an operation instruction for ending a process, an operation instruction for stopping monitoring and/or an operation instruction for deleting.
Optionally, the operation command comprises an operation instruction for an operating system;
the operation instruction for the operating system comprises an uninstalled operation instruction and/or a suspended operation instruction.
Optionally, the operation command includes an operation instruction for virus detection.
Optionally, the operation command includes an operation instruction of sandbox operation.
Optionally, the operation instruction execution module is further adapted to:
for an ending command corresponding to the operation instruction of the ending process of the application program identifier, ending the operation of the application program corresponding to the application program identifier by adopting the ending command;
and/or the presence of a gas in the gas,
for a monitoring stopping command corresponding to the monitoring stopping operation instruction of the application program identifier, finishing monitoring the application program corresponding to the application program identifier by adopting the monitoring command;
and/or the presence of a gas in the gas,
and deleting the application program identifier from the current page by adopting the deletion command aiming at the deletion command corresponding to the operation instruction for deleting the application program identifier.
Optionally, the operation instruction execution module is further adapted to:
for an uninstalling command corresponding to the uninstalled operation instruction of the application program identifier, adopting the uninstalling command to uninstall the application program corresponding to the application program identifier;
and aiming at a suspension command corresponding to the suspended operation instruction of the application program identifier, adopting the suspension command to execute the suspended operation on the application program corresponding to the application program identifier.
Optionally, the operation instruction execution module is further adapted to:
and aiming at a virus detection command corresponding to the operation instruction of the virus detection of the application program identifier, adopting the virus detection command to execute virus detection on the application program corresponding to the application program identifier.
Optionally, the operation instruction execution module is further adapted to:
and aiming at a sandbox operation command corresponding to the sandbox operation instruction of the application program identification, placing the application program corresponding to the application program identification in a sandbox for operation by adopting the sandbox operation command.
According to another aspect of the present invention, there is provided a browser including:
the starting command acquisition module is suitable for acquiring a starting command corresponding to the shortcut when the shortcut is triggered at the browser side;
the application program starting module is suitable for starting the application program corresponding to the shortcut by adopting the starting command;
the process list adding module is suitable for adding the application program identifier of the application program into a preset process list;
the first performance information acquisition module is suitable for acquiring the performance information of the application program indicated by the application program identifier in the process list;
and the loading module is suitable for loading the performance information into a preset first display page.
The invention blurs the boundary of the operating system and the network, also fades the execution entrance of the operating system, and more application programs and the safety function of the operating system can be directly accessed into the browser. In the data processing mode of the browser, part of the data is displayed by the page, all the data is stored in the database sqlite, and a built-in application program control center in the background of the browser is used as a service and can be connected with the foreground page and the background database sqlite and manage the application program and the process on the control level. The browser can be visually considered to be a simple three-layer structure, but commands interacting with an application program, an operating system and the like are added into a logic processing layer, and finally a method for using and scheduling the application program in the browser is completed, and the browser can gradually replace a desktop of a windows operating system.
The browser can be used as a portal of an operating system to gradually replace a user desktop, and an operating mode is also transferred to a page based on a desktop shortcut mode, so that the operating system is simpler, and the performance can be greatly improved.
The application program is finally executed by the browser calling system, the execution mode of the application program is controlled by the browser, the execution of the application program is safer and more reliable, and the browser can gradually replace security software such as antivirus software and the like.
The invention can directly detect the virus of the application program, avoids the operation step of starting antivirus software to select the application program, is convenient for the user to operate and improves the safety of an operating system.
The invention can directly adopt the sandbox to run the application program, is convenient for the user to operate, avoids the application program from directly running in the operating system, and improves the safety of the operating system.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating steps of embodiment 1 of a method for loading application shortcuts in a browser, according to one embodiment of the present invention;
FIG. 2 illustrates an exemplary diagram of a presentation page of a shortcut in accordance with one embodiment of the present invention;
FIG. 3 illustrates an exemplary diagram of a network packet according to one embodiment of the invention;
FIG. 4 illustrates an example of a shortcut list representation in accordance with one embodiment of the present invention;
FIG. 5 is a flowchart illustrating the steps of embodiment 2 of a method for loading application shortcuts in a browser, according to one embodiment of the present invention;
FIG. 6 is a flowchart illustrating the steps of embodiment 3 of a method for loading application shortcuts in a browser in accordance with one embodiment of the present invention;
FIG. 7 is a flowchart illustrating the steps of embodiment 4 of a method for loading application shortcuts in a browser, according to one embodiment of the present invention;
FIG. 8 shows a preferred exemplary diagram of a step 706 according to an embodiment of the invention;
FIG. 9 illustrates a preferred example diagram of an operational logic according to one embodiment of the present invention;
FIG. 10 is a diagram illustrating a preferred architecture of a Web service according to one embodiment of the present invention;
FIG. 11 shows a block diagram of an apparatus embodiment 1 for loading application shortcuts in a browser, according to an embodiment of the invention;
FIG. 12 shows a block diagram of an embodiment 2 of an apparatus for loading application shortcuts in a browser, according to an embodiment of the present invention;
FIG. 13 shows a block diagram of an embodiment 3 of an apparatus for loading application shortcuts in a browser, according to an embodiment of the present invention;
FIG. 14 shows a block diagram of an embodiment 4 of an apparatus for loading application shortcuts in a browser, according to an embodiment of the present invention;
FIG. 15 is a block diagram of the structure of an embodiment 1 of a browser in accordance with an embodiment of the present invention;
FIG. 16 is a block diagram of the structure of an embodiment 2 of a browser in accordance with an embodiment of the present invention;
FIG. 17 is a block diagram of the structure of an embodiment 3 of a browser in accordance with an embodiment of the present invention;
FIG. 18 is a block diagram of the structure of one embodiment of a browser 4 according to the present invention; and the number of the first and second groups,
fig. 19 is a diagram showing a preferred configuration example of a browser according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, a flowchart illustrating steps of embodiment 1 of a method for loading an application shortcut in a browser according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 101, when a shortcut is triggered at a browser side, acquiring a starting command corresponding to the shortcut;
by applying the embodiment of the invention, the shortcut of the application program can be added in the browser in advance. As shown in fig. 2 and fig. 3, on one hand, the browser preset shortcut and the user-defined addition shortcut can be divided according to the addition mode. The browser preset shortcut can be an application program carried by an operating system, such as an Office application program, a drawing application program, a calculator application program and the like, and can also be a network application program; the user-defined addition shortcut can adopt a preset function button to trigger addition, or directly adopts right-click of a mouse to trigger direct addition, and the like. On the other hand, shortcuts for local applications and/or shortcuts for network applications may be classified by application category. The local application program may be an application program installed on a device on the browser side, and the network application program may be an application program in which an installation file is stored on a network.
In one case, the user may set the installation path and grouping information of the local application. The group information may implement group management of shortcut nesting, as shown in fig. 2, in a third display page preset in the browser, the left side may be a group, and the right side may be a corresponding shortcut in the group. After receiving the installation path and the grouping information of the local application program input by the user, the embodiment of the invention can acquire the application program identifier, the use time, the application identifier picture, the application program capacity, the start command and/or the uninstall command of the application program. The application program identifier may be a unique identifier of the application program, and may specifically be any character string as long as the application program can be uniquely identified. The use time is recorded every time the application is executed, and the use time can be used for counting and sorting information, judging the use frequency of the user and judging the latest use condition of the user. The application identification picture can be used for visually identifying the application program, and the Icon picture in the program catalog can be executed for the application program. The application capacity may be the size of the program files of the application. The start command may be an installation path of the application Program, for example, "D: \ Program Files \ abcayer \ abcayer.exe", in the case that the user does not specify the start command, and the start command may be a start command specified by the user, specifically, an installation path with a running parameter, for example, "D: \ Boson NetSim \ Net designer.exe" -mpqball. The uninstall command may be an uninstaller, such as "unins," that calls the application, which may be found in the application's installation directory.
In another case, the server may push the application identification of the web application and the download address of the installation file to the browser, and the browser generates the application identification and the start command after the browser acquires the application identification and the start command, including the command to download the web application. As shown in fig. 4, after acquiring an address link (installation path or download address), grouping information, an application identification, a usage time, an application identification picture, an application capacity, a start command, and/or an uninstall command, a shortcut list may be generated and stored in a database sqlite preset at the browser side. Wherein Id is application Id, Path is address link, Last _ updated is usage time, Image _ data is application Id picture, Size is application capacity, Folder is packet information, and Cmd is command (e.g. start command, unload command).
And then call the address link from the database, or the address link and the application identification picture, and display them in the corresponding application program group shown in fig. 2 or fig. 3. Specifically, the queryshort (id) may be employed to read an application identification picture (Icon picture) of the shortcut from the database.
A user triggers a shortcut at the browser side, which can be an application identification picture of an application program, and the address link is triggered through the picture; or directly triggering the address link of the application program. And then obtaining the application program identification of the shortcut, and searching the corresponding starting command in the database by adopting the application program identification. In particular, the queryapplnfo (pid) may be employed to read various commands of the application from the database (e.g., start command, unload command, end command, stop monitor command, delete command, suspend command, virus detect command, sandbox launch command, etc.).
Step 102, starting an application program corresponding to the shortcut by using the starting command;
when the application program is a local application program, the local application program can be directly started by adopting the starting command.
When the application program is a network application program, the start command can be adopted to download the installation file of the network application program from the download address, and the application program is started after the installation file is installed.
As shown in fig. 2, after the application is started, for convenience of management, the application may be divided into a group of "opened applications", and the group may be divided into two groups, i.e., "background running" and "window running" according to the running mode, where the application in "background running" is an application running in the background of the system, such as a security application, and the application in "window running" is an application running in the window mode, such as an instant chat tool.
103, adding the application program identifier of the application program into a preset process list;
the application indicated by the application identification in the process list may be initiated by triggering a shortcut on the browser side.
In a specific implementation, addAppsPool (info) may be used for execution, and addAppsPool (info) may add a process of an application to a process maintenance pool when executing an application using a shortcut.
104, acquiring the performance information of the application program indicated by the application program identifier in the process list;
in particular implementations, the class info class may be employed to perform the operation of obtaining performance information. The class info is information of each process unit in the process list, and the class info is a derivative class of a process class and contains shortcut information, which can be used to collect performance information corresponding to the process and also can be used to operate each process.
There is a special case in the class info, that is, some applications are executed multiple times, so that multiple different info instances are generated in the background, which have different pids and the same shortcut identifier, in which case for the presentation of the shortcuts, their notification messages can be displayed in the same shortcut, and at the same time, the number of application instances executed in the background can be displayed. In the presentation page of the process, since different processes are used, they are displayed in units of processes.
In particular implementations, the performance information may include one or more of:
process identifier (Pid), user name, session ID, CPU usage, CPU time, memory working set, memory peak working set, memory working set increment, memory private working set, memory commit size, memory page buffer pool, memory non-page buffer pool, page fault increment, base priority, handle number, thread number, user object, I/O read, I/O write, I/O other, I/O read byte/command line, description information.
Wherein, the process Pid of all processes can be obtained from the maintenance pool of the process by adopting getAllApps ().
The getAppInfo (Pid) may be used to obtain information of a process specifying Pid, where the process information may include a process name, an Icon picture, Pid, a user name, CPU utilization, memory utilization, handles handle, thread information, GDI information, I/O information, description information, start command information, start execution time, and the like.
Of course, the performance information is only used as an example, and when implementing the embodiment of the present invention, other performance information may be set according to an actual situation, which is not limited in the embodiment of the present invention. In addition, besides the above performance information, those skilled in the art may also use other performance information according to actual needs, and the embodiment of the present invention is not limited to this.
And 105, loading the performance information into a preset first display page.
When a user opens a first display page in a browser, the embodiment of the invention can access the process in the current process list, continuously return the performance information of the process in the current process list and continuously refresh the first display page.
Referring to fig. 5, a flowchart illustrating steps of embodiment 2 of a method for loading an application shortcut in a browser according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 501, when a shortcut is triggered on the browser side, a starting command corresponding to the shortcut is acquired;
step 502, starting the application program corresponding to the shortcut by using the starting command;
step 503, adding the application program identifier of the application program into a preset process list;
step 504, acquiring performance information of the application program indicated by the application program identifier in the process list;
step 505, loading the performance information in a preset first display page;
step 506, acquiring performance information of the application program indicated by the application program identifier in the process list within a preset time period;
step 507, correspondingly displaying the performance information in the preset time period in a preset second display page;
when a user selects process information viewing or process reporting for one or more applications, the embodiment of the present invention may acquire performance information of one or more processes in a preset time period, and return to the second presentation page for presentation in browsing. Wherein the preset time period may be from the start of the application to the current time.
Or,
and step 508, generating a report document of the performance information in the preset time period.
The embodiment of the invention can also generate the acquired performance information of the preset time period into report documents (such as picture documents, Word documents, PDF documents and the like) and return the report documents to the current user. In particular, the doconreport () generation process may be employed to derive formatted data for a report document.
Referring to fig. 6, a flowchart illustrating steps of embodiment 3 of a method for loading an application shortcut in a browser according to an embodiment of the present invention is shown, which may specifically include the following steps:
601, when a shortcut is triggered at a browser side, acquiring a starting command corresponding to the shortcut;
step 602, starting the application program corresponding to the shortcut by using the starting command;
step 603, adding the application program identifier of the application program into a preset process list;
step 604, acquiring performance information of the application program indicated by the application program identifier in the process list;
step 605, loading the performance information in a preset first display page.
Step 606, obtaining the notification message of the application program indicated by the application program identifier in the process list;
when the application program is started, a Hook may be hung in the application program, and the Hook may poll the corresponding application program to obtain a notification message of the operating system, for example, chat information of an instant chat application program.
Hook is a platform for Windows message handling mechanisms on which an application can set up subroutines to monitor certain messages for a given window, and the monitored window can be created by other processes. When a message arrives, it is processed before the target window processing function. The hook mechanism allows an application to intercept handling window messages or specific events.
Hook is essentially a segment of a program that handles messages, which are put on the system through system calls. Whenever a particular message is sent, the hook program captures the message before the destination window is reached, i.e. the hook function gets control. In this case, the hook function may process (change) the message, may continue to transfer the message without processing, or may forcibly end the transfer of the message.
In a specific implementation, the obtaining of the message notification may be performed by using a timer class. the timer class may be a class responsible for registering and timing notification message prompts, and is mainly used for handling various things related to time polling, such as message notification acquisition for applications that have already been started and maintenance of process lists.
Step 607, a corresponding prompt is performed on the preset third display page for the notification message.
And the Hook can store the notification messages of the processes of the application programs and return the notification messages to a third display page browsed therein, the third display page can be displayed at regular time, and if the process of the corresponding shortcut acquires the message notification, the application identification picture of the shortcut in the third display page is flashed or prompted by others.
Referring to fig. 7, a flowchart illustrating steps of embodiment 4 of a method for loading an application shortcut in a browser according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 701, when a shortcut is triggered at a browser side, acquiring a starting command corresponding to the shortcut;
step 702, starting the application program corresponding to the shortcut by using the starting command;
step 703, adding the application program identifier of the application program to a preset process list;
step 704, acquiring performance information of the application program indicated by the application program identifier in the process list;
step 705, loading the performance information in a preset first display page.
And step 706, when receiving the operation instruction aiming at the application program identifier, executing the operation indicated by the operation instruction.
In a specific implementation, the user may initiate an operation instruction for the application identifier on the first presentation page, the second presentation page, or the third presentation page.
In one aspect, the operation command may include an operation instruction for a browser; specifically, the operation instruction for the browser may include an operation instruction to end a process, an operation instruction to stop monitoring, and/or an operation instruction to delete.
Referring to fig. 8, which shows a preferred example of a step 706 according to an embodiment of the present invention, the step 706 may specifically include the following sub-steps:
a substep S11, for an end command corresponding to the operation instruction for ending the process of the application program identifier, ending the operation of the application program corresponding to the application program identifier by using the end command;
in a specific implementation, the ending command may be preset in the database, the application identifier is used to find the ending command in the shortcut list of the database, and the ending command is further used to end the running of the application.
Specifically, the execution of the executed process Pid may be ended using the doEndApp (Pid).
And/or the presence of a gas in the gas,
a substep S12, for a monitoring stopping command corresponding to the monitoring stopping operation instruction of the application program identifier, terminating monitoring on the application program corresponding to the application program identifier by using the monitoring stopping command;
in a specific implementation, the monitoring stopping command may be preset in the database, the monitoring stopping command is found in the shortcut list of the database by using the application program identifier, and then the monitoring stopping command is used to stop the monitoring application program, so that the notification message, the performance message and the like may not be returned.
And/or the presence of a gas in the gas,
substep S13, for a deletion command corresponding to the operation instruction for deleting the application identifier, deleting the application identifier from the current page by using the deletion command;
in a specific implementation, the delete command may be preset in the database, the delete command is found in the shortcut list of the database by using the application identifier, and then the application is deleted from the current page (the first display page, the second display page, or the third display page) by using the delete command.
In another aspect, the operation command may include an operation instruction for an operating system; specifically, the operation instruction for the operating system comprises an uninstalled operation instruction and/or a suspended operation instruction.
Substep S14, for an uninstall command corresponding to the uninstalled operation instruction of the application identifier, adopting the uninstall command to uninstall the application corresponding to the application identifier;
in a specific implementation, the uninstall command may be preset in the database, the application identifier is used to find the uninstall command in the shortcut list of the database, and the uninstall command is further used to uninstall the application from the device where the browser is located.
It should be noted that after the application is uninstalled, the relevant information (address link, grouping information, application identifier, usage time, application identifier picture, application capacity, start command and/or uninstall command, etc.) of the application can be deleted from the browser.
And/or the presence of a gas in the gas,
a substep S15, for a suspend command corresponding to the suspended operation instruction of the application program identifier, executing a suspend operation on the application program corresponding to the application program identifier by using the suspend command;
in a specific implementation, the suspend command may be preset in the database, the suspend command is found in the shortcut list of the database by using the application identifier, and then the suspend command is used to suspend the application, that is, the state of the application is temporarily reserved.
On the other hand, the operation command may include an operation instruction for virus detection.
Substep S16, for a virus detection command corresponding to the operation instruction for virus detection of the application program identifier, executing virus detection on the application program corresponding to the application program identifier by using the virus detection command;
in a specific implementation, the virus detection command may be preset in the database, and the application identifier is used to search the virus detection command in the shortcut list of the database, so as to perform virus detection on the application by using the virus detection command.
In particular, a virus is a set of computer instructions or program code that is programmed or inserted into a computer program to destroy computer functions or destroy data, affect computer use, and are capable of replicating itself. The virus has the characteristics of parasitism, infectivity, latency, concealment, destructiveness, touch, and the like.
When detecting that a virus exists in the current application program, security detection data about virus information can be obtained, wherein the virus information specifically can include the number of viruses, the type of viruses, the location of the viruses, the attributes of the viruses, and the like.
The invention can directly detect the virus of the application program, avoids the operation step of starting antivirus software to select the application program, is convenient for the user to operate and improves the safety of an operating system.
On the other hand, the operation command may include an operation instruction for sandbox operation.
And a substep S17, placing the application program corresponding to the application program identifier in a sandbox for operation by using the sandbox operation command, aiming at the sandbox operation command corresponding to the operation instruction of the sandbox operation of the application program identifier.
In a specific implementation, the sandbox running command may be preset in the database, and the application identifier is used to search the sandbox running command in the shortcut list of the database, so that the application corresponding to the application identifier is placed in the sandbox for running by the sandbox running command.
Among them, the commands of the doexecuteApp (cmd) direct operating system can be adopted, including normal operation and sand-phase operation.
In particular, the isolation sandboxing technique of the browser kernel constructs a secure virtual execution environment for the browser kernel, such as IE or firefox. Any disk write by the user through the browser will be redirected to a particular temporary folder. Therefore, even if the webpage contains malicious programs such as viruses, trojans, advertisements and the like, the malicious programs are installed in the temporary folder after being forcibly installed, and the user equipment cannot be damaged. The browser kernel is responsible for interpreting web page languages (e.g., HTML, JavaScript) and rendering (displaying) the web page. Therefore, the so-called browser kernel is an engine for downloading, parsing, executing and rendering a page, and the engine determines how the browser displays the content of the web page and the format information of the page.
The invention can directly adopt the sandbox to run the application program, is convenient for the user to operate, avoids the application program from directly running in the operating system, and improves the safety of the operating system.
Of course, the above operation instruction is only an example, and when implementing the embodiment of the present invention, other operation instructions may be set according to actual situations, which is not limited in the embodiment of the present invention. In addition, besides the above operation instructions, those skilled in the art may also adopt other operation instructions according to actual needs, and the embodiment of the present invention is not limited thereto.
In order to facilitate a better understanding of the invention for those skilled in the art, the invention is further illustrated by way of a complete example below, with reference to fig. 9:
the embodiment of the invention can be divided into four small parts in terms of functions, which are respectively responsible for different function realization and are respectively connected with each other, and the four small parts are respectively: foreground web services, database services, application services, and process services.
Web service: the structure of the Web service is shown in fig. 10, and may include a shortcut foreground and a task management page, which belong to the interface of the user, and the user page is provided by the Web service. In addition to providing pages, Web services are responsible for actions of corresponding users, such as running applications, uninstalling applications, querying performance information, and the like. It resembles a local web site, providing 3 pages: a user shortcut page (third presentation page), a process monitoring page (first presentation page), and a process export report page (second presentation page). Its data sources include database services and process services.
Database service: the purpose of the persistence of the database service is to store and provide application data for the application. This is a two-way process and can be essentially the storage and display of database data. The user provides an interface for adding, deleting and running applications. All the operations are finally triggered in a link mode and transmitted to a background, and then corresponding increasing, deleting, modifying and checking operations are carried out on the data in the database sqlite. The method comprises the following operations:
1. when a user opens a shortcut page, the database service inquires information of all shortcuts and transmits the information to the Web service;
2. when a user adds a shortcut, the database service receives parameters transmitted by the Web service and adds data to the database;
3. when the user modifies and deletes the shortcut, the database service receives the parameters transmitted by the Web service, and modifies and deletes the corresponding data;
4. when the user selects to download and install the shortcut, the database service receives the parameters transmitted by the Web service and adds data to the database.
Application program service: the method carries out information interaction with an interface corresponding to an application program in an operating system, and mainly comprises three parts:
1. when the user selects to execute the shortcut, the Web service responds, executes the corresponding system command, opens the corresponding operating system, and adds the opened process identification into the process list;
2. when the user selects to uninstall the application program, the Web service responds and executes an uninstalled system command;
3. and (4) listing the processes, continuously taking look at notification messages of the processes, continuously returning to the web service, and giving corresponding feedback (such as flashing and the like) in the page.
And (3) process service: the core of the process service is to read and operate data of a process list of the background service and interact with a user process through Web service, wherein the interaction comprises 3 parts, namely process data monitoring, process control and process viewing:
1. when a user opens a data monitoring page, the Web service accesses the process service, the process service continuously returns the detailed information of the processes in the current process list, and the foreground page is continuously refreshed;
2. when a user selects a certain process, and executes operations such as process ending, the Web service transmits parameters to the process service, and the process service executes corresponding system commands according to the parameters transmitted by the user;
3. when the user selects the process information viewing or the process report, the Web service sends a command to the process service, the process service acquires all historical data of one or more processes (determined by parameters) and returns the historical data to the Web service, and the Web service displays corresponding information on a page or generates a report document to be sent to the local part of the user.
The invention blurs the boundary of the operating system and the network, also fades the execution entrance of the operating system, and more application programs and the safety function of the operating system can be directly accessed into the browser. In the data processing mode of the browser, part of the data is displayed by the page, all the data is stored in the database sqlite, and a built-in application program control center in the background of the browser is used as a service and can be connected with the foreground page and the background database sqlite and manage the application program and the process on the control level. The browser can be visually considered to be a simple three-layer structure, but commands interacting with an application program, an operating system and the like are added into a logic processing layer, and finally a method for using and scheduling the application program in the browser is completed, and the browser can gradually replace a desktop of a windows operating system.
The browser can be used as a portal of an operating system to gradually replace a user desktop, and an operating mode is also transferred to a page based on a desktop shortcut mode, so that the operating system is simpler, and the performance can be greatly improved.
The application program is finally executed by the browser calling system, the execution mode of the application program is controlled by the browser, the execution of the application program is safer and more reliable, and the browser can gradually replace security software such as antivirus software and the like.
For simplicity of explanation, the method embodiments are described as a series of acts or combinations, but those skilled in the art will appreciate that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the embodiments of the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 11, a block diagram of an embodiment 1 of an apparatus for loading an application shortcut in a browser according to an embodiment of the present invention is shown, which may specifically include the following modules:
a starting command acquisition module 1101 adapted to acquire a starting command corresponding to a shortcut when the shortcut is triggered on the browser side;
an application program starting module 1102, adapted to start the application program corresponding to the shortcut by using the starting command;
a process list adding module 1103, adapted to add an application identifier of the application to a preset process list;
a first performance information obtaining module 1104, adapted to obtain performance information of the application program indicated by the application program identifier in the process list;
a loading module 1105, adapted to load the performance information into a preset first display page.
In a preferred embodiment of the present invention, the performance information may include one or more of the following:
process identifier, user name, session ID, CPU usage, CPU time, memory working set, memory peak working set, memory working set increment, memory dedicated working set, memory commit size, memory page buffer pool, memory non-page buffer pool, page fault increment, base priority, handle number, thread number, user object, I/O read, I/O write, I/O other, I/O read byte/command line, description.
Referring to fig. 12, a block diagram of an embodiment 2 of an apparatus for loading an application shortcut in a browser according to an embodiment of the present invention is shown, which may specifically include the following modules:
a starting command acquisition module 1201, adapted to acquire a starting command corresponding to a shortcut when the shortcut is triggered at a browser side;
an application program starting module 1202, adapted to start the application program corresponding to the shortcut by using the starting command;
a process list adding module 1203, adapted to add an application identifier of the application to a preset process list;
a first performance information obtaining module 1204, adapted to obtain performance information of the application indicated by the application identifier in the process list;
a loading module 1205 adapted to load the performance information in a preset first display page;
a second performance information obtaining module 1206, adapted to obtain performance information of the application indicated by the application identifier in the process list within a preset time period;
the display module 1207 is adapted to correspondingly display the performance information within the preset time period in a preset second display page;
or,
and the report document generation module 1208 is adapted to generate a report document according to the performance information in the preset time period.
Referring to fig. 13, a block diagram of an embodiment 3 of an apparatus for loading an application shortcut in a browser according to an embodiment of the present invention is shown, which may specifically include the following modules:
a starting command acquisition module 1301, adapted to acquire a starting command corresponding to a shortcut when the shortcut is triggered at the browser side;
an application starting module 1302, adapted to start the application corresponding to the shortcut by using the starting command;
a process list adding module 1303, adapted to add the application program identifier of the application program to a preset process list;
a first performance information obtaining module 1304, adapted to obtain performance information of the application indicated by the application identifier in the process list;
a loading module 1305, adapted to load the performance information in a preset first display page;
a notification message obtaining module 1306, adapted to obtain a notification message of the application indicated by the application identifier in the process list;
the prompt module 1307 is adapted to perform corresponding prompt on the preset third display page for the notification message.
Referring to fig. 14, a block diagram of an embodiment 4 of an apparatus for loading an application shortcut in a browser according to an embodiment of the present invention is shown, which may specifically include the following modules:
a starting command acquisition module 1401, adapted to acquire a starting command corresponding to a shortcut when the shortcut is triggered at a browser side;
an application program starting module 1402 adapted to start the application program corresponding to the shortcut by using the starting command;
a process list adding module 1403, adapted to add the application identifier of the application to a preset process list;
a first performance information obtaining module 1404, adapted to obtain performance information of the application indicated by the application identifier in the process list;
a loading module 1405, adapted to load the performance information in a preset first presentation page;
the operation instruction execution module 1406 is adapted to, when receiving an operation instruction identified for the application program, execute an operation indicated by the operation instruction.
In a preferred embodiment of the present invention, the operation command may include an operation instruction for the browser;
the operation instruction for the browser can comprise an operation instruction for ending a process, an operation instruction for stopping monitoring and/or an operation instruction for deleting.
In a preferred embodiment of the present invention, the operation command may include an operation instruction for an operating system;
the operating instructions for the operating system may include offloaded operating instructions and/or suspended operating instructions.
In a preferred embodiment of the present invention, the operation command may include an operation instruction for virus detection.
In a preferred embodiment of the present invention, the operation command may include an operation instruction for the sandbox to run.
In a preferred embodiment of the present invention, the operation instruction execution module may be further adapted to:
for an ending command corresponding to the operation instruction of the ending process of the application program identifier, ending the operation of the application program corresponding to the application program identifier by adopting the ending command;
and/or the presence of a gas in the gas,
for a monitoring stopping command corresponding to the monitoring stopping operation instruction of the application program identifier, finishing monitoring the application program corresponding to the application program identifier by adopting the monitoring command;
and/or the presence of a gas in the gas,
and deleting the application program identifier from the current page by adopting the deletion command aiming at the deletion command corresponding to the operation instruction for deleting the application program identifier.
In a preferred embodiment of the present invention, the operation instruction execution module may be further adapted to:
for an uninstalling command corresponding to the uninstalled operation instruction of the application program identifier, adopting the uninstalling command to uninstall the application program corresponding to the application program identifier;
and aiming at a suspension command corresponding to the suspended operation instruction of the application program identifier, adopting the suspension command to execute the suspended operation on the application program corresponding to the application program identifier.
In a preferred embodiment of the present invention, the operation instruction execution module may be further adapted to:
and aiming at a virus detection command corresponding to the operation instruction of the virus detection of the application program identifier, adopting the virus detection command to execute virus detection on the application program corresponding to the application program identifier.
In a preferred embodiment of the present invention, the operation instruction execution module may be further adapted to:
and aiming at a sandbox operation command corresponding to the sandbox operation instruction of the application program identification, placing the application program corresponding to the application program identification in a sandbox for operation by adopting the sandbox operation command.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Referring to fig. 15, a block diagram of a structure of an embodiment 1 of a browser according to an embodiment of the present invention is shown, which may specifically include the following modules:
the starting command acquisition module 1501 is adapted to acquire a starting command corresponding to a shortcut when the shortcut is triggered on the browser side;
an application program starting module 1502 adapted to start an application program corresponding to the shortcut by using the start command;
a process list adding module 1503, adapted to add an application identifier of the application to a preset process list;
a first performance information obtaining module 1504, adapted to obtain performance information of an application indicated by an application identifier in the process list;
the loading module 1505 is adapted to load the performance information in a preset first presentation page.
In a preferred embodiment of the present invention, the performance information may include one or more of the following:
process identifier, user name, session ID, CPU usage, CPU time, memory working set, memory peak working set, memory working set increment, memory dedicated working set, memory commit size, memory page buffer pool, memory non-page buffer pool, page fault increment, base priority, handle number, thread number, user object, I/O read, I/O write, I/O other, I/O read byte/command line, description.
Referring to fig. 16, a block diagram of a structure of an embodiment 2 of a browser according to an embodiment of the present invention is shown, which may specifically include the following modules:
the starting command acquisition module 1601 is suitable for acquiring a starting command corresponding to a shortcut when the shortcut is triggered on the browser side;
an application starting module 1602, adapted to start the application corresponding to the shortcut by using the starting command;
a process list adding module 1603, adapted to add the application identifier of the application to a preset process list;
a first performance information obtaining module 1604, adapted to obtain performance information of the application program indicated by the application program identifier in the process list;
a loading module 1605, adapted to load the performance information in a preset first display page;
a second performance information obtaining module 1606 adapted to obtain performance information of the application indicated by the application identifier in the process list within a preset time period;
the display module 1607 is adapted to correspondingly display the performance information within the preset time period in a preset second display page;
or,
a report document generating module 1608 adapted to generate a report document from the performance information within the preset time period.
Referring to fig. 17, a block diagram of a structure of an embodiment 3 of a browser according to an embodiment of the present invention is shown, which may specifically include the following modules:
a start command acquisition module 1701 adapted to acquire a start command corresponding to a shortcut when the shortcut is triggered on the browser side;
an application starting module 1702, adapted to start the application corresponding to the shortcut by using the starting command;
a process list adding module 1703, adapted to add an application identifier of the application to a preset process list;
a first performance information obtaining module 1704, adapted to obtain performance information of the application indicated by the application identifier in the process list;
a loading module 1705, adapted to load the performance information in a preset first display page;
a notification message obtaining module 1706, adapted to obtain a notification message of the application indicated by the application identifier in the process list;
and a prompt module 1707, adapted to perform corresponding prompt on the notification message on a preset third display page.
Referring to fig. 18, a block diagram of a structure of an embodiment 4 of a browser according to an embodiment of the present invention is shown, which may specifically include the following modules:
a start command acquiring module 1801, adapted to acquire a start command corresponding to a shortcut when the shortcut is triggered at a browser side;
an application program starting module 1802, adapted to start the application program corresponding to the shortcut by using the starting command;
a process list adding module 1803, adapted to add an application identifier of the application to a preset process list;
a first performance information obtaining module 1804, adapted to obtain performance information of the application program indicated by the application program identifier in the process list;
a loading module 1805, adapted to load the performance information in a preset first display page;
an operation instruction executing module 1806, adapted to, when receiving an operation instruction for the application program identifier, execute an operation indicated by the operation instruction.
In a preferred embodiment of the present invention, the operation command may include an operation instruction for the browser;
the operation instruction for the browser can comprise an operation instruction for ending a process, an operation instruction for stopping monitoring and/or an operation instruction for deleting.
In a preferred embodiment of the present invention, the operation command may include an operation instruction for an operating system;
the operating instructions for the operating system may include offloaded operating instructions and/or suspended operating instructions.
In a preferred embodiment of the present invention, the operation command may include an operation instruction for virus detection.
In a preferred embodiment of the present invention, the operation command may include an operation instruction for the sandbox to run.
In a preferred embodiment of the present invention, the operation instruction execution module may be further adapted to:
for an ending command corresponding to the operation instruction of the ending process of the application program identifier, ending the operation of the application program corresponding to the application program identifier by adopting the ending command;
and/or the presence of a gas in the gas,
for a monitoring stopping command corresponding to the monitoring stopping operation instruction of the application program identifier, finishing monitoring the application program corresponding to the application program identifier by adopting the monitoring command;
and/or the presence of a gas in the gas,
and deleting the application program identifier from the current page by adopting the deletion command aiming at the deletion command corresponding to the operation instruction for deleting the application program identifier.
In a preferred embodiment of the present invention, the operation instruction execution module may be further adapted to:
for an uninstalling command corresponding to the uninstalled operation instruction of the application program identifier, adopting the uninstalling command to uninstall the application program corresponding to the application program identifier;
and aiming at a suspension command corresponding to the suspended operation instruction of the application program identifier, adopting the suspension command to execute the suspended operation on the application program corresponding to the application program identifier.
In a preferred embodiment of the present invention, the operation instruction execution module may be further adapted to:
and aiming at a virus detection command corresponding to the operation instruction of the virus detection of the application program identifier, adopting the virus detection command to execute virus detection on the application program corresponding to the application program identifier.
In a preferred embodiment of the present invention, the operation instruction execution module may be further adapted to:
and aiming at a sandbox operation command corresponding to the sandbox operation instruction of the application program identification, placing the application program corresponding to the application program identification in a sandbox for operation by adopting the sandbox operation command.
In order to facilitate a better understanding of the invention for those skilled in the art, the invention is further illustrated below by a browser example, with reference to fig. 19:
the browser of the embodiment of the invention can comprise 4 main parts: the method comprises the following steps that a shortcut page, a browser background, an operating system correlation page and a process foreground page are related:
A. the shortcut setting page writes shortcut parameters and configuration into a database sqlite of a browser background through the setting of a user;
B. a user executes a link in a page by selecting and clicking a shortcut, and transmits execution parameters to an application program control center, and the application program control center reads related commands in a database sqlite file through the parameters, then executes an application program according to the related commands, and returns process information;
C. the application control center acquires a message notification in the operating system by polling, and limits the message of the started application in the started shortcut (such as a message of an instant chat tool, a frame popping message and the like);
D. some special applications (such as TXT documents, counters, etc.) and paths in the operating system will be added to the shortcut by default; when the application program is installed and uninstalled, corresponding shortcuts can be automatically added and deleted, and the operation is similar to the operation of a register table of a browser;
E. after the user selects the unloading operation of the shortcut, an application program unloading command of an application program control center is called, and the application program is unloaded according to the parameter data of the database sqlite;
F. the process foreground page reads process data of the application control center and displays the process data to the page, and the data can generate a report form through selection; and when the selected process is ended, sending a command for ending the process to the application program control center, and executing the process ending command of the system by the application program control center.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a device for loading application shortcuts in a browser according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses A1 and a method for loading an application program shortcut in a browser, which comprises the following steps:
when a shortcut is triggered at the browser side, acquiring a starting command corresponding to the shortcut;
starting the application program corresponding to the shortcut by adopting the starting command;
adding the application program identification of the application program into a preset process list;
acquiring performance information of the application program indicated by the application program identifier in the process list;
and loading the performance information in a preset first display page.
A2, the method of A1, the performance information comprising one or more of:
process identifier, user name, session ID, CPU usage, CPU time, memory working set, memory peak working set, memory working set increment, memory dedicated working set, memory commit size, memory page buffer pool, memory non-page buffer pool, page fault increment, base priority, handle number, thread number, user object, I/O read, I/O write, I/O other, I/O read byte/command line, description information.
A3, the method of a1 or a2, further comprising:
acquiring performance information of the application program indicated by the application program identifier in the process list within a preset time period;
correspondingly displaying the performance information in the preset time period in a preset second display page;
or,
and generating a report document according to the performance information in the preset time period.
A4, the method of a1, further comprising:
acquiring a notification message of the application program indicated by the application program identifier in the process list;
and correspondingly prompting the notification message on a preset third display page.
A5, the method of a1 or a2 or A3 or a4, further comprising:
when an operation instruction for the application program identification is received, the operation indicated by the operation instruction is executed.
A6, the method of A5, the operation command includes an operation instruction for a browser;
the operation instruction for the browser comprises an operation instruction for ending a process, an operation instruction for stopping monitoring and/or an operation instruction for deleting.
A7, the method of A5, the operation command including an operation instruction for an operating system;
the operation instruction for the operating system comprises an uninstalled operation instruction and/or a suspended operation instruction.
A8, the method of A5, wherein the operation command includes operation instructions for virus detection.
A9, the method of A5, the operation command including an operation instruction of sandbox operation.
A10, the method as in A6, the step of executing the operation indicated by the operation instruction comprises:
for an ending command corresponding to the operation instruction of the ending process of the application program identifier, ending the operation of the application program corresponding to the application program identifier by adopting the ending command;
and/or the presence of a gas in the gas,
for a monitoring stopping command corresponding to the monitoring stopping operation instruction of the application program identifier, stopping monitoring of the application program corresponding to the application program identifier by using the monitoring stopping command;
and/or the presence of a gas in the gas,
and deleting the application program identifier from the current page by adopting the deletion command aiming at the deletion command corresponding to the operation instruction for deleting the application program identifier.
A11, the method as in A7, the step of executing the operation indicated by the operation instruction comprises:
for an uninstalling command corresponding to the uninstalled operation instruction of the application program identifier, adopting the uninstalling command to uninstall the application program corresponding to the application program identifier;
and/or the presence of a gas in the gas,
and aiming at a suspension command corresponding to the suspended operation instruction of the application program identifier, adopting the suspension command to execute the suspended operation on the application program corresponding to the application program identifier.
A12, the method as in A8, the step of executing the operation indicated by the operation instruction comprises:
and aiming at a virus detection command corresponding to the operation instruction of the virus detection of the application program identifier, adopting the virus detection command to execute virus detection on the application program corresponding to the application program identifier.
A13, the method as in A9, the step of executing the operation indicated by the operation instruction comprises:
and aiming at a sandbox operation command corresponding to the sandbox operation instruction of the application program identification, placing the application program corresponding to the application program identification in a sandbox for operation by adopting the sandbox operation command.
The invention also discloses B14, a device for loading the shortcut of the application program in the browser, which comprises:
the starting command acquisition module is suitable for acquiring a starting command corresponding to the shortcut when the shortcut is triggered at the browser side;
the application program starting module is suitable for starting the application program corresponding to the shortcut by adopting the starting command;
the process list adding module is suitable for adding the application program identifier of the application program into a preset process list;
the first performance information acquisition module is suitable for acquiring the performance information of the application program indicated by the application program identifier in the process list;
and the loading module is suitable for loading the performance information into a preset first display page.
B15, the apparatus of B14, the performance information comprising one or more of:
process identifier, user name, session ID, CPU usage, CPU time, memory working set, memory peak working set, memory working set increment, memory dedicated working set, memory commit size, memory page buffer pool, memory non-page buffer pool, page fault increment, base priority, handle number, thread number, user object, I/O read, I/O write, I/O other, I/O read byte/command line, description information.
B16, the apparatus of B14 or B15, further comprising:
the second performance information acquisition module is suitable for acquiring performance information of the application program indicated by the application program identifier in the process list within a preset time period;
the display module is suitable for correspondingly displaying the performance information in the preset time period in a preset second display page;
or,
and the report document generation module is suitable for generating a report document according to the performance information in the preset time period.
B17, the apparatus of B14, further comprising:
the notification message acquisition module is suitable for acquiring the notification message of the application program indicated by the application program identifier in the process list;
and the prompting module is suitable for correspondingly prompting the notification message on a preset third display page.
B18, the apparatus of B14 or B15 or B16 or B17, further comprising:
and the operation instruction execution module is suitable for executing the operation indicated by the operation instruction when the operation instruction aiming at the application program identification is received.
B19, the device as B18, the operation command comprises an operation instruction for the browser;
the operation instruction for the browser comprises an operation instruction for ending a process, an operation instruction for stopping monitoring and/or an operation instruction for deleting.
B20, the device as described in B18, the operation command includes an operation instruction for an operating system;
the operation instruction for the operating system comprises an uninstalled operation instruction and/or a suspended operation instruction.
B21, the device as described in B18, the operation command includes operation instruction of virus detection.
B22, the device as B18, the operation command comprises the operation instruction of sandbox operation.
B23, the apparatus as described in B19, the operation instruction execution module further adapted to:
for an ending command corresponding to the operation instruction of the ending process of the application program identifier, ending the operation of the application program corresponding to the application program identifier by adopting the ending command;
and/or the presence of a gas in the gas,
for a monitoring stopping command corresponding to the monitoring stopping operation instruction of the application program identifier, finishing monitoring the application program corresponding to the application program identifier by adopting the monitoring command;
and/or the presence of a gas in the gas,
and deleting the application program identifier from the current page by adopting the deletion command aiming at the deletion command corresponding to the operation instruction for deleting the application program identifier.
B24, the apparatus as described in B20, the operation instruction execution module further adapted to:
for an uninstalling command corresponding to the uninstalled operation instruction of the application program identifier, adopting the uninstalling command to uninstall the application program corresponding to the application program identifier;
and aiming at a suspension command corresponding to the suspended operation instruction of the application program identifier, adopting the suspension command to execute the suspended operation on the application program corresponding to the application program identifier.
B25, the apparatus as described in B21, the operation instruction execution module further adapted to:
and aiming at a virus detection command corresponding to the operation instruction of the virus detection of the application program identifier, adopting the virus detection command to execute virus detection on the application program corresponding to the application program identifier.
B26, the apparatus as described in B22, the operation instruction execution module further adapted to:
and aiming at a sandbox operation command corresponding to the sandbox operation instruction of the application program identification, placing the application program corresponding to the application program identification in a sandbox for operation by adopting the sandbox operation command.
The invention also discloses C27 and a browser, which comprises the device for loading the application shortcut in the browser, wherein the device is described in any one of B14-B26.
Claims (21)
1. A method of loading application shortcuts in a browser, comprising:
when a shortcut is triggered at the browser side, acquiring a starting command corresponding to the shortcut;
starting the application program corresponding to the shortcut by adopting the starting command;
adding the application program identification of the application program into a preset process list;
acquiring performance information of the application program indicated by the application program identifier in the process list;
loading the performance information in a preset first display page;
when an operation instruction aiming at the application program identification is received, executing the operation indicated by the operation instruction, wherein the operation instruction comprises an operation instruction aiming at the browser and an operation instruction aiming at an operating system, and the operation instruction aiming at the browser comprises an operation instruction for ending a process, an operation instruction for stopping monitoring and/or a deleted operation instruction; the operation instruction for the operating system comprises an uninstalled operation instruction and/or a suspended operation instruction.
2. The method of claim 1, wherein the performance information comprises one or more of:
process identifier, user name, session ID, CPU usage, CPU time, memory working set, memory peak working set, memory working set increment, memory dedicated working set, memory commit size, memory page buffer pool, memory non-page buffer pool, page fault increment, base priority, handle number, thread number, user object, I/O read, I/O write, I/O other, I/O read byte/command line, description information.
3. The method of claim 1 or 2, further comprising:
acquiring performance information of the application program indicated by the application program identifier in the process list within a preset time period;
correspondingly displaying the performance information in the preset time period in a preset second display page;
or,
and generating a report document according to the performance information in the preset time period.
4. The method of claim 1, further comprising:
acquiring a notification message of the application program indicated by the application program identifier in the process list;
and correspondingly prompting the notification message on a preset third display page.
5. The method of claim 1, wherein the operation instruction comprises an operation instruction for virus detection.
6. The method of claim 1, wherein the operation instructions comprise operation instructions for sandboxing operations.
7. The method of claim 1, wherein the step of performing the operation indicated by the operation instruction comprises:
for an ending command corresponding to the operation instruction of the ending process of the application program identifier, ending the operation of the application program corresponding to the application program identifier by adopting the ending command;
and/or the presence of a gas in the gas,
for a monitoring stopping command corresponding to the monitoring stopping operation instruction of the application program identifier, stopping monitoring of the application program corresponding to the application program identifier by using the monitoring stopping command;
and/or the presence of a gas in the gas,
and deleting the application program identifier from the current page by adopting the deletion command aiming at the deletion command corresponding to the operation instruction for deleting the application program identifier.
8. The method of claim 1, wherein the step of performing the operation indicated by the operation instruction comprises:
for an uninstalling command corresponding to the uninstalled operation instruction of the application program identifier, adopting the uninstalling command to uninstall the application program corresponding to the application program identifier;
and/or the presence of a gas in the gas,
and aiming at a suspension command corresponding to the suspended operation instruction of the application program identifier, adopting the suspension command to execute the suspended operation on the application program corresponding to the application program identifier.
9. The method of claim 5, wherein the performing the operation indicated by the operation instruction comprises:
and aiming at a virus detection command corresponding to the operation instruction of the virus detection of the application program identifier, adopting the virus detection command to execute virus detection on the application program corresponding to the application program identifier.
10. The method of claim 6, wherein the performing the operation indicated by the operation instruction comprises:
and aiming at a sandbox operation command corresponding to the sandbox operation instruction of the application program identification, placing the application program corresponding to the application program identification in a sandbox for operation by adopting the sandbox operation command.
11. An apparatus for loading application shortcuts in a browser, comprising:
the starting command acquisition module is suitable for acquiring a starting command corresponding to the shortcut when the shortcut is triggered at the browser side;
the application program starting module is suitable for starting the application program corresponding to the shortcut by adopting the starting command;
the process list adding module is suitable for adding the application program identifier of the application program into a preset process list;
the first performance information acquisition module is suitable for acquiring the performance information of the application program indicated by the application program identifier in the process list;
the loading module is suitable for loading the performance information into a preset first display page;
the operation instruction execution module is suitable for executing the operation indicated by the operation instruction when the operation instruction aiming at the application program identification is received, wherein the operation instruction comprises an operation instruction aiming at the browser and an operation instruction aiming at an operating system, and the operation instruction aiming at the browser comprises an operation instruction for ending a process, an operation instruction for stopping monitoring and/or an operation instruction for deleting; the operation instruction for the operating system comprises an uninstalled operation instruction and/or a suspended operation instruction.
12. The apparatus of claim 11, wherein the performance information comprises one or more of:
process identifier, user name, session ID, CPU usage, CPU time, memory working set, memory peak working set, memory working set increment, memory dedicated working set, memory commit size, memory page buffer pool, memory non-page buffer pool, page fault increment, base priority, handle number, thread number, user object, I/O read, I/O write, I/O other, I/O read byte/command line, description information.
13. The apparatus of claim 11 or 12, further comprising:
the second performance information acquisition module is suitable for acquiring performance information of the application program indicated by the application program identifier in the process list within a preset time period;
the display module is suitable for correspondingly displaying the performance information in the preset time period in a preset second display page;
or,
and the report document generation module is suitable for generating a report document according to the performance information in the preset time period.
14. The apparatus of claim 11, further comprising:
the notification message acquisition module is suitable for acquiring the notification message of the application program indicated by the application program identifier in the process list;
and the prompting module is suitable for correspondingly prompting the notification message on a preset third display page.
15. The apparatus of claim 11, wherein the operation instructions comprise operation instructions for virus detection.
16. The apparatus of claim 11, wherein the operation instructions comprise operation instructions for sandboxing.
17. The apparatus of claim 11, wherein the operational instruction execution module is further adapted to:
for an ending command corresponding to the operation instruction of the ending process of the application program identifier, ending the operation of the application program corresponding to the application program identifier by adopting the ending command;
and/or the presence of a gas in the gas,
for a monitoring stopping command corresponding to the monitoring stopping operation instruction of the application program identifier, finishing monitoring the application program corresponding to the application program identifier by adopting the monitoring command;
and/or the presence of a gas in the gas,
and deleting the application program identifier from the current page by adopting the deletion command aiming at the deletion command corresponding to the operation instruction for deleting the application program identifier.
18. The apparatus of claim 11, wherein the operational instruction execution module is further adapted to:
for an uninstalling command corresponding to the uninstalled operation instruction of the application program identifier, adopting the uninstalling command to uninstall the application program corresponding to the application program identifier;
and aiming at a suspension command corresponding to the suspended operation instruction of the application program identifier, adopting the suspension command to execute the suspended operation on the application program corresponding to the application program identifier.
19. The apparatus of claim 15, wherein the operational instruction execution module is further adapted to:
and aiming at a virus detection command corresponding to the operation instruction of the virus detection of the application program identifier, adopting the virus detection command to execute virus detection on the application program corresponding to the application program identifier.
20. The apparatus of claim 16, wherein the operational instruction execution module is further adapted to:
and aiming at a sandbox operation command corresponding to the sandbox operation instruction of the application program identification, placing the application program corresponding to the application program identification in a sandbox for operation by adopting the sandbox operation command.
21. A browser, comprising:
the starting command acquisition module is suitable for acquiring a starting command corresponding to the shortcut when the shortcut is triggered at the browser side;
the application program starting module is suitable for starting the application program corresponding to the shortcut by adopting the starting command;
the process list adding module is suitable for adding the application program identifier of the application program into a preset process list;
the first performance information acquisition module is suitable for acquiring the performance information of the application program indicated by the application program identifier in the process list;
the loading module is suitable for loading the performance information into a preset first display page;
the operation instruction execution module is suitable for executing the operation indicated by the operation instruction when the operation instruction aiming at the application program identification is received, wherein the operation instruction comprises an operation instruction aiming at the browser and an operation instruction aiming at an operating system, and the operation instruction aiming at the browser comprises an operation instruction for ending a process, an operation instruction for stopping monitoring and/or an operation instruction for deleting; the operation instruction for the operating system comprises an uninstalled operation instruction and/or a suspended operation instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310591212.7A CN103678506B (en) | 2013-11-20 | 2013-11-20 | The method, apparatus and browser of loading application programs shortcut in a browser |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310591212.7A CN103678506B (en) | 2013-11-20 | 2013-11-20 | The method, apparatus and browser of loading application programs shortcut in a browser |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103678506A CN103678506A (en) | 2014-03-26 |
CN103678506B true CN103678506B (en) | 2018-10-12 |
Family
ID=50316051
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310591212.7A Active CN103678506B (en) | 2013-11-20 | 2013-11-20 | The method, apparatus and browser of loading application programs shortcut in a browser |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103678506B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104021039A (en) * | 2014-05-30 | 2014-09-03 | 北京金山网络科技有限公司 | Calling method for APP and browser |
CN104239063B (en) * | 2014-09-23 | 2018-08-10 | 福建星网视易信息系统有限公司 | A kind of web browser and the method by web browser calling local application |
CN104714826B (en) * | 2015-03-23 | 2018-10-26 | 小米科技有限责任公司 | Using the loading method and device of theme |
CN106130810B (en) * | 2016-06-01 | 2020-12-22 | 北京百度网讯科技有限公司 | Website monitoring method and device |
CN107766351B (en) * | 2016-08-16 | 2020-12-25 | 腾讯科技(深圳)有限公司 | File directory identification method and device |
CN107861964A (en) * | 2017-03-23 | 2018-03-30 | 平安科技(深圳)有限公司 | Image loading method and device |
US11262883B2 (en) | 2018-06-22 | 2022-03-01 | Hangzhou Hikvision System Technology Co., Ltd. | Associating browser with application |
CN109739567B (en) * | 2018-11-26 | 2024-05-07 | 平安科技(深圳)有限公司 | Method, device, computer equipment and storage medium for rapidly terminating application program |
CN112835656A (en) * | 2019-11-01 | 2021-05-25 | 科美诊断技术股份有限公司 | Client starting method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101587495A (en) * | 2009-07-08 | 2009-11-25 | 伍帝州 | Method and system for downloading and disposing application through browser and providing application entrance |
CN102841789A (en) * | 2012-06-29 | 2012-12-26 | 北京奇虎科技有限公司 | Method and device for recording and playing back user operations in browser |
-
2013
- 2013-11-20 CN CN201310591212.7A patent/CN103678506B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101587495A (en) * | 2009-07-08 | 2009-11-25 | 伍帝州 | Method and system for downloading and disposing application through browser and providing application entrance |
CN102841789A (en) * | 2012-06-29 | 2012-12-26 | 北京奇虎科技有限公司 | Method and device for recording and playing back user operations in browser |
Non-Patent Citations (3)
Title |
---|
"Chrome浏览器通知中心上线 弹出式窗口通知";科技讯;《https://www.kejixun.com/article/201307/13122.html》;20130711;第1页 * |
"如何查看管理chrome浏览器的任务及性能";百度经验;《https://jingyan.baidu.com/article/e2284b2b337fbde2e7118d6c.html》;20131003;第1-3页 * |
"浏览器判断是否安装了ios/android客户端程序";iunion;《https://blog.csdn.net/iunion/article/details/10327665/》;20130826;第1-3页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103678506A (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103678506B (en) | The method, apparatus and browser of loading application programs shortcut in a browser | |
CN103678505A (en) | Method and device for running application program in browser and browser | |
US20240095043A1 (en) | Execution of sub-application processes within application program | |
US20150012924A1 (en) | Method and Device for Loading a Plug-In | |
EP3342145B1 (en) | Deep linking to mobile application states through programmatic replay of user interface events | |
CN106708557B (en) | Update processing method and device for terminal application | |
CN104035984B (en) | Method for blocking popup windows in browser and device for blocking popup windows | |
CN104077387B (en) | A kind of web page contents display methods and browser device | |
TWI671677B (en) | Interactive processing method and device | |
CN110780930B (en) | Method and device for starting Android system, electronic equipment and storage medium | |
US9811356B2 (en) | Automated software configuration management | |
US9325717B1 (en) | Web-store restriction of external libraries | |
CN103617055B (en) | A kind of method, apparatus and browser for starting application program in a browser | |
US8706778B2 (en) | Methods and systems for an action-based interface for files and other assets | |
EP4085336B1 (en) | Computer resource leak detection | |
CN105074652B (en) | For remotely providing the method and computer system of application function to printer | |
CN109359092B (en) | File management method, desktop display method, device, terminal and medium | |
JP6505849B2 (en) | Generation of element identifier | |
JP6329329B2 (en) | Code caching system | |
US9436669B1 (en) | Systems and methods for interfacing with dynamic web forms | |
US10284628B2 (en) | Distribution method and resource acquisition method | |
CN101777002A (en) | Software running method based on virtualization | |
US11340968B1 (en) | Executing repetitive custom workflows through API recording and playback | |
CN104079594B (en) | The method and apparatus downloaded for realizing Internet resources in closed system | |
US10298516B2 (en) | System and methods for sharing resources among application modules |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220725 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |