Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.Conversely, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Fig. 1 shows the flow chart of the open method of web page interlinkage according to an embodiment of the invention, as shown in figure 1,
The method comprises the following steps:
Step S100, the unlatching operation of web page interlinkage in application program side sets and specifies browser to carry out application program.
In the present embodiment, application program side provides the function that web page interlinkage is opened for setting specified browser.Also
It is to say, compared to prior art, the present invention is improved application program, increased and open net for setting specified browser
The function of page link.After the setup, by related configuration information record in the setting file of application program.It is wherein related to set
Packet contains the information for specifying browser, such as specifies title, type, the version information of browser.
Step S101, detects the request of opening webpage in application program.
The request of webpage is opened in the real-time detection application program of application program side.For example, user A is using instant messaging class
Certain web page interlinkage that user B is sended over is received during software, user A clicks on the web page interlinkage, and the instant messaging class is soft
Part is able to detect that the request of the opening webpage that the operation of user A webpage clickings link is triggered.Again for example, certain user is browsing
During word document, certain link in word document is clicked on, word programs are able to detect that user clicks on the chain in word document
The request of the opening webpage that the operation for connecing is triggered.
Step S102, determines the specified browser that installation settings is crossed in system.
Application program detect open webpage request after, by inquiry application set file in record
Information is informed in that application program side is configured to open web page interlinkage by specifying browser, and obtains the information of browser,
Then further determine that whether system has installed specified browser corresponding with the information of the browser.
Step S103, calls the system interface for starting specified browser, and the URL of webpage is passed into the startup and refer to
Determine the system interface of browser so that specify browser to open web page interlinkage according to the URL of the next webpage of transmission.
After the specified browser that installation settings is crossed in determining system, application call is specified clear for starting
Look at the system interface of device, and the URL of webpage passed into the system interface that browser is specified in the startup so that specify browser according to
The URL of the webpage come according to transmission opens web page interlinkage.
According to the method that the present embodiment is provided, application program side provides opens web page interlinkage for setting specified browser
Function, after related setting is carried out, if application program detect open webpage request, can install specified clear
Look on the premise of device, system interface is directly invoked by application program, and the URL of webpage is passed into the startup and specify browser
System interface so that specify browser to open web page interlinkage according to the URL of the next webpage of transmission.The side provided using the present embodiment
Method, calls the system interface for starting default browser to open corresponding web page interlinkage without waiting for operating system, and application program is straight
Connect to call and start the corresponding web page interlinkage of system interface unlatching for specifying browser, compared to prior art, this method is opened new
The speed of webpage, disclosure satisfy that the demand of user.
Fig. 2 shows the flow chart of the open method of web page interlinkage in accordance with another embodiment of the present invention, such as Fig. 2 institutes
Show, the method comprises the following steps:
Step S200, the unlatching operation of web page interlinkage in application program side sets and specifies browser to carry out application program.
In the present embodiment, application program side provides the function that web page interlinkage is opened for setting specified browser.Also
It is to say, compared to prior art, the present invention is improved application program, increased and open net for setting specified browser
The function of page link.After the setup, by related configuration information record in the setting file of application program.It is wherein related to set
Packet contains the information for specifying browser, such as specifies title, type, the version information of browser.
Alternatively, application program side is provided with the option for allowing user configuring, when option is selected, in application program side
The unlatching operation for specifying browser to carry out web page interlinkage in application program is set.That is, application program side provide be used for
Setting the function of specifying browser to open web page interlinkage can be decided whether to enable by user, and user oriented is friendly.
Step S201, detects the request of opening webpage in application program.
Step S202, finds out the executable file of specified browser under system default installation path;And/or, search
Whether registration table records the path of the executable file of specified browser, if any record, then under the path of registration table record
Find out the executable file of specified browser.
Application program detect open webpage request after, by inquiry application set file in record
Information is informed in that application program side is configured to open web page interlinkage by specifying browser, and obtains the information of browser,
Then further determine that whether system has installed specified browser corresponding with the information of the browser.This step show in particular two
Plant the method whether determination system has installed specified browser:One kind is to search to specify under system default installation path to browse
The executable file of device;Another kind is to search the path whether registration table records the executable file of specified browser, if any
Record, then find out the executable file of specified browser under the path of registration table record.
As a rule, when system is installed and specifies browser, can be installed under Default installation path, such system is write from memory
The executable file of the specified browser that can be stored with is recognized under installation path, so if the executable file can be found with regard to energy
Determine that system has installed specified browser.But can be because have modified when at some in particular cases, system installs specified browser
Be installed to specified browser under other paths by installation path, but system can write the installation for specifying browser in registration table
Path, so the path whether registration table records the executable file of specified browser is may further look for, if any record, then in note
The executable file of specified browser is found out under the path of volume token record.
It is only of the invention showing that this step gives the method that above two determines whether system has installed specified browser
Example, the present invention is not limited only to above two method, can also determine whether system has installed specified browser by other methods.
Step S203, to specifying the signature of executable file of browser to verify.
After it is determined that system has installed the executable file of specified browser and the specified browser of acquisition, browsed to specifying
The signature of the executable file of device is verified.Specifically, the signature of the executable file for specifying browser is inquired about, with application
Whether the information of the browser of the setting file record of program compares consistent.For example, the setting file record of application program
Browser information be " 360 secure browsers;V6.5 versions ", whether the signature of the executable file of the specified browser of inquiry
It is the secure browser of 360 companies, if so, then showing to be verified.
Verified by the signature for specifying the executable file of browser, rogue program can be avoided to utilize this method
Start other browsers and open web page interlinkage, it is ensured that the security of network access.
Step S204, in the case where being verified, calls the system interface for starting specified browser, and by webpage
URL pass to the startup specify browser system interface so that specify browser according to transmission come webpage URL open
Web page interlinkage.
In the case where being verified, application program directly invokes the system interface for starting specified browser, and will
The URL of webpage passes to the system interface that browser is specified in the startup.Specifically, application call system API:
createprocess(360browser.exe;“http://www.360safe.com "), wherein createprocess functions
It is WIN32API functions, for creating a new process and its main thread, 360browser.exe is this new process fortune
The executable file that row is specified, http://www.360safe.com is the URL of the parameter for passing to system API, i.e. webpage.
After said system API is called, system starts specifies browser, and is passed to by the URL that resolve command row obtains webpage
Specify browser so that specify browser to open web page interlinkage according to the URL of the next webpage of transmission.
According to the method that the present embodiment is provided, application program side provides opens web page interlinkage for setting specified browser
Function, after related setting is carried out, if application program detect open webpage request, can install specified clear
Look on the premise of device, system interface is directly invoked by application program, and the URL of webpage is passed into the startup and specify browser
System interface so that specify browser to open web page interlinkage according to the URL of the next webpage of transmission.The side provided using the present embodiment
Method, calls the system interface for starting default browser to open corresponding web page interlinkage without waiting for operating system, and application program is straight
Connect to call and start the corresponding web page interlinkage of system interface unlatching for specifying browser, compared to prior art, this method is opened new
The speed of webpage, disclosure satisfy that the demand of user.In addition, corresponding web page interlinkage is opened also by specifying browser
The security of network address can be detected with the very first time, is prevented Trojan for stealing numbers, virus and is caused leakage of private information, real-time blocking net purchase is fished
Fish and payment fraud information is supplemented with money, to avoid causing the property loss of user, it is ensured that the security of subscriber network access.
Fig. 3 shows the flow chart of the open method of web page interlinkage in accordance with another embodiment of the present invention, such as Fig. 3 institutes
Show, the method comprises the following steps:
Step S300, the unlatching operation of web page interlinkage in application program side sets and specifies browser to carry out application program.
Step S301, detects the request of opening webpage in application program.
Step S302, determines the specified browser that whether installation settings is crossed in system, if so, performing step S303;If
It is no, perform step S305.
Step S303, to specifying the signature of executable file of browser to verify.
Step S304, in the case where being verified, calls the system interface for starting specified browser, and by webpage
URL pass to the startup specify browser system interface so that specify browser according to transmission come webpage URL open
Web page interlinkage;This method flow terminates.
The specific implementation procedure of the present embodiment above-mentioned steps S300- steps S304 may refer to the embodiment shown in Fig. 2
Description, will not be repeated here.
Step S305, calls the system interface for activation system default browser, and the URL of webpage is passed into this and open
The system interface of dynamic system default browser so that the URL of the webpage that system default browser comes according to transmission opens webpage chain
Connect;This method flow terminates.
From unlike the embodiment shown in Fig. 2, what this method non-installation settings in system is determined was crossed specified browses
In the case of device, the system interface for activation system default browser can be called, and the URL of webpage is passed into the startup
The system interface of system default browser so that the URL of the webpage that system default browser comes according to transmission opens web page interlinkage.
Alternatively implementation method, if in system is determined the specified browser that non-installation settings is crossed situation
Under, it is also possible to pop-up dialogue box is used to point out to download and/or install to specify browser.
In above-mentioned each embodiment, application program is not limited only to be instant messaging class method or office programs, may be used also
Being input method class method or various mobile phone application class methods.
Fig. 4 shows the functional block diagram of the opening device of web page interlinkage according to an embodiment of the invention.Such as Fig. 4
Shown, the device includes:Setup module 400, detection module 401, judge module 402 and calling module 403.
Setup module 400, is suitable to the web page interlinkage in application program side sets and specifies browser to carry out application program and opens
Open operation.After the setup, by related configuration information record in the setting file of application program.Wherein related configuration information bag
Information containing specified browser, such as specifies title, type, the version information of browser.
Detection module 401, is adapted to detect for the request of opening webpage in application program.For example, user A is using IMU
Certain web page interlinkage that user B is sended over is received during news class software, user A clicks on the web page interlinkage, the instant messaging
The detection module of class software is able to detect that the request of the opening webpage that the operation of user A webpage clickings link is triggered.Example again
Such as, certain user clicks on certain link in word document when word document is browsed, and the detection module of word programs can be detected
The request of the opening webpage that the operation for clicking on the link in word document to user is triggered.
Judge module 402, is suitable to after detection module 401 detects the request for opening webpage, determines in system
The specified browser that installation settings is crossed.Judge module 402 obtains the information of browser, determines whether system has been installed and is browsed with this
The corresponding specified browser of information of device.
Calling module 403, is suitable to call the system interface for starting specified browser, and the URL of webpage is passed to
The system interface of browser is specified in the startup so that specify browser to open web page interlinkage according to the URL of the next webpage of transmission.
According to the device that the present embodiment is provided, application program side provides opens web page interlinkage for setting specified browser
Function, after related setting is carried out, if application program detect open webpage request, can install specified clear
Look on the premise of device, system interface is directly invoked by application program, and the URL of webpage is passed into the startup and specify browser
System interface so that specify browser to open web page interlinkage according to the URL of the next webpage of transmission.The dress provided using the present embodiment
Put, call the system interface for starting default browser to open corresponding web page interlinkage without waiting for operating system, application program is straight
Connect to call and start the corresponding web page interlinkage of system interface unlatching for specifying browser, compared to prior art, this method is opened new
The speed of webpage, disclosure satisfy that the demand of user.
Fig. 5 shows the functional block diagram of the opening device of web page interlinkage in accordance with another embodiment of the present invention.Such as
Shown in Fig. 5, the device includes:Setup module 500, detection module 501, judge module 502, authentication module 503, calling module
504 and reminding module 505.
Setup module 500, is suitable to the web page interlinkage in application program side sets and specifies browser to carry out application program and opens
Open operation;Further, when option is selected, the webpage chain in application program side sets and specifies browser to carry out application program
The unlatching operation for connecing.After the setup, by related configuration information record in the setting file of application program.It is wherein related to set
Packet contains the information for specifying browser, such as specifies title, type, the version information of browser.
Detection module 501, is adapted to detect for the request of opening webpage in application program.
Judge module 502, is suitable to search the executable file for specifying browser under system default installation path;And/or,
The path whether registration table records the executable file of specified browser is searched, if any record, then on the road of registration table record
The executable file for specifying browser is searched under footpath.As a rule, when system is installed and specifies browser, can be on default installation road
Installed under footpath, the executable file of the specified browser that can be stored with such system default installation path, so if energy
Enough find the executable file and just can determine that system has installed specified browser.But at some in particular cases, system is installed
Specified browser can be installed under other paths because have modified installation path when specifying browser, but system can be in registration
The installation path for specifying browser is write in table, so may further look for the executable text whether registration table records specified browser
The path of part, if any record, then finds out the executable file of specified browser under the path of registration table record.
Authentication module 503, is suitable to verify the signature for specifying the executable file of browser.Specifically, verify
The signature of the executable file of browser is specified in the inquiry of module 503, the letter with the browser of the setting file record of application program
Whether breath compares consistent.For example, the information of the browser of the setting file record of application program is " 360 secure browsers;
V6.5 versions ", the inquiry of authentication module 503 specifies whether the signature of the executable file of browser is that the safety of 360 companies is browsed
Device, if so, then showing to be verified.
Calling module 504, is suitable to, in the case where authentication module 503 is verified, call for starting specified browser
System interface, and by the URL of webpage pass to the startup specify browser system interface so that specify browser according to pass
The URL for passing the webpage for coming opens web page interlinkage.
In the case where being verified, calling module 504 directly invokes the system interface for starting specified browser, and
The URL of webpage is passed into the system interface that browser is specified in the startup.Specifically, the calling system API of calling module 504:
createprocess(360browser.exe;“http://www.360safe.com "), wherein createprocess functions
It is WIN32API functions, for creating a new process and its main thread, 360browser.exe is this new process fortune
The executable file that row is specified, http://www.360safe.com is the URL of the parameter for passing to system API, i.e. webpage.
After said system API is called, system starts specifies browser, and is passed to by the URL that resolve command row obtains webpage
Specify browser so that specify browser to open web page interlinkage according to the URL of the next webpage of transmission.
Calling module 504 is further adapted for:The specified browser that non-installation settings is crossed in judge module 502 determines system
In the case of, the system interface for activation system default browser is called, and the URL of webpage is passed into activation system acquiescence
The system interface of browser so that the URL of the webpage that system default browser comes according to transmission opens web page interlinkage.
Reminding module 505, is suitable to the feelings of the specified browser that non-installation settings is crossed in judge module 502 determines system
Under condition, pop-up dialogue box is used to point out to download and/or install the executable file for specifying browser.
In the present embodiment, application program is specially instant messaging class method, input method class method, office programs or mobile phone
Using class method.
According to the device that the present embodiment is provided, application program side provides opens web page interlinkage for setting specified browser
Function, after related setting is carried out, if application program detect open webpage request, can install specified clear
Look on the premise of device, system interface is directly invoked by application program, and the URL of webpage is passed into the startup and specify browser
System interface so that specify browser to open web page interlinkage according to the URL of the next webpage of transmission.The dress provided using the present embodiment
Put, call the system interface for starting default browser to open corresponding web page interlinkage without waiting for operating system, application program is straight
Connect to call and start the corresponding web page interlinkage of system interface unlatching for specifying browser, compared to prior art, the present apparatus is opened new
The speed of webpage, disclosure satisfy that the demand of user.In addition, corresponding web page interlinkage is opened also by specifying browser
The security of network address can be detected with the very first time, is prevented Trojan for stealing numbers, virus and is caused leakage of private information, real-time blocking net purchase is fished
Fish and payment fraud information is supplemented with money, to avoid causing the property loss of user, it is ensured that the security of subscriber network access.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system
Structure be obvious.Additionally, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is various
Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this hair
Bright preferred forms.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify one or more that the disclosure and helping understands in each inventive aspect, exist
Above to the description of exemplary embodiment of the invention in, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, and wherein each claim is in itself
All as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Unit or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, can use any
Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit is required, summary and accompanying drawing) disclosed in each feature can the alternative features of or similar purpose identical, equivalent by offer carry out generation
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection is appointed
One of meaning mode can be used in any combination.
All parts embodiment of the invention can be realized with hardware, or be run with one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) are come in the opening device for realizing web page interlinkage according to embodiments of the present invention
The some or all functions of some or all parts.The present invention is also implemented as performing method as described herein
Some or all equipment or program of device (for example, computer program and computer program product).Such reality
Existing program of the invention can be stored on a computer-readable medium, or can have the form of one or more signal.
Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or in any other form
There is provided.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol being located between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element is not excluded the presence of as multiple
Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
The invention discloses:
A1, a kind of open method of web page interlinkage, including:
The unlatching operation of web page interlinkage in application program side sets and specifies browser to carry out application program;
Detect the request of opening webpage in application program;
Determine and the specified browser for setting has been installed in system;
The system interface for starting specified browser is called, and the URL of the webpage is passed into the startup and specify clear
Look at the system interface of device so that the URL of the webpage that the specified browser comes according to transmission opens the web page interlinkage.
A2, the method according to A1, wherein, the application program side is provided with the option for allowing user configuring, in institute
State option it is selected when, the unlatching operation of web page interlinkage in application program side sets and specifies browser to carry out application program.
A3, the method according to A1 or A2, wherein, it is described determine installed in system it is described set it is specified clear
Device of looking at is further included:
The executable file of the specified browser is found out under system default installation path;And/or
The path whether registration table records the executable file of the specified browser is searched, if any record, then in note
The executable file of the specified browser is found out under the path of volume token record.
A4, the method according to any one of A1-A3, wherein, calling the system interface for starting specified browser
Further include before:Signature to the executable file of the specified browser is verified;
If being verified, the step of calling the system interface for starting specified browser is performed.
A5, the method according to any one of A1-A4, wherein, methods described also includes:
Determine and the specified browser for setting is not installed in system;
The system interface for activation system default browser is called, and the URL of the webpage is passed into the startup system
The system interface of system default browser so that the URL of the webpage that the system default browser comes according to transmission opens institute
State web page interlinkage.
A6, the method according to any one of A1-A4, wherein, methods described also includes:
Determine and the specified browser for setting is not installed in system;
Pop-up dialogue box is used to point out to download and/or install the specified browser.
A7, the method according to any one of A1-A6, wherein, the application program is specially instant messaging class method, defeated
Enter method class method, office programs or mobile phone application class method.
The invention also discloses:
B8, a kind of opening device of web page interlinkage, including:
Setup module, is suitable to the unlatching behaviour of the web page interlinkage in application program side sets and specifies browser to carry out application program
Make;
Detection module, is adapted to detect for the request of opening webpage in application program;
Judge module, is suitable to after the detection module detects the request for opening webpage, determines and pacified in system
Fill the specified browser for setting;
Calling module, is suitable to call the system interface for starting specified browser, and the URL of the webpage is passed to
The system interface of browser is specified in the startup so that the URL of the webpage that the specified browser comes according to transmission opens institute
State web page interlinkage.
B9, the device according to B8, wherein, the application program side is provided with the option for allowing user configuring, described
Setup module is further adapted for:When the option is selected, setting specified browser in application program side carries out application program
The unlatching operation of middle web page interlinkage.
B10, the device according to B8 or B9, wherein, the judge module is further adapted for:
The executable file of the specified browser is searched under system default installation path;And/or
The path whether registration table records the executable file of the specified browser is searched, if any record, then in note
The executable file of the specified browser is searched under the path of volume token record.
B11, the device according to B8-B10, wherein, also include:Authentication module, is suitable to the specified browser
The signature of executable file is verified;
The calling module is further adapted for:In the case where the authentication module is verified, calls and refer to for startup
Determine the system interface of browser.
B12, the device according to B8-B11, wherein, the calling module is further adapted for:Determined in the judge module
In the case that the specified browser for setting is not installed in system, the system for activation system default browser is called to connect
Mouthful, and the URL of the webpage is passed to the system interface of the activation system default browser so that the system default is browsed
The URL of the webpage that device comes according to transmission opens the web page interlinkage.
B13, the device according to B8-B11, wherein, also include:Reminding module, is suitable to determine in the judge module
In the case of going out in system not installing the specified browser for setting, pop-up dialogue box is used to point out to download and/or install
The executable file of the specified browser.
B14, the device according to B8-B13, wherein, the application program is specially instant messaging class method, input method
Class method, office programs or mobile phone application class method.