CN103197972A - Method and device for browser plugin management, browser and plugin interactive system - Google Patents

Method and device for browser plugin management, browser and plugin interactive system Download PDF

Info

Publication number
CN103197972A
CN103197972A CN2013101544357A CN201310154435A CN103197972A CN 103197972 A CN103197972 A CN 103197972A CN 2013101544357 A CN2013101544357 A CN 2013101544357A CN 201310154435 A CN201310154435 A CN 201310154435A CN 103197972 A CN103197972 A CN 103197972A
Authority
CN
China
Prior art keywords
browser
interface
kernel type
plug
call request
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.)
Pending
Application number
CN2013101544357A
Other languages
Chinese (zh)
Inventor
段培堃
杭程
任寰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN2013101544357A priority Critical patent/CN103197972A/en
Publication of CN103197972A publication Critical patent/CN103197972A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for browser plugin management, a browser and a plugin interactive system, wherein the method comprises the following steps of: after receiving a call request aiming at a uniform interface set and initiated by a plugin, judging the kernel type of the browser of a currently opened page; under the condition that the kernel type is judged as a first kernel type, according to the operation corresponding to the uniform interface set, obtaining a first interface which is corresponding to the operation and is provided by the first kernel type, and initiating a call request aiming at the first interface to the browser; and under the condition that the kernel type is judged as a second kernel type, according to the operation corresponding to the uniform interface set, obtaining a second interface which is corresponding to the operation and is provided by the second kernel type, and initiating a call request aiming at the second interface to the browser. The method provides a plugin expansion mechanism compatible to different browser kernels, a plugin developer does not need considers to pre-design different modes interactive to the browsers aiming at different browser kernels, and the development efficiency is improved.

Description

The interactive system of the management method of browser plug-in and device, browser and plug-in unit
Technical field
The present invention relates to technical field of the computer network, be specifically related to a kind of management method of browser plug-in and the interactive system of device, browser and plug-in unit.
Background technology
Plug-in unit is the program that a kind of application programming interfaces of following certain standard are write out, and it can automatically perform along with the startup of IE browser.For example in the IE browser, after relevant plug-in unit was installed, the IE browser can directly call plug-in unit, for the treatment of the file of particular type.A lot of softwares have plug-in unit, and plug-in unit has countless versions.Such as, the common plug-in unit of IE browser has: Flash plug-in unit, RealPlayer plug-in unit, MMS plug-in unit, MIDI staff plug-in unit, ActiveX plug-in unit etc.; The DFX of Winamp also is plug-in unit for another example.
For being the browser of kernel with the IE browser, as the version before 360 browsers 6.0, because the explicit interface that provides at third party's plug-in unit is not provided the IE browser, need the developing plug personnel to carry out between browser master routine and the plug-in unit when mutual making, develop special interface module, between browser master routine and plug-in unit, to provide interface, manage plug-in unit by it.For non-be the browser of kernel with the IE browser, as Google (Chrome) browser, it self provides the interface at third party's plug-in unit, can directly manage plug-in unit by these interfaces.
Yet, in the browser in modern times, IE kernel and non-IE kernel (as the Chrome kernel) need be integrated, thereby respectively get the chief, the double-core browser that implementation efficiency is higher, function is more complete, performance is more stable.In this double-core browser, the unified mechanism of neither one when installation, operation plug-in unit.Be example with the double-core browser with IE kernel and Chrome kernel, the developing plug personnel at first need clear and definite plug-in unit will in which kind of browser kernel installation and operation, installation and operation in two kinds of kernels if desired so then will realize that respectively plug-in unit carries out with master routine alternately by above-mentioned different mechanism on the different browsers kernel.More than two kinds of mechanism incompatible in same double-core browser, need the developing plug personnel to pay the work of complexity and repetition and inefficiency.
Summary of the invention
In view of the above problems, the present invention has been proposed in order to a kind of management method and the management devices of corresponding browser plug-in and the interactive system of browser and plug-in unit of the browser plug-in that overcomes the problems referred to above or address the above problem at least in part are provided.
According to an aspect of the present invention, provide a kind of management method of browser plug-in, having comprised: after the call request at the unified interface collection that receives the plug-in unit initiation, judged the kernel type when the browser of the front opening page; Be under the situation of the first kernel type in the kernel type of judging browser, according to the operation that the unified interface set pair is answered, obtain first interface corresponding with this operation that the first kernel type provides, initiate call request at first interface to browser; Be under the situation of the second kernel type in the kernel type of judging browser, according to the operation that the unified interface set pair is answered, obtain second interface corresponding with this operation that the second kernel type provides, initiate call request at second interface to browser.
According to a further aspect in the invention, provide a kind of management devices of browser plug-in, having comprised: judge module is suitable for judging the kernel type when the browser of the front opening page after the call request at unified interface that receives the plug-in unit initiation; First calling module, being suitable in the kernel type of judging browser is under the situation of the first kernel type, according to the operation that the unified interface set pair is answered, obtain first interface corresponding with this operation that the first kernel type provides, to the call request of browser initiation at first interface; Second calling module, being suitable in the kernel type of judging browser is under the situation of the second kernel type, according to the operation that the unified interface set pair is answered, obtain second interface corresponding with this operation that the second kernel type provides, to the call request of browser initiation at second interface.
According to another aspect of the invention, provide the interactive system of a kind of browser and plug-in unit, comprised the management devices of browser, plug-in unit and above-mentioned browser plug-in; Wherein, plug-in unit is suitable for initiating call request at the unified interface collection to the management devices of browser plug-in; Browser is suitable for receiving the call request at first interface or second interface that the management devices of browser plug-in is initiated, according to this call request executable operations.
According to scheme provided by the invention, when plug-in unit and browser master routine carry out when mutual, can directly initiate the call request at the unified interface collection, after the plug-in management device receives this call request, judge the kernel type of current browser, according to different kernel types, obtain the different interface that browser is that provide and operation call request is corresponding, thereby initiate the call request of corresponding interface.The invention provides the plug-in unit extension mechanism at different browsers kernel compatibility, need not the developing plug personnel and consider to design the different modes mutual with browser in advance at different browser kernels, improved development efficiency.
Above-mentioned explanation only is the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of instructions, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of drawings
By reading hereinafter detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing only is used for the purpose of preferred implementation is shown, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts with identical reference symbol.In the accompanying drawings:
Fig. 1 shows the process flow diagram of the management method of browser plug-in according to an embodiment of the invention;
Fig. 2 shows the structured flowchart of the management devices of browser plug-in according to an embodiment of the invention;
Fig. 3 shows the structured flowchart of the interactive system of browser and plug-in unit according to an embodiment of the invention.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Though shown exemplary embodiment of the present disclosure in the accompanying drawing, yet should be appreciated that and to realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order to understand the disclosure more thoroughly that these embodiment are provided, and can with the scope of the present disclosure complete convey to those skilled in the art.
Main thought of the present invention is to provide the unified interface collection to the user when using the multinuclear browser, when plug-in unit and browser master routine carry out when mutual, can directly initiate the call request at this unified interface collection, consider to design the different modes mutual with browser in advance at different browser kernels and need not the developing plug personnel.In following examples, will be that example describes with the double-core browser, wherein the first kernel type is IE kernel type, the second kernel type is non-IE kernel type (as the Chrome kernel).Need to prove that the present invention is not limited only to the double-core browser, main thought of the present invention also is applicable to other multinuclear browser.
Fig. 1 shows the process flow diagram of the management method 100 of browser plug-in according to an embodiment of the invention.As shown in Figure 1, method 100 starts from step S101, wherein receives the call request at the unified interface collection that plug-in unit is initiated.Unified interface collection provided by the present invention has comprised the interface that can supply plug-in unit to call, and specifically comprises: the interface (CAppInstanceFunc) of operation process instance, the interface (CAppItemFunc) of operation plugin information, the interface of operating browser framework (CAppFrameFunc), the interface of operating browser tool bar (CAppToolBarFunc), the interface of operating browser sidebar (CAppSidePanelFunc), the interface of operation pages (CAppBrowserFunc), the interface of operating browser menu (CAppMenuFunc), the interface (CAppPathFunc) in the interface of operating browser portrait (CAppFaceFunc) and the various paths of operating browser.The call request that this step is initiated can be any one in the above-mentioned interface, but the present invention is not limited only to this.More than each interface comprise one group of function and/or call back function, can call for plug-in unit.
After step S101, method 100 enters step S102, wherein judges the kernel type when the browser of the front opening page, if IE kernel type, execution in step S103; If non-IE kernel type, execution in step S104.Browser itself provides the option of selecting browser model to the user, different browser model correspondences different kernel type.The inner variable that adopts of browser comes the selected browser model of identifying user, and this paper is called the browser type identifier with this variable.By the concrete numerical value of reference browser type identifier, just can judge the kernel type when the browser of the front opening page.
In step S103, according to calling the operation that the unified interface set pair is answered, obtain first interface corresponding with this operation that IE kernel type provides.The unified interface collection is integrated operations interface is to support corresponding operations.If the kernel type of judging when the browser of the front opening page is IE kernel type, can obtain the pointer of first interface corresponding with this operation so earlier, obtain first interface according to this pointer then.According to one embodiment of present invention, can adopt following method to obtain first interface: at first to obtain the browser control part interface pointer, for example the IWebBrowser2 interface pointer; After obtaining this pointer, can call this pointer and finish operations, for example, for " refreshing " operation, obtain pointer exactly after, call " Refresh " method of this pointer.
In step S104, according to the operation that the unified interface set pair is answered, obtain second interface corresponding with this operation that non-IE kernel type provides.The plug-in management device internal maintenance of realizing this method has the interface of non-IE kernel type and the mapping relations table of corresponding operating.If the kernel type of judging when the browser of the front opening page is non-IE kernel type, at first obtain the operation that unified interface set pair that plug-in unit calls is answered; Inquire about above-mentioned mapping relations table then, corresponding with this operation second interface that is provided by non-IE kernel type is provided.
After step S103, method 100 enters step S105, wherein, and to the call request of browser initiation at first interface.Can know that by above-mentioned steps the call request that plug-in unit is initiated is actual to be first interface that the browser at IE kernel type provides, therefore initiate call request at first interface to browser.
After step S104, method 100 enters step S106, wherein, and to the call request of browser initiation at second interface.Can know that by above-mentioned steps the call request that plug-in unit is initiated is actual to be second interface that the browser at non-IE kernel type provides, therefore initiate call request at second interface to browser.
After step S105 or step S106, method 100 enters step S107, wherein behind the browser complete operation, receives the return results from browser, and this return results is returned to plug-in unit.This step is not necessary, does not namely need to carry out this step in that the situation that does not need return results is next.
The management method of the browser plug-in that provides by above-described embodiment, when plug-in unit and browser master routine carry out when mutual, can directly initiate the call request at the unified interface collection, after the plug-in management device of realization this method receives this call request, can judge the kernel type of current browser, if browser first interface corresponding with operation call request that provide of IE kernel type then is provided IE kernel type; If browser second interface corresponding with operation call request that provide of non-IE kernel type then is provided non-IE kernel type, thereby initiate the call request at first interface or second interface.Provide plug-in unit extension mechanism at different browsers kernel compatibility by this method, need not the developing plug personnel and consider to design the different modes mutual with browser in advance at different browser kernels, improved development efficiency.
Fig. 2 shows the structured flowchart of the management devices 20 of browser plug-in according to an embodiment of the invention.As shown in Figure 2, this device 20 comprises: judge module 21, first calling module 22 and second calling module 23.
Wherein, judge module 21 is suitable for judging the kernel type when the browser of the front opening page after the call request at unified interface that receives the plug-in unit initiation.The unified interface collection that this device provides has comprised the interface that can supply plug-in unit to call, and specifically comprises: the interface (CAppInstanceFunc) of operation process instance, the interface (CAppItemFunc) of operation plugin information, the interface of operating browser framework (CAppFrameFunc), the interface of operating browser tool bar (CAppToolBarFunc), the interface of operating browser sidebar (CAppSidePanelFunc), the interface of operation pages (CAppBrowserFunc), the interface of operating browser menu (CAppMenuFunc), the interface (CAppPathFunc) in the interface of operating browser portrait (CAppFaceFunc) and the various paths of operating browser.The call request that plug-in unit is initiated can be any one in the above-mentioned interface, but the present invention is not limited only to this.More than each interface comprise one group of function and/or call back function, can call for plug-in unit.Browser itself provides the option of selecting browser model to the user, different browser model correspondences different kernel type.The inner variable (being the browser type identifier) that adopts of browser comes the selected browser model of identifying user.Judge module 21 just can be judged the kernel type when the browser of the front opening page by the concrete numerical value with reference to the browser type identifier.
It is under the situation of the first kernel type that first calling module 22 is suitable in the kernel type of judging browser, the operation of answering according to described unified interface set pair, obtain first interface corresponding with this operation that the first kernel type provides, to the call request of browser initiation at first interface.The unified interface collection is integrated operations interface is to support corresponding operations.Be that IE kernel type is example with the first kernel type, if the kernel type of judging when the browser of the front opening page is IE kernel type, can obtain the pointer of first interface corresponding with this operation so earlier, obtain first interface according to this pointer then.According to one embodiment of present invention, first calling module 22 can adopt following method to obtain first interface: at first obtain the browser control part interface pointer, for example the IWebBrowser2 interface pointer; After obtaining this pointer, can call this pointer and finish operations, for example, for " refreshing " operation, obtain pointer exactly after, call " Refresh " method of this pointer.
It is under the situation of the second kernel type that second calling module 23 is suitable in the kernel type of judging browser, the operation of answering according to described unified interface set pair, obtain second interface corresponding with this operation that the second kernel type provides, to the call request of browser initiation at second interface.Interface and the corresponding mapping relations table of operating that this device internal maintenance has non-IE kernel type to provide.Be that non-IE kernel type is example with the second kernel type, if the kernel type of judging when the browser of the front opening page is non-IE kernel type, second calling module 23 at first obtains the operation that unified interface set pair that plug-in unit calls is answered; Inquire about above-mentioned mapping relations table then, corresponding with this operation second interface that is provided by non-IE kernel type is provided, then initiate call request at second interface to browser.
In addition, this device 20 also comprises: transceiver module 24, be suitable for behind the browser complete operation, and receive the return results from browser, return results is returned to plug-in unit.This module is not necessary, namely in next this module that do not need of the situation that does not need return results.
Alternatively, said apparatus can be integrated into an independently functional module.For example, said apparatus realizes in the mode of class libraries, loads for browser, and plug-in unit provides corresponding derivative function, calls for this device, and the plug-in unit interface that uses this device to provide carries out various operations to browser afterwards.
Said apparatus also can be integrated in the plug-in unit.For example, said apparatus is realized in the mode of code segment, loads for browser.The interface that this device provides is function, and other plug-in unit can directly call these functions.
Fig. 3 shows the structured flowchart of the interactive system of browser and plug-in unit according to an embodiment of the invention.As shown in Figure 3, this system comprises management devices 20 and the plug-in unit 30 of browser 10, browser plug-in.Wherein, plug-in unit 30 is suitable for initiating call request at the unified interface collection to the management devices 20 of browser plug-in, and when return results is arranged, and receives the return results that the management devices 20 of browser plug-in returns; Browser 10 is suitable for receiving the call request at first interface or second interface that the management devices 20 of browser plug-in is initiated, according to this call request executable operations, and when the needs return results, to management devices 20 return results of browser plug-in.The concrete structure of the management devices 20 of browser plug-in and function are referring to the description of said apparatus embodiment.
The device and the system that provide by above-described embodiment, when plug-in unit and browser master routine carry out when mutual, can directly initiate the call request at the unified interface collection, after the plug-in management device receives this call request, can judge the kernel type of current browser, if browser first interface corresponding with operation call request that provide of IE kernel type then is provided IE kernel type; If browser second interface corresponding with operation call request that provide of non-IE kernel type then is provided non-IE kernel type, thereby initiate the call request at first interface or second interface.The invention provides the plug-in unit extension mechanism at different browsers kernel compatibility, need not the developing plug personnel and consider to design the different modes mutual with browser in advance at different browser kernels, improved development efficiency.
Intrinsic not relevant with any certain computer, virtual system or miscellaneous equipment with demonstration at this algorithm that provides.Various general-purpose systems also can be with using based on the teaching at this.According to top description, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also at any certain programmed language.Should be understood that and to utilize various programming languages to realize content of the present invention described here, and the top description that language-specific is done is in order to disclose preferred forms of the present invention.
In the instructions that provides herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can be put into practice under the situation of these details not having.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the description to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes in the above.Yet the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires the more feature of feature clearly put down in writing than institute in each claim.Or rather, as following claims reflected, inventive aspect was to be less than all features of the disclosed single embodiment in front.Therefore, follow claims of embodiment and incorporate this embodiment thus clearly into, wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can adaptively change and they are arranged in one or more equipment different with this embodiment the module in the equipment among the embodiment.Can become a module or unit or assembly to the module among the embodiment or unit or combination of components, and can be divided into a plurality of submodules or subelement or sub-component to them in addition.In such feature and/or process or unit at least some are mutually repelling, and can adopt any combination to disclosed all features in this instructions (comprising claim, summary and the accompanying drawing followed) and so all processes or the unit of disclosed any method or equipment make up.Unless clearly statement in addition, disclosed each feature can be by providing identical, being equal to or the alternative features of similar purpose replaces in this instructions (comprising claim, summary and the accompanying drawing followed).
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included among other embodiment, the combination of features of different embodiment means and is within the scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with array mode arbitrarily.
Each parts embodiment of the present invention can realize with hardware, perhaps realizes with the software module of moving at one or more processor, and perhaps the combination with them realizes.It will be understood by those of skill in the art that and to use microprocessor or digital signal processor (DSP) to realize according to some or all some or repertoire of parts in the interactive system of the management devices of the browser plug-in of the embodiment of the invention and browser and plug-in unit in practice.The present invention can also be embodied as for part or all equipment or the device program (for example, computer program and computer program) of carrying out method as described herein.Such realization program of the present invention can be stored on the computer-readable medium, perhaps can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, and perhaps provides at carrier signal, perhaps provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment under the situation of the scope that does not break away from claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed in element or step in the claim.Being positioned at word " " before the element or " one " does not get rid of and has a plurality of such elements.The present invention can realize by means of the hardware that includes some different elements and by means of the computing machine of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to come imbody by same hardware branch.Any order is not represented in the use of word first, second and C grade.Can be title with these word explanations.
The invention discloses the management method of A1, a kind of browser plug-in, comprising: after the call request at the unified interface collection that receives the plug-in unit initiation, judge the kernel type when the browser of the front opening page; Be under the situation of the first kernel type in the kernel type of judging browser, the operation of answering according to described unified interface set pair, obtain first interface corresponding with this operation that the first kernel type provides, to the call request of browser initiation at described first interface; Be under the situation of the second kernel type in the kernel type of judging browser, the operation of answering according to described unified interface set pair, obtain second interface corresponding with this operation that the second kernel type provides, to the call request of browser initiation at described second interface.A2, according to the described method of A1, also comprise after the described call request of initiating to browser at first interface or second interface: behind the browser complete operation, reception is returned described return results to plug-in unit from the return results of browser.A3, according to A1 or the described method of A2, the described first kernel type is IE kernel type, the described second kernel type is non-IE kernel type.A4, according to the described method of A3, the described step of obtaining first interface corresponding with this operation that the first kernel type provides comprises: the operation of answering according to described unified interface set pair, obtain the pointer of first interface corresponding with this operation, obtain first interface corresponding with this operation then.A5, according to the described method of A1, described unified interface collection comprises with in the lower interface at least one: interface, the interface of operating browser framework, the interface of operating browser tool bar, the interface of operating browser sidebar, the interface of operation pages, the interface of operating browser menu, the interface of operating browser portrait and the interface in the various paths of operating browser of the interface of operation process instance, operation plugin information.A6, according to the described method of A5, each interface comprises one group of function and/or call back function.
The invention also discloses the management devices of B7, a kind of browser plug-in, comprising: judge module is suitable for judging the kernel type when the browser of the front opening page after the call request at unified interface that receives the plug-in unit initiation; First calling module, being suitable in the kernel type of judging browser is under the situation of the first kernel type, according to the operation that described unified interface set pair is answered, obtain first interface corresponding with this operation that the first kernel type provides, to the call request of browser initiation at described first interface; Second calling module, being suitable in the kernel type of judging browser is under the situation of the second kernel type, according to the operation that described unified interface set pair is answered, obtain second interface corresponding with this operation that the second kernel type provides, to the call request of browser initiation at described second interface.B8, according to the described device of B7, also comprise: transceiver module, be suitable for behind the browser complete operation, receive the return results from browser, described return results is returned to plug-in unit.B9, according to B7 or the described device of B8, the described first kernel type is IE kernel type, the described second kernel type is non-IE kernel type.B10, according to the described device of B9, it is under the situation of the first kernel type that first calling module is further adapted in the kernel type of judging browser, the operation of answering according to described unified interface set pair, obtain the pointer of first interface corresponding with this operation, then obtain first interface corresponding with this operation, to the call request of browser initiation at described first interface.B11, according to the described device of B7, described unified interface collection comprises with in the lower interface at least one: interface, the interface of operating browser framework, the interface of operating browser tool bar, the interface of operating browser sidebar, the interface of operation pages, the interface of operating browser menu, the interface of operating browser portrait and the interface in the various paths of operating browser of the interface of operation process instance, operation plugin information.B12, according to the described device of B11, each interface comprises one group of function and/or call back function.B13, according to each described device of B7 to B12, described device is integrated into an independently functional module.B14, according to each described device of B7 to B12, described device is integrated in the described plug-in unit.
The invention also discloses the interactive system of C15, a kind of browser and plug-in unit, comprise the management devices of browser, plug-in unit and above-mentioned each described browser plug-in of B7 to B14; Wherein, described plug-in unit is suitable for initiating call request at the unified interface collection to the management devices of described browser plug-in; Described browser is suitable for receiving the call request at first interface or second interface that the management devices of described browser plug-in is initiated, according to this call request executable operations.

Claims (10)

1. the management method of a browser plug-in comprises:
After the call request at the unified interface collection that receives the plug-in unit initiation, judge the kernel type when the browser of the front opening page;
Be under the situation of the first kernel type in the kernel type of judging browser, the operation of answering according to described unified interface set pair, obtain first interface corresponding with this operation that the first kernel type provides, to the call request of browser initiation at described first interface;
Be under the situation of the second kernel type in the kernel type of judging browser, the operation of answering according to described unified interface set pair, obtain second interface corresponding with this operation that the second kernel type provides, to the call request of browser initiation at described second interface.
2. method according to claim 1 also comprises after the described call request of initiating to browser at first interface or second interface: behind the browser complete operation, receive the return results from browser, described return results is returned to plug-in unit.
3. method according to claim 1 and 2, the described first kernel type is IE kernel type, the described second kernel type is non-IE kernel type.
4. method according to claim 3, the described step of obtaining first interface corresponding with this operation that the first kernel type provides comprises: the operation of answering according to described unified interface set pair, obtain the pointer of first interface corresponding with this operation, obtain first interface corresponding with this operation then.
5. method according to claim 1, described unified interface collection comprise with in the lower interface at least one: interface, the interface of operating browser framework, the interface of operating browser tool bar, the interface of operating browser sidebar, the interface of operation pages, the interface of operating browser menu, the interface of operating browser portrait and the interface in the various paths of operating browser of the interface of operation process instance, operation plugin information.
6. method according to claim 5, each interface comprises one group of function and/or call back function.
7. the management devices of a browser plug-in comprises:
Judge module is suitable for judging the kernel type when the browser of the front opening page after the call request at unified interface that receives the plug-in unit initiation;
First calling module, being suitable in the kernel type of judging browser is under the situation of the first kernel type, according to the operation that described unified interface set pair is answered, obtain first interface corresponding with this operation that the first kernel type provides, to the call request of browser initiation at described first interface;
Second calling module, being suitable in the kernel type of judging browser is under the situation of the second kernel type, according to the operation that described unified interface set pair is answered, obtain second interface corresponding with this operation that the second kernel type provides, to the call request of browser initiation at described second interface.
8. device according to claim 7 also comprises: transceiver module, be suitable for behind the browser complete operation, and receive the return results from browser, described return results is returned to plug-in unit.
9. according to claim 7 or 8 described devices, the described first kernel type is IE kernel type, and the described second kernel type is non-IE kernel type.
10. the interactive system of a browser and plug-in unit comprises the management devices of browser, plug-in unit and aforesaid right requirement 7 to 9 each described browser plug-ins; Wherein, described plug-in unit is suitable for initiating call request at the unified interface collection to the management devices of described browser plug-in; Described browser is suitable for receiving the call request at first interface or second interface that the management devices of described browser plug-in is initiated, according to this call request executable operations.
CN2013101544357A 2013-04-28 2013-04-28 Method and device for browser plugin management, browser and plugin interactive system Pending CN103197972A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101544357A CN103197972A (en) 2013-04-28 2013-04-28 Method and device for browser plugin management, browser and plugin interactive system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101544357A CN103197972A (en) 2013-04-28 2013-04-28 Method and device for browser plugin management, browser and plugin interactive system

Publications (1)

Publication Number Publication Date
CN103197972A true CN103197972A (en) 2013-07-10

Family

ID=48720560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101544357A Pending CN103197972A (en) 2013-04-28 2013-04-28 Method and device for browser plugin management, browser and plugin interactive system

Country Status (1)

Country Link
CN (1) CN103197972A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488508A (en) * 2013-09-18 2014-01-01 贝壳网际(北京)安全技术有限公司 Browser working method, browser and terminal equipment
CN103885777A (en) * 2014-03-25 2014-06-25 浪潮(山东)电子信息有限公司 Development method of bank self-service system cross-browser insert
CN103955515A (en) * 2014-05-05 2014-07-30 百度在线网络技术(北京)有限公司 Processing method and device for dual-core browser
CN104008060A (en) * 2014-06-18 2014-08-27 腾讯科技(深圳)有限公司 Method for detecting compatibility of plug-in and host, and detection server
CN104281455A (en) * 2014-10-11 2015-01-14 北京金山安全软件有限公司 Interface calling method and device and terminal
CN104391700A (en) * 2014-11-11 2015-03-04 百度在线网络技术(北京)有限公司 Method and device for expanding functions of application program
CN108279888A (en) * 2017-12-19 2018-07-13 中国电子科技集团公司第三十研究所 A kind of plug-in implement method for supporting more money browsers

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7017159B1 (en) * 1999-06-15 2006-03-21 Sun Microsystems, Inc. Smart bookmarks for small footprint device applications
CN103019818A (en) * 2012-11-30 2013-04-03 北京奇虎科技有限公司 Page interaction method and device
CN103019817A (en) * 2012-11-30 2013-04-03 北京奇虎科技有限公司 Method and device for page interaction

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7017159B1 (en) * 1999-06-15 2006-03-21 Sun Microsystems, Inc. Smart bookmarks for small footprint device applications
CN103019818A (en) * 2012-11-30 2013-04-03 北京奇虎科技有限公司 Page interaction method and device
CN103019817A (en) * 2012-11-30 2013-04-03 北京奇虎科技有限公司 Method and device for page interaction

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488508A (en) * 2013-09-18 2014-01-01 贝壳网际(北京)安全技术有限公司 Browser working method, browser and terminal equipment
CN103488508B (en) * 2013-09-18 2017-01-18 贝壳网际(北京)安全技术有限公司 Browser working method, browser and terminal equipment
CN103885777A (en) * 2014-03-25 2014-06-25 浪潮(山东)电子信息有限公司 Development method of bank self-service system cross-browser insert
CN103955515A (en) * 2014-05-05 2014-07-30 百度在线网络技术(北京)有限公司 Processing method and device for dual-core browser
CN103955515B (en) * 2014-05-05 2018-03-30 百度在线网络技术(北京)有限公司 The processing method and processing device of double-core browser
CN104008060A (en) * 2014-06-18 2014-08-27 腾讯科技(深圳)有限公司 Method for detecting compatibility of plug-in and host, and detection server
CN104008060B (en) * 2014-06-18 2017-02-01 腾讯科技(深圳)有限公司 Method for detecting compatibility of plug-in and host, and detection server
CN104281455A (en) * 2014-10-11 2015-01-14 北京金山安全软件有限公司 Interface calling method and device and terminal
CN104391700A (en) * 2014-11-11 2015-03-04 百度在线网络技术(北京)有限公司 Method and device for expanding functions of application program
CN108279888A (en) * 2017-12-19 2018-07-13 中国电子科技集团公司第三十研究所 A kind of plug-in implement method for supporting more money browsers

Similar Documents

Publication Publication Date Title
CN103197972A (en) Method and device for browser plugin management, browser and plugin interactive system
CN102591777B (en) A kind of unit test code generation method and device
CN109445835A (en) Method, terminal device and the computer readable storage medium of building project frame
CN111639278B (en) Webpage loading method and device
CN103246578A (en) Method and browser for processing collapse of application software
CN104731589A (en) Automatic generation method and device of user interface (UI)
US11553035B2 (en) Cross-platform module for loading across a plurality of device types
US10666744B2 (en) Managing discovery and selection of service interface specifications
CN105022630A (en) Component management system and component management method
CN104679500B (en) Method and device for realizing automatic generation of entity class
US10133766B2 (en) Accessing and editing virtually-indexed message flows using structured query langauge (SQL)
CN102981915A (en) Communication method and device among application programs
CN104866327A (en) PHP development method and frame
CN110941779B (en) Page loading method and device, storage medium and electronic equipment
CN103577552A (en) Webpage picture processing method and device
CN112506492B (en) Visual point burying method supporting dynamic scene configuration
CN110209395B (en) Method, equipment and medium for embedding SQL into high-level language
CN103543991A (en) Method for extending functions of browser and browser system
CN103226474A (en) Method, device and system for interaction between webpage script and browser program
CN103336817A (en) Method and device for webpage zoom on electronic equipment
CN115167831A (en) Software integration method and device based on AUTOSAR and use method
CN112835809A (en) Test data setting method, device, equipment and medium based on browser
CN114461223A (en) Code generation method and device and terminal equipment
CN109558121A (en) Development approach, device, equipment and the storage medium of interface drive program
CN112764836A (en) Method and device for running fast application and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20130710

RJ01 Rejection of invention patent application after publication