CN103559097B - The method of interprocess communication, device and browser in a kind of browser - Google Patents
The method of interprocess communication, device and browser in a kind of browser Download PDFInfo
- Publication number
- CN103559097B CN103559097B CN201310492797.7A CN201310492797A CN103559097B CN 103559097 B CN103559097 B CN 103559097B CN 201310492797 A CN201310492797 A CN 201310492797A CN 103559097 B CN103559097 B CN 103559097B
- Authority
- CN
- China
- Prior art keywords
- kernel process
- operational order
- browser kernel
- browser
- web page
- 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 259
- 238000004891 communication Methods 0.000 title claims abstract description 22
- 230000008569 process Effects 0.000 claims abstract description 221
- 238000009877 rendering Methods 0.000 claims abstract description 25
- 239000000284 extract Substances 0.000 claims description 9
- 230000006399 behavior Effects 0.000 claims 1
- 230000006870 function Effects 0.000 description 13
- 230000006978 adaptation Effects 0.000 description 9
- 230000004044 response Effects 0.000 description 6
- 201000001432 Coffin-Siris syndrome Diseases 0.000 description 5
- 238000010794 Cyclic Steam Stimulation Methods 0.000 description 5
- 230000003044 adaptive effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000013515 script Methods 0.000 description 2
- VYZAMTAEIAYCRO-UHFFFAOYSA-N Chromium Chemical compound [Cr] VYZAMTAEIAYCRO-UHFFFAOYSA-N 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000007620 mathematical function Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
Abstract
The invention discloses the method for interprocess communication, device and browser in a kind of browser, methods described includes:When the first browser kernel process judges that current web page is suitable for use with the loading of the second browser kernel process, the operational order that triggering current web page is loaded is received using the first browser kernel process;The operational order is obtained using the I/O information dispatch thread, the operational order is sent into the corresponding labels page sub-line journey of current web page;Current web page is rendered according to the operational order using the labels page sub-line journey;Webpage after being rendered by the 2nd I/O threads is sent into an I/O threads;Using the first browser kernel process to rendering after webpage show.The present invention improves the loading velocity and efficiency of webpage.
Description
Technical field
The present invention relates to the technical field of browser, method, one of interprocess communication in more particularly to a kind of browser
Plant the device and a kind of browser of interprocess communication in browser.
Background technology
Browser can be divided into two parts, i.e. kernel and shell from framework.Browser kernel refers to the core of browser
Center portion point, is segmented into two parts:Rendering engine (layout engineer or Rendering Engine) and JS
(JavaScript)Engine.Rendering engine is mainly responsible for obtaining the content of webpage(Including HTML, XML, image etc.), arrange information
(Such as add CSS(Cascading Style Sheets, cascading style list)Deng), and calculate webpage display mode, so
After can export to display or printer.The difference of browser kernel has difference for the grammar explanation of webpage, so rendering
Effect also differ.All web browsers, email client and other need to edit, show Web content should
Kernel is required for program.JS engines are then parsing Javascript language, perform Javascript language to realize webpage
Dynamic effect.
The species of browser kernel has a lot, what the IE browser that browser kernel relatively common at present has Microsoft was used
Trident kernels, the Gecko kernels that Firefox browser is used, the Safari browsers of apple and the Chrome of Google are clear
The Webkit kernels that device of looking at is used, and, the Presto kernels that Opera browsers are used.
When user initiates one by browser browses the request of webpage, browser is downloaded by kernel from targeted website
The content of webpage, then analyzes web page contents, and perform script calculates typesetting, is finally output to display and is shown to user.Each
Browser has a kernel, no matter user opens how many webpages by a browser process, browser is all using same
Individual kernel is explained and performed.
But, this single kernel browser has significant limitation, because webpage is often to be supported according to certain kernel
What network standard made, for the network standard that certain particular core is supported, other kernels possibly cannot be supported well(Even
Cannot support).For example, user browses webpage using Firefox browser, the kernel of Firefox browser being capable of twelve Earthly Branches very well
W3C standards are held, therefore the webpage made according to W3C standards is may browse through using the browser.But if user wants to browse trick
Business's bank web page uses the Internet bank, and Firefox browser cannot just meet this user's request.Because China Merchants Bank website
Internet bank's function needs ActiveX pin functions, and the kernel that the function may only have IE could be supported, such user makes
With cannot just use Internet bank's function of China Merchants Bank in the case of Firefox browser.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
The device of interprocess communication in the method and a kind of corresponding browser of interprocess communication in a kind of browser of problem is stated, and
A kind of browser.
According to one aspect of the present invention, there is provided a kind of method of interprocess communication in browser, the browser bag
The first browser kernel process and the second browser kernel process are included, the first browser kernel process includes an I/O lines
Journey, the second browser kernel process includes the 2nd I/O threads, I/O information dispatch thread and window thread, the window line
Journey includes one or more labels page sub-line journeys, and methods described includes:
When the first browser kernel process judges that current web page is suitable for use with the loading of the second browser kernel process,
The operational order that triggering current web page is loaded is received using the first browser kernel process;
The operational order is obtained using the I/O information dispatch thread, the operational order is sent to current web page
In corresponding labels page sub-line journey;
Current web page is rendered according to the operational order using the labels page sub-line journey;
Webpage after being rendered by the 2nd I/O threads is sent into an I/O threads;
Using the first browser kernel process to rendering after webpage show.
Alternatively, it is described that the operational order that triggering current web page is loaded is received using the first browser kernel process
Step includes:
The operational order that triggering current web page is loaded is received using an I/O threads.
Alternatively, the step of acquisition operational order using the I/O information dispatch thread includes:
The copy of the operational order is obtained from internal memory using the I/O information dispatch thread.
Alternatively, the operational order includes the second browser kernel process identification (PID) and the sub- thread identification of labels page;
It is described the operational order is sent into the step into the corresponding labels page sub-line journey of current web page to include:
Extract the second browser kernel process identification (PID) in the operational order and the sub- thread identification of labels page;
The operational order sent to second browser kernel process identification (PID) using system message recursion instruction and
In the corresponding labels page sub-line journey of the sub- thread identification of labels page.
Alternatively, in the first browser kernel process judge current web page to be in the following manner suitable for use with second clear
Device kernel process of looking at is loaded:
URL using current web page in the first browser kernel process is searched in the browser of current web page matching
Core process;
When finding, the browser kernel process for judging matching is the second browser kernel process.
According to another aspect of the present invention, there is provided the device of interprocess communication in a kind of browser, the browser bag
The first browser kernel process and the second browser kernel process are included, the first browser kernel process includes an I/O lines
Journey, the second browser kernel process includes the 2nd I/O threads, I/O information dispatch thread and window thread, the window line
Journey includes one or more labels page sub-line journeys, and described device includes:
Operational order receiver module, is suitable to judge that current web page is suitable for use with second in the first browser kernel process
When browser kernel process is loaded, the operation for receiving triggering current web page loading using the first browser kernel process refers to
Order;
Operational order acquisition module, is suitable for use with the I/O information dispatch thread and obtains the operational order;
Operational order sending module, is suitable to for the operational order to send labels page sub-line journey corresponding to current web page
In;
Rendering module, be suitable for use with the labels page sub-line journey carries out wash with watercolours according to the operational order to current web page
Dye;
Webpage sending module, is suitable to the webpage after being rendered by the 2nd I/O threads and sent to an I/O lines
Cheng Zhong;
Web displaying module, the webpage after being suitable for use with the first browser kernel process to rendering shows.
Alternatively, the operational order receiver module is further adapted for:
The operational order that triggering current web page is loaded is received using an I/O threads.
Alternatively, the operational order acquisition module is further adapted for:
The copy of the operational order is obtained from internal memory using the I/O information dispatch thread.
Alternatively, the operational order includes the second browser kernel process identification (PID) and the sub- thread identification of labels page;
The operational order sending module is further adapted for:
Extract the second browser kernel process identification (PID) in the operational order and the sub- thread identification of labels page;
The operational order sent to second browser kernel process identification (PID) using system message recursion instruction and
In the corresponding labels page sub-line journey of the sub- thread identification of labels page.
Alternatively, in the first browser kernel process judge current web page to be in the following manner suitable for use with second clear
Device kernel process of looking at is loaded:
URL using current web page in the first browser kernel process is searched in the browser of current web page matching
Core process;
When finding, the browser kernel process for judging matching is the second browser kernel process.
According to another aspect of the present invention, there is provided a kind of browser, the browser enters including the first browser kernel
Journey and the second browser kernel process, the first browser kernel process include an I/O threads, in second browser
Core process includes the 2nd I/O threads, I/O information dispatch thread and window thread, and the window thread is marked including one or more
Page sub-line journey is signed, the browser includes:
Operational order receiver module, is suitable to judge that current web page is suitable for use with second in the first browser kernel process
When browser kernel process is loaded, the operation for receiving triggering current web page loading using the first browser kernel process refers to
Order;
Operational order acquisition module, is suitable for use with the I/O information dispatch thread and obtains the operational order;
Operational order sending module, is suitable to for the operational order to send labels page sub-line journey corresponding to current web page
In;
Rendering module, be suitable for use with the labels page sub-line journey carries out wash with watercolours according to the operational order to current web page
Dye;
Webpage sending module, is suitable to the webpage after being rendered by the 2nd I/O threads and sent to an I/O lines
Cheng Zhong;
Web displaying module, the webpage after being suitable for use with the first browser kernel process to rendering shows.
The present invention can be when judging that current web page is suitable for use with the loading of the second browser kernel process so that browser
Two browser kernel processes are switched over, it is possible to use the operational order of the first browser kernel process can be accurate and efficient
Be conveyed to be carried out in the labels page sub-line journey of webpage specified, realize that the normal of webpage is rendered and loaded, return to first clear
Look in device kernel process and shown, improve the loading velocity and efficiency of webpage.
Described above is only the general introduction of technical solution of the present invention, in order to better understand technological means of the invention,
And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the step of the embodiment of the method for interprocess communication in a kind of browser according to an embodiment of the invention
Rapid flow chart;And,
Fig. 2 shows the knot of the device embodiment of interprocess communication in a kind of browser according to an embodiment of the invention
Structure block diagram.
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.
Reference picture 1, shows that the method for interprocess communication in a kind of browser according to an embodiment of the invention is implemented
Example the step of flow chart, wherein, the browser can include the first browser kernel process and the second browser kernel process,
The first browser kernel process can include an I/O(Input/output, input/output)Thread, described second is clear
Device kernel process of looking at includes to be wrapped with the second I/O threads, I/O information dispatch thread and window thread, the window thread
One or more labels page sub-line journeys are included, specifically be may comprise steps of:
Step 101, judges that current web page is suitable for use with the second browser kernel and enters in the first browser kernel process
When journey is loaded, the operational order that triggering current web page is loaded is received using the first browser kernel process;
It should be noted that browser can include two or more browser kernels, the first browser kernel
Can be the browser kernel that uses of browser current default, the browser kernel of the acquiescence can be that system is set, and also may be used
So that what user was set, can be specifically the browser kernel of the performance high such as Webkit kernels.It is, of course, also possible to be in Gecko
Core, Presto kernels etc., the embodiment of the present invention is not any limitation as to this.
Second browser kernel can be built-in other browser kernels in addition to the first browser kernel of browser, can
Can be Trident kernels to be adapted to the loading of current web page in some situations(That is IE kernels), including IE-com kernels(And
The IE kernels of appearance)And/or IE-stand kernels.It is, of course, also possible to be Gecko kernels, Presto kernels etc., the present invention is implemented
Example is not any limitation as to this.
Process(Process)It is the basis of operating system configuration, can is a program being carrying out;Can calculate
The program example being currently running in machine;Can be to distribute to processor and by an entity of computing device;Can be
By the display that performs of single order, the active unit described by current state system resource related to one group.
Thread(thread), sometimes referred to as Lightweight Process (Lightweight Process, LWP), it is that program is performed
The minimum unit of stream.Thread is an entity in process, is the base unit independently dispatched and assigned by system, thread oneself
Do not possess system resource, only possess some resource essential in operation, but it can with belong to other lines of process together
Whole resources that the shared process of journey is possessed.
One thread can create and cancel another thread, can concurrently be held between the multiple threads in same process
OK.Each program at least one thread, if program only one of which thread, that is, program is in itself.During thread is program
One single sequential control flow.Run multiple threads simultaneously in single program and complete different work, referred to as multithreading.
IPC(Inter-Process Communication, interprocess communication), it is a kind of mechanism of Inter-Process Communication, operation
The process and thread of system can be by its exchange data and message.
In browser, an I/O threads and the 2nd I/O threads can be used for the transmission of data;Window thread can be clear
Look at the label webpage of device(Tab page)Corresponding Web Page Processing is carried out, specifically, labels page sub-line journey can be corresponding
Webpage carries out web page resources loading processing.
In one preferred embodiment of the invention, can sentence in the first browser kernel process in the following manner
Determine current web page and be suitable for use with the loading of the second browser kernel process:
Sub-step S11, current web page matching is searched in the first browser kernel process using the URL of current web page
Browser kernel process;
Sub-step S12, when finding, the browser kernel process for judging matching is the second browser kernel process.
In implementing, the fitting relation between the webpage of user's request and browser kernel process is known(It is i.e. current
Which browser kernel process webpage is suitable for use with is loaded)Method can have various.
One of which method, can know user's request according to the content and presetting rule obtained from solicited message
Fitting relation between webpage and the browser kernel process.
Specifically, presetting rule can include specific adaptation rule, General adaptive rule and/or not adaptation rule,
During request of loading webpage, use can be known according to specific adaptation rule, General adaptive rule and/or not adaptation rule
Fitting relation between the webpage and browser kernel process of family request.Wherein, specific adaptation rule can include webpage with it is clear
The fitting relation look between device kernel process, General adaptive rule can include selecting average loading velocity most fast clear for user
Look at device kernel process or be that user's selection supports best browser kernel process to network standard, adaptation rule can not include
Not fitting relation between webpage and browser kernel process.
Because browser can also send adding on loading webpage according to the load request for receiving to corresponding server
Solicited message is carried, server can return to response message, some webpages can be carried in response message for load request information
The information such as content of pages, therefore in which case, can also be according to the sound for load request information returned from server
The content and presetting rule of information acquisition are answered, the browser kernel process with the webpage fit of user's request is known again;Such as
The browser kernel process of adaptation that fruit is known again be adapted to browser kernel process not based on what solicited message was known before this
Together, then the adaptation browser kernel process known again is selected to load the webpage of user's request.
In another method, closed because browser can also send according to the load request for receiving to corresponding server
In the load request information of loading webpage, server can return to response message, the meeting in response message for load request information
Carry the information such as the content of pages of some webpages, therefore in the method, can directly according to returned from server for plus
The content and presetting rule of the response information acquisition that solicited message is returned are carried, the webpage and browser kernel of user's request is known
Fitting relation between process.
It is of course also possible to be returned for load request information according to the content obtained from load request, from what server was returned
The content and presetting rule of the response information acquisition returned, know between the webpage of user's request and browser kernel process jointly
Fitting relation.
In addition, when the method provided using the various embodiments described above loads webpage, can also be to the net of loading user's request
The situation of page is detected;If there is the phenomenon for meeting preset browser kernel process switching condition, then according to preset rule
The browser kernel process with the webpage fit is then known again;The browser kernel process loading of the adaptation that selection is known again
The webpage of user's request.Wherein, the phenomenon for meeting preset browser kernel process switching condition can include:In loading procedure
Middle detection institute loading velocity is slower, or webpage is detected after loaded without normally display, etc..
In one preferred embodiment of the invention, the step 101 can include following sub-step:
Sub-step S21, the operational order that triggering current web page is loaded is received using an I/O threads.
The specific instruction of the web page operation that operational order can be carried out for user, for example, advance, retreat etc., specifically can be with
Including operation name and/or operating parameter.
After the first browser kernel process receives operational order, can be buffered in local internal memory.
Step 102, the operational order is obtained using the I/O information dispatch thread;
Current web page is suitable for use with the second browser kernel and is loaded, and to improve the efficiency of webpage loading, can use
Second browser kernel process is loaded, then need to obtain corresponding operation and refer to.
In one preferred embodiment of the invention, the step 102 can include following sub-step:
Sub-step S31, the copy of the operational order is obtained using the I/O information dispatch thread from internal memory.
In implementing, when operational order is buffered in local memory, the operation can be obtained from internal memory and is referred to
The copy of order.
Step 103, the operational order is sent into the corresponding labels page sub-line journey of current web page;
After I/O information dispatch threads get the operational order, Shipping Options Page corresponding to current web page just can be sent
Face thread, is used to carry out the loading of web page resources.
In one preferred embodiment of the invention, the operational order includes the second browser kernel process identification (PID)
(Process ID)With the sub- thread identification of labels page(Tab page ID);The step 103 can include following sub-step:
Sub-step S41, extracts the second browser kernel process identification (PID) in the operational order and labels page sub-line journey
Mark;
Sub-step S42, is sent to second browser kernel operational order using system message recursion instruction
In process identification (PID) and the corresponding labels page sub-line journey of the sub- thread identification of labels page.
Second browser kernel process identification (PID) can be used for identifying the second browser kernel process, labels page sub-line journey mark
Knowledge can be used for identification (RFID) tag page sub-line journey, and the second browser kernel process identification (PID) and the sub- thread identification of labels page can refer to
Show the corresponding labels page sub-line journey of unique current page.
System message recursion instruction(PostMessage)It is Windows API(Application Programming
Interface, application programming interface)In a common mathematical function, for a piece of news to be put into message queue.Should
Be put into for one message by function(Send)It is associated in message queue to the thread that specified window is created, is not to wait for thread process
Message is returned to, and is asynchronous message pattern.Message in message queue is by calling GetMessage functions and PeekMessage
Function is obtained.
One specific example of I/O information dispatch threads can be as follows:
Wherein, msg is operational order.
With Trident kernels with example, here is the example of the sub- thread process message of labels page to second browser kernel, this
When message processing function 0OnIPCRedirectMsg_IEThread be in the labels page sub-line journey where current page
In, so message order treatment function directly can carry out corresponding treatment, such as OnExecuteCodeEx using operational order
Function, can directly invoke correlation function treatment:
Step 104, is rendered according to the operational order using the labels page sub-line journey to current web page;
The mode that different browser kernels is rendered can be different, by taking Trident kernels as an example, loading
Can be as follows with html page is rendered:
1st, the order that Trident kernels download web page resources is that to render the order of web page resources from top to bottom be also from upper
Arrive down, download and render while carrying out;
2nd, when certain part of the page is rendered into, completion has all been downloaded in its all of the above part(It is not to say that institute
There is associated element all to download);
If the 3, running into the label insertion file of semantic interpretation(JS scripts, CSS style), then now in Trident
The downloading process of core can enable individually connection and be downloaded;
4 and parsed after downloading, in resolving, stopped the download of all down elements of the page;
5th, CSS after the download is complete, will together be parsed with the former all CSSs downloaded, after being parsed,
Will be to all elements before this(Containing rendered in the past)Re-start and render;
6th, if any redefining in JS, CSS, rear defined function will cover preceding defined function.
It should be noted that the web page resources needed for loading current web page can be from the first browser kernel process to service
Device acquisition request, and sent into the 2nd I/O threads web page resources by an I/O threads.
Step 105, the webpage after being rendered by the 2nd I/O threads is sent into an I/O threads;
Second browser kernel is carried out after completion Rendering operations, and the webpage after just can rendering sends to first and browses
Device kernel is shown.
Step 106, using the first browser kernel process to rendering after webpage show.
In implementing, the first browser kernel process can include UI(User Interface, user interface)Thread,
Can be shown using the webpage after UI threads are rendered.
The present invention can be when judging that current web page is suitable for use with the loading of the second browser kernel process so that browser
Two browser kernel processes are switched over, it is possible to use the operational order of the first browser kernel process can be accurate and efficient
Be conveyed to be carried out in the labels page sub-line journey of webpage specified, realize that the normal of webpage is rendered and loaded, return to first clear
Look in device kernel process and shown, improve the loading velocity and efficiency of webpage.
Reference picture 2, shows that the device of interprocess communication in a kind of browser according to an embodiment of the invention is implemented
The structured flowchart of example, the browser can include the first browser kernel process and the second browser kernel process, described the
One browser kernel process can include an I/O threads, and the second browser kernel process can include the 2nd I/O lines
Journey, I/O information dispatch thread and window thread, the window thread can include one or more labels page sub-line journeys, institute
Stating device can specifically include such as lower module:
Operational order receiver module 201, is suitable to judge that current web page is suitable for use with the first browser kernel process
When second browser kernel process is loaded, the operation that triggering current web page is loaded is received using the first browser kernel process
Instruction;
Operational order acquisition module 202, is suitable for use with the I/O information dispatch thread and obtains the operational order;
Operational order sending module 203, is suitable to for the operational order to send Shipping Options Page face corresponding to current web page
In thread;
Rendering module 204, be suitable for use with the labels page sub-line journey is carried out according to the operational order to current web page
Render;
Webpage sending module 205, is suitable to the webpage after being rendered by the 2nd I/O threads and sent to an I/
In O threads;
Web displaying module 206, the webpage after being suitable for use with the first browser kernel process to rendering shows.
In one preferred embodiment of the invention, the operational order receiver module can be adapted to:
The operational order that triggering current web page is loaded is received using an I/O threads.
In one preferred embodiment of the invention, the operational order acquisition module can be adapted to:
The copy of the operational order is obtained from internal memory using the I/O information dispatch thread.
In one preferred embodiment of the invention, the second browser kernel process mark can be included in the operational order
Know and the sub- thread identification of labels page;
The operational order sending module can be further adapted for:
Extract the second browser kernel process identification (PID) in the operational order and the sub- thread identification of labels page;
The operational order sent to second browser kernel process identification (PID) using system message recursion instruction and
In the corresponding labels page sub-line journey of the sub- thread identification of labels page.
In one preferred embodiment of the invention, can sentence in the first browser kernel process in the following manner
Determine current web page and be suitable for use with the loading of the second browser kernel process:
URL using current web page in the first browser kernel process is searched in the browser of current web page matching
Core process;
When finding, the browser kernel process for judging matching is the second browser kernel process.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part is illustrated referring to the part of embodiment of the method.
Present invention also offers a kind of browser, the browser can be clear including the first browser kernel process and second
Look at device kernel process, the first browser kernel process can include an I/O threads, the second browser kernel process
The 2nd I/O threads, I/O information dispatch thread and window thread can be included, the window thread can include one or more
Labels page sub-line journey, the implement body that browses can include such as lower module:
Operational order receiver module, is suitable to judge that current web page is suitable for use with second in the first browser kernel process
When browser kernel process is loaded, the operation for receiving triggering current web page loading using the first browser kernel process refers to
Order;
Operational order acquisition module, is suitable for use with the I/O information dispatch thread and obtains the operational order;
Operational order sending module, is suitable to for the operational order to send labels page sub-line journey corresponding to current web page
In;
Rendering module, be suitable for use with the labels page sub-line journey carries out wash with watercolours according to the operational order to current web page
Dye;
Webpage sending module, is suitable to the webpage after being rendered by the 2nd I/O threads and sent to an I/O lines
Cheng Zhong;
Web displaying module, the webpage after being suitable for use with the first browser kernel process to rendering shows.
In one preferred embodiment of the invention, the operational order receiver module can be adapted to:
The operational order that triggering current web page is loaded is received using an I/O threads.
In one preferred embodiment of the invention, the operational order acquisition module can be adapted to:
The copy of the operational order is obtained from internal memory using the I/O information dispatch thread.
In one preferred embodiment of the invention, the second browser kernel process mark can be included in the operational order
Know and the sub- thread identification of labels page;
The operational order sending module can be further adapted for:
Extract the second browser kernel process identification (PID) in the operational order and the sub- thread identification of labels page;
The operational order sent to second browser kernel process identification (PID) using system message recursion instruction and
In the corresponding labels page sub-line journey of the sub- thread identification of labels page.
In one preferred embodiment of the invention, can sentence in the first browser kernel process in the following manner
Determine current web page and be suitable for use with the loading of the second browser kernel process:
URL using current web page in the first browser kernel process is searched in the browser of current web page matching
Core process;
When finding, the browser kernel process for judging matching is the second browser kernel process.
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
Combination is to this specification(Including adjoint claim, summary and accompanying drawing)Disclosed in all features 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 requires, makes a summary and accompanying drawing)Disclosed in each feature can carry out generation by the alternative features for providing identical, equivalent or similar purpose
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)To realize setting for interprocess communication in browser according to embodiments of the present invention
The some or all functions of some or all parts in standby.The present invention is also implemented as described here for performing
Method some or all equipment or program of device(For example, computer program and computer program product).This
Sample realizes that program of the invention can be stored on a computer-readable medium, or can have one or more signal
Form.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or with any other
Form 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 a kind of method of interprocess communication in A1, browser, the browser includes the first browser
Kernel process and the second browser kernel process, the first browser kernel process include an I/O threads, and described second is clear
Device kernel process of looking at include the 2nd I/O threads, I/O information dispatch thread and window thread, the window thread include one or
Multiple labels page sub-line journeys, methods described includes:
When the first browser kernel process judges that current web page is suitable for use with the loading of the second browser kernel process,
The operational order that triggering current web page is loaded is received using the first browser kernel process;
The operational order is obtained using the I/O information dispatch thread, the operational order is sent to current web page
In corresponding labels page sub-line journey;
Current web page is rendered according to the operational order using the labels page sub-line journey;
Webpage after being rendered by the 2nd I/O threads is sent into an I/O threads;
Using the first browser kernel process to rendering after webpage show.
A2, the method as described in A1, it is described that triggering current web page loading is received using the first browser kernel process
Operational order the step of include:
The operational order that triggering current web page is loaded is received using an I/O threads.
The step of A3, the method as described in A1, acquisition operational order using the I/O information dispatch thread, wraps
Include:
The copy of the operational order is obtained from internal memory using the I/O information dispatch thread.
A4, the method as described in A1, the operational order include the second browser kernel process identification (PID) and labels page
Sub- thread identification;
It is described the operational order is sent into the step into the corresponding labels page sub-line journey of current web page to include:
Extract the second browser kernel process identification (PID) in the operational order and the sub- thread identification of labels page;
The operational order sent to second browser kernel process identification (PID) using system message recursion instruction and
In the corresponding labels page sub-line journey of the sub- thread identification of labels page.
A5, the method as described in A1, judge that current web page is fitted in the first browser kernel process in the following manner
In using the loading of the second browser kernel process:
URL using current web page in the first browser kernel process is searched in the browser of current web page matching
Core process;
When finding, the browser kernel process for judging matching is the second browser kernel process.
The invention also discloses a kind of device of interprocess communication in B6, browser, the browser is browsed including first
Device kernel process and the second browser kernel process, the first browser kernel process include an I/O threads, described second
Browser kernel process includes the 2nd I/O threads, I/O information dispatch thread and window thread, and the window thread includes one
Or multiple labels page sub-line journeys, described device includes:
Operational order receiver module, is suitable to judge that current web page is suitable for use with second in the first browser kernel process
When browser kernel process is loaded, the operation for receiving triggering current web page loading using the first browser kernel process refers to
Order;
Operational order acquisition module, is suitable for use with the I/O information dispatch thread and obtains the operational order;
Operational order sending module, is suitable to for the operational order to send labels page sub-line journey corresponding to current web page
In;
Rendering module, be suitable for use with the labels page sub-line journey carries out wash with watercolours according to the operational order to current web page
Dye;
Webpage sending module, is suitable to the webpage after being rendered by the 2nd I/O threads and sent to an I/O lines
Cheng Zhong;
Web displaying module, the webpage after being suitable for use with the first browser kernel process to rendering shows.
B7, the device as described in B6, the operational order receiver module are further adapted for:
The operational order that triggering current web page is loaded is received using an I/O threads.
B8, the device as described in B6, the operational order acquisition module are further adapted for:
The copy of the operational order is obtained from internal memory using the I/O information dispatch thread.
B9, the device as described in B6, the operational order include the second browser kernel process identification (PID) and labels page
Sub- thread identification;
The operational order sending module is further adapted for:
Extract the second browser kernel process identification (PID) in the operational order and the sub- thread identification of labels page;
The operational order sent to second browser kernel process identification (PID) using system message recursion instruction and
In the corresponding labels page sub-line journey of the sub- thread identification of labels page.
B10, the device as described in B6, judge that current web page is fitted in the first browser kernel process in the following manner
In using the loading of the second browser kernel process:
URL using current web page in the first browser kernel process is searched in the browser of current web page matching
Core process;
When finding, the browser kernel process for judging matching is the second browser kernel process.
The invention also discloses C11, a kind of browser, including in browser any one of B6 to B10 between process
The device of communication.
Claims (11)
1. in a kind of browser interprocess communication method, the browser browses including the first browser kernel process and second
Device kernel process, the first browser kernel process includes an I/O threads, and the second browser kernel process includes the
Two I/O threads, I/O information dispatch thread and window thread, the window thread include one or more labels page sub-line journeys,
Methods described includes:
When the first browser kernel process judges that current web page is suitable for use with the loading of the second browser kernel process, use
The first browser kernel process receives the operational order of triggering current web page loading;
The operational order is obtained using the I/O information dispatch thread, the operational order is sent to current web page correspondence
Labels page sub-line journey in;
Current web page is rendered according to the operational order using the labels page sub-line journey;
Webpage after being rendered by the 2nd I/O threads is sent into an I/O threads;
Using the first browser kernel process to rendering after webpage show.
2. the method for claim 1, it is characterised in that described that triggering is received using the first browser kernel process
The step of operational order of current web page loading, includes:
The operational order that triggering current web page is loaded is received using an I/O threads.
3. the method for claim 1, it is characterised in that described that the behaviour is obtained using the I/O information dispatch thread
The step of instructing includes:
The copy of the operational order is obtained from internal memory using the I/O information dispatch thread.
4. the method for claim 1, it is characterised in that the operational order includes the second browser kernel process mark
Know and the sub- thread identification of labels page;
It is described the operational order is sent into the step into the corresponding labels page sub-line journey of current web page to include:
Extract the second browser kernel process identification (PID) in the operational order and the sub- thread identification of labels page;
The operational order is sent to second browser kernel process identification (PID) and label using system message recursion instruction
In the corresponding labels page sub-line journey of the sub- thread identification of the page.
5. the method for claim 1, it is characterised in that sentence in the first browser kernel process in the following manner
Determine current web page and be suitable for use with the loading of the second browser kernel process:
The browser kernel for searching current web page matching using the URL of current web page in the first browser kernel process enters
Journey;
When finding, the browser kernel process for judging matching is the second browser kernel process.
6. in a kind of browser interprocess communication device, the browser browses including the first browser kernel process and second
Device kernel process, the first browser kernel process includes an I/O threads, and the second browser kernel process includes the
Two I/O threads, I/O information dispatch thread and window thread, the window thread include one or more labels page sub-line journeys,
Described device includes:
Operational order receiver module, is suitable to judge that current web page is suitable for use with second and browses in the first browser kernel process
When device kernel process is loaded, the operational order that triggering current web page is loaded is received using the first browser kernel process;
Operational order acquisition module, is suitable for use with the I/O information dispatch thread and obtains the operational order;
Operational order sending module, is suitable to send the operational order into the corresponding labels page sub-line journey of current web page;
Rendering module, is suitable for use with the labels page sub-line journey current web page is rendered according to the operational order;
Webpage sending module, is suitable to the webpage after being rendered by the 2nd I/O threads and sent to an I/O threads
In;
Web displaying module, the webpage after being suitable for use with the first browser kernel process to rendering shows.
7. device as claimed in claim 6, it is characterised in that the operational order receiver module is further adapted for:
The operational order that triggering current web page is loaded is received using an I/O threads.
8. device as claimed in claim 6, it is characterised in that the operational order acquisition module is further adapted for:
The copy of the operational order is obtained from internal memory using the I/O information dispatch thread.
9. device as claimed in claim 6, it is characterised in that the operational order includes the second browser kernel process mark
Know and the sub- thread identification of labels page;
The operational order sending module is further adapted for:
Extract the second browser kernel process identification (PID) in the operational order and the sub- thread identification of labels page;
The operational order is sent to second browser kernel process identification (PID) and label using system message recursion instruction
In the corresponding labels page sub-line journey of the sub- thread identification of the page.
10. device as claimed in claim 6, it is characterised in that in the following manner in the first browser kernel process
Judge that current web page is suitable for use with the loading of the second browser kernel process:
The browser kernel for searching current web page matching using the URL of current web page in the first browser kernel process enters
Journey;
When finding, the browser kernel process for judging matching is the second browser kernel process.
A kind of 11. browsers, the browser includes the first browser kernel process and the second browser kernel process, described the
One browser kernel process includes an I/O threads, and the second browser kernel process includes the 2nd I/O threads, I/O information
Dispatch thread and window thread, the window thread include one or more labels page sub-line journeys, and the browser includes:
Operational order receiver module, is suitable to judge that current web page is suitable for use with second and browses in the first browser kernel process
When device kernel process is loaded, the operational order that triggering current web page is loaded is received using the first browser kernel process;
Operational order acquisition module, is suitable for use with the I/O information dispatch thread and obtains the operational order;
Operational order sending module, is suitable to send the operational order into the corresponding labels page sub-line journey of current web page;
Rendering module, is suitable for use with the labels page sub-line journey current web page is rendered according to the operational order;
Webpage sending module, is suitable to the webpage after being rendered by the 2nd I/O threads and sent to an I/O threads
In;
Web displaying module, the webpage after being suitable for use with the first browser kernel process to rendering shows.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310492797.7A CN103559097B (en) | 2013-10-18 | 2013-10-18 | The method of interprocess communication, device and browser in a kind of browser |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310492797.7A CN103559097B (en) | 2013-10-18 | 2013-10-18 | The method of interprocess communication, device and browser in a kind of browser |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103559097A CN103559097A (en) | 2014-02-05 |
CN103559097B true CN103559097B (en) | 2017-06-09 |
Family
ID=50013349
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310492797.7A Active CN103559097B (en) | 2013-10-18 | 2013-10-18 | The method of interprocess communication, device and browser in a kind of browser |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103559097B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104020993A (en) * | 2014-05-30 | 2014-09-03 | 北京金山网络科技有限公司 | Webpage rendering method and device |
CN106503159A (en) * | 2016-10-31 | 2017-03-15 | 努比亚技术有限公司 | A kind of rendering intent of browsing device net page and mobile terminal |
CN109960531B (en) * | 2017-12-26 | 2022-06-14 | 中国移动通信集团浙江有限公司 | Page display method and device |
US11132404B2 (en) | 2018-05-30 | 2021-09-28 | Apple Inc. | Techniques for facilitating communications between isolated processes executing within a web browser |
CN109614562A (en) * | 2018-11-27 | 2019-04-12 | 平安科技(深圳)有限公司 | Mail display methods, device, computer equipment and storage medium |
CN110442400B (en) * | 2019-08-15 | 2023-04-18 | 网易(杭州)网络有限公司 | Browser control method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101826003A (en) * | 2010-04-16 | 2010-09-08 | 中兴通讯股份有限公司 | Multithread processing method and device |
CN102981705A (en) * | 2012-11-09 | 2013-03-20 | 北京奇虎科技有限公司 | Server-side browser implementing method and server |
CN102981903A (en) * | 2012-12-10 | 2013-03-20 | 北京奇虎科技有限公司 | Method for process multiplexing in multi-core browser and multi-core browser of process multiplexing |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8307300B1 (en) * | 2008-05-13 | 2012-11-06 | Google Inc. | Content resizing and caching in multi-process browser architecture |
CN101655863A (en) * | 2009-04-24 | 2010-02-24 | 北京搜狗科技发展有限公司 | Method for loading web pages in browser and browser |
CN102385594B (en) * | 2010-08-31 | 2015-09-30 | 腾讯科技(深圳)有限公司 | The kernel control method of multi-core browser and device |
-
2013
- 2013-10-18 CN CN201310492797.7A patent/CN103559097B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101826003A (en) * | 2010-04-16 | 2010-09-08 | 中兴通讯股份有限公司 | Multithread processing method and device |
CN102981705A (en) * | 2012-11-09 | 2013-03-20 | 北京奇虎科技有限公司 | Server-side browser implementing method and server |
CN102981903A (en) * | 2012-12-10 | 2013-03-20 | 北京奇虎科技有限公司 | Method for process multiplexing in multi-core browser and multi-core browser of process multiplexing |
Also Published As
Publication number | Publication date |
---|---|
CN103559097A (en) | 2014-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103559097B (en) | The method of interprocess communication, device and browser in a kind of browser | |
US7865544B2 (en) | Method and system for providing XML-based asynchronous and interactive feeds for web applications | |
US9485240B2 (en) | Multi-account login method and apparatus | |
CN102932390B (en) | Network request processing method and system, and network service providing device | |
EP2724251B1 (en) | Methods for making ajax web applications bookmarkable and crawlable and devices thereof | |
CN102968341B (en) | The method and apparatus of different editions IE kernels based on many kernel browsers switching | |
US20150370912A1 (en) | Method and system for displaying customized webpage on double webview | |
US7783967B1 (en) | Packaging web content for reuse | |
US20080082965A1 (en) | Providing globalization functionalities for javascript applications | |
US8245125B1 (en) | Hybrid rendering for webpages | |
CN101876897A (en) | System and method used for processing Widget on Web browser | |
US8447874B2 (en) | Web page data streaming | |
CN106339414A (en) | Webpage rendering method and device | |
CN103258058B (en) | Page display method and system and browser | |
CN108416021B (en) | Browser webpage content processing method and device, electronic equipment and readable medium | |
US9330074B2 (en) | Style sheet speculative preloading | |
US20170111431A1 (en) | Methods for transforming a server side template into a client side template and devices thereof | |
US10594764B2 (en) | Request cache to improve web applications performance | |
US20170371888A1 (en) | Method for advertisement interception in dual-kernel browser and browser apparatus | |
US20100229081A1 (en) | Method for Providing a Navigation Element in an Application | |
CN102968448B (en) | A kind of browser | |
CN102662837A (en) | Testing method and system of browser | |
US9648078B2 (en) | Identifying a browser for rendering an electronic document | |
TWI519980B (en) | Method and device for displaying web page and computer-readable storage medium | |
CN107451270B (en) | Page display method, electronic equipment and computer storage media |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for 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. |