CN102368248B - Page downloading control method and system of IE kernel browser - Google Patents

Page downloading control method and system of IE kernel browser Download PDF

Info

Publication number
CN102368248B
CN102368248B CN201110289062.5A CN201110289062A CN102368248B CN 102368248 B CN102368248 B CN 102368248B CN 201110289062 A CN201110289062 A CN 201110289062A CN 102368248 B CN102368248 B CN 102368248B
Authority
CN
China
Prior art keywords
page
downloading
download
buffer memory
downloading 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.)
Expired - Fee Related
Application number
CN201110289062.5A
Other languages
Chinese (zh)
Other versions
CN102368248A (en
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.)
Qizhi Software Beijing Co Ltd
Original Assignee
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 Qizhi Software Beijing Co Ltd filed Critical Qizhi Software Beijing Co Ltd
Priority to CN201410065243.3A priority Critical patent/CN103838838B/en
Priority to CN201110289062.5A priority patent/CN102368248B/en
Priority to CN201410065255.6A priority patent/CN103838839B/en
Publication of CN102368248A publication Critical patent/CN102368248A/en
Priority to PCT/CN2012/081855 priority patent/WO2013044774A1/en
Priority to US14/347,630 priority patent/US20140237133A1/en
Application granted granted Critical
Publication of CN102368248B publication Critical patent/CN102368248B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a page downloading control method and system of an IE (Internet Explorer) kernel browser, wherein the method comprises the following steps of: starting an IE kernel browser process, and starting a preset downloading process; registering a communication protocol in the IE kernel browser process, and waiting for a page downloading request which is based on corresponding communication protocol; when the IE kernel browser process receives the page downloading request, triggering the downloading process to control the page downloading procedure according to the preset downloading rule, and returning back downloading state information to the IE kernel browser in the page downloading procedure. With the method and the system provided by the invention, the page downloading procedure of the IE kernel browser can be controlled effectively, and the efficiency and the stability of page downloading are improved.

Description

A kind of page-downloading control method and system of IE kernel browser
Technical field
The application relates to the technical field of browser, particularly relates to a kind of page-downloading control method of IE kernel browser and a kind of page-downloading control system of IE kernel browser.
Background technology
The most important part of browser is " Rendering Engine ", can probably be translated into " rendering engine ", and general custom is called it " browser kernel ".Browser kernel is responsible for the explanation of webpage grammer (as HTML, JavaScript) and is played up (demonstration) webpage.So, the engine that common so-called browser kernel is namely downloaded, resolves, carries out, played up the page, this engine has determined the browser how content of display web page and the format information of the page.
Popular browser in the market, can be divided into two kinds substantially by implementation:
The first, the developer of browser had both carried out the exploitation of browser kernel, also carried out the exploitation of navigator product.As: chrome browser, firefox browser, Safari browser, Internet Explore browser etc.
The second, the developer of browser, only carries out the exploitation of navigator product, the kernel that uses other browser manufacturers to realize.Kernel is embedded in own browser and is used.As: 360 secure browsers, the browser of roaming, Window on the World browser, search dog browser etc.This browser adopts Internet Explorer browser kernel conventionally, is conventionally referred to as " IE kernel browser ".
All IE kernel browsers, are only that the WebBrowser assembly that directly use system provides is realized in the market.Concrete using method is first to use OleCreate API(application programming interfaces) create WebBrowser assembly, the window that securing component creates, is embedded in the window of browser.Then call the interface that this WebBrowser assembly provides, allow its access network address.In whole access process, by the code of WebBrowser assembly oneself carry out webpage download, parsing, carry out, play up.The notice that shell only needs receiving unit to return, change respective interface content.
IE kernel is very simple in order to allow developer use, so the interface exposing is very limited, the basic interface such as generally only provide accessed web page, stop, refreshing, retreat, only can simply control the page, as accesses certain network address, refreshes, stops, retreating etc.For a lot of inner cases, browser developers knows nothing, uncontrollable.Especially uncontrollable page-downloading process, thus efficiency and the stability of page-downloading affected.
In a word, need the urgent technical matters solving of those skilled in the art to be exactly: how can effectively control the page-downloading process of IE kernel browser, to improve efficiency and the stability of page-downloading.
Summary of the invention
The application's technical matters to be solved is to provide a kind of page-downloading control method of IE kernel browser, in order to the page-downloading process of effective control IE kernel browser, improves efficiency and the stability of page-downloading.
Correspondingly, the application also provides a kind of page-downloading control system of IE kernel browser, in order to guarantee said method application in practice.
For addressing the above problem, the application provides a kind of page-downloading control method of IE kernel browser, comprising:
Start IE kernel browser process, and start preset downloading process;
Registering communication agreement in described IE kernel browser process, waits for the page-downloading request based on respective communication agreement;
When described IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process;
Described downloading process is controlled page-downloading according to default download rule, and to IE kernel browser process, returns to download status information in described page-downloading process; Wherein, described default download rule comprises the first rule or Second Rule;
Described the first rule comprises:
Downloading process is obtained document size information corresponding to described page-downloading request;
Judge that whether described document size information surpasses default file size threshold value, the mode that if so, adopts multithreading to download is carried out the down operation of respective page, otherwise, adopt the mode of single-threaded download to carry out the down operation of respective page.
Described Second Rule comprises: whether the file that downloading process is asked according to described page-downloading request judgement is write in buffer memory in advance, if so, from buffer memory, extracts this document; If not, according to described page-downloading request, from server, download corresponding file, and this document is write to buffer memory.Preferably, described method also comprises:
The described download status information of described IE kernel browser process foundation, the operation that the page data of downloading is resolved, carried out and/or plays up.
Preferably, described in described IE kernel browser process registering communication agreement, wait for that the step of the page-downloading request based on respective communication agreement comprises:
Use the RegisterNameSpace method of IInternetSession interface, registering communication agreement in IE kernel browser process, described communication protocol comprises http agreement, https agreement, mailto agreement and File Transfer Protocol;
The page-downloading request of wait based on respective communication agreement.
Preferably, described default download rule also comprises:
Downloading process is added into described page-downloading request in the download task list generating in advance; Wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information; Read the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
Process successively the page-downloading request in described download task list, obtain document size information corresponding to page-downloading request;
Judge that whether described document size information surpasses default file size threshold value, the mode that if so, adopts multithreading to download is carried out the down operation of respective page, otherwise, adopt the mode of single-threaded download to carry out the down operation of respective page.
Preferably, described default download rule also comprises:
Whether the file that downloading process is asked according to described page-downloading request judgement is write in buffer memory in advance, and wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
If so, whether inquire about the time that this document writes buffer memory surpasses the default time limit, if so, according to page-downloading request, from server, downloads corresponding file, and this document is write to buffer memory; If not, from buffer memory, extract this document;
If the corresponding file of described page-downloading request is not write in buffer memory in advance, according to described page-downloading request, from server, download corresponding file, and this document is write to buffer memory.
Wherein, the described step of downloading corresponding file from server according to page-downloading request comprises:
Downloading process is added into described page-downloading request in the download task list generating in advance;
Read the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
Process successively the page-downloading request in described download task list, carry out corresponding page-downloading operation.
Preferably, described default download rule also comprises:
Whether the file that downloading process is asked according to described page-downloading request judgement is write in buffer memory in advance, if, whether inquire about the time that this document writes buffer memory surpasses the default time limit, if, according to page-downloading request, from server, download corresponding file, and this document is write to buffer memory; If not, from buffer memory, extract this document;
If the corresponding file of described page-downloading request is not write in buffer memory in advance, according to described page-downloading request, from server, download corresponding file, and this document is write to buffer memory.
Wherein, the described step of downloading corresponding file from server according to page-downloading request comprises:
Downloading process is obtained document size information corresponding to described page-downloading request;
Judge that whether described document size information surpasses default file size threshold value, the mode that if so, adopts multithreading to download is carried out the down operation of respective page, otherwise, adopt the mode of single-threaded download to carry out the down operation of respective page.
Preferably, described default download rule also comprises: whether the file that downloading process is asked according to described page-downloading request judgement is write in buffer memory in advance, wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
If so, whether inquire about the time that this document writes buffer memory surpasses the default time limit, if so, according to page-downloading request, from server, downloads corresponding file, and this document is write to buffer memory; If not, from buffer memory, extract this document;
If the corresponding file of described page-downloading request is not write in buffer memory in advance, according to described page-downloading request, from server, download corresponding file, and this document is write to buffer memory.
Wherein, the described step of downloading corresponding file from server according to page-downloading request comprises:
Downloading process is added into described page-downloading request in the download task list generating in advance;
Read the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
Process successively the page-downloading request in described download task list, obtain document size information corresponding to page-downloading request;
Judge that whether described document size information surpasses default file size threshold value, the mode that if so, adopts multithreading to download is carried out the down operation of respective page, otherwise, adopt the mode of single-threaded download to carry out the down operation of respective page.
The embodiment of the present application also discloses a kind of page-downloading control system of IE kernel browser, comprising:
Start module, for starting IE kernel browser process, and start preset downloading process;
Protocol registration module, in described IE kernel browser process registering communication agreement, waits for the page-downloading request based on respective communication agreement;
Downloading control module, for when described IE kernel browser process is received page-downloading request, sends to downloading process by described page-downloading request, and described downloading process is controlled page-downloading according to default download rule;
State is reported module, for returning to download status information in described page-downloading process to IE kernel browser process.
Wherein, described default download rule comprises the first rule or Second Rule,
Described the first rule comprises:
Downloading process is obtained document size information corresponding to described page-downloading request;
Judge that whether described document size information surpasses default file size threshold value, the mode that if so, adopts multithreading to download is carried out the down operation of respective page, otherwise, adopt the mode of single-threaded download to carry out the down operation of respective page;
Described Second Rule comprises:
Whether the file that downloading process is asked according to described page-downloading request judgement is write in buffer memory in advance, if so, from buffer memory, extracts this document; If not, according to described page-downloading request, from server, download corresponding file, and this document is write to buffer memory;
Preferably, described page-downloading control system, also comprises:
Kernel operations module, for by described IE kernel browser process according to described download status information, the operation that the page data of downloading is resolved, carried out and/or plays up.
Preferably, described protocol registration module is for being used the RegisterNameSpace method of IInternetSession interface, registering communication agreement in IE kernel browser process, described communication protocol comprises http agreement, https agreement, mailto agreement and File Transfer Protocol, and, wait for the page-downloading request based on respective communication agreement.
Preferably, described downloading control module also comprises:
Task is added submodule, for described page-downloading request being added into by downloading process to the download task list generating in advance; Wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
Sequence submodule, for reading the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort; File size is obtained submodule, for processing successively the page-downloading request of described download task list, obtains document size information corresponding to described page-downloading request;
File size judgement submodule, for judging that whether described document size information surpasses default file size threshold value, if so, calls multithreading and downloads submodule; Otherwise, call single-threaded download submodule;
Multithreading is downloaded submodule, carries out the down operation of respective page for the mode that adopts multithreading to download;
Single-threaded download submodule, for adopting the mode of single-threaded download to carry out the down operation of respective page.Preferably, described downloading control module also comprises:
Whether buffer memory judgement submodule, write buffer memory in advance for the file of being asked according to described page-downloading request judgement by downloading process, if so, triggers buffer memory and extract submodule; If not, trigger server and download submodule, wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
Buffer memory exceeds the time limit to judge submodule, and whether the time that writes buffer memory for inquiring about this document surpasses the default time limit; If so, trigger server and download submodule; If not, trigger buffer memory and extract submodule; Buffer memory extracts submodule, for extracting this document from buffer memory;
Server is downloaded submodule, for downloading corresponding file according to described page-downloading request from server, and this document is write to buffer memory.
Task is added submodule, for described page-downloading request being added into by downloading process to the download task list generating in advance;
Sequence submodule, for obtaining page resource type corresponding to described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
Download implementation sub-module, for processing successively the page-downloading request of described download task list, carry out corresponding page-downloading operation;
Preferably, described downloading control module also comprises:
Whether buffer memory judgement submodule, write buffer memory in advance for the file of being asked according to described page-downloading request judgement by downloading process, if so, triggers buffer memory and exceed the time limit to judge submodule; If not, trigger server and download submodule;
Buffer memory exceeds the time limit to judge submodule, and whether the time that writes buffer memory for inquiring about this document surpasses the default time limit; If so, trigger server and download submodule; If not, trigger buffer memory and extract submodule;
Buffer memory extracts submodule, for extracting this document from buffer memory;
Server is downloaded submodule, for downloading corresponding file according to described page-downloading request from server, and this document is write to buffer memory;
File size is obtained submodule, for obtained document size information corresponding to described page-downloading request by downloading process;
File size judgement submodule, for judging that whether described document size information surpasses default file size threshold value, if so, calls multithreading and downloads submodule; Otherwise, call single-threaded download submodule;
Multithreading is downloaded submodule, carries out the down operation of respective page for the mode that adopts multithreading to download;
Single-threaded download submodule, for adopting the mode of single-threaded download to carry out the down operation of respective page.
Preferably, described downloading control module also comprises:
Whether buffer memory judgement submodule, write buffer memory in advance for the file of being asked according to described page-downloading request judgement by downloading process, if so, triggers buffer memory and exceed the time limit to judge submodule; If not, trigger server and download submodule; Wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
Buffer memory exceeds the time limit to judge submodule, and whether the time that writes buffer memory for inquiring about this document surpasses the default time limit; If so, trigger server and download submodule; If not, trigger buffer memory and extract submodule;
Buffer memory extracts submodule, for extracting this document from buffer memory;
Server is downloaded submodule, for downloading corresponding file according to described page-downloading request from server, and this document is write to buffer memory;
Task is added submodule, for described page-downloading request being added into by downloading process to the download task list generating in advance;
Sequence submodule, for obtaining page resource type corresponding to described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
File size is obtained submodule, for obtained document size information corresponding to described page-downloading request by downloading process;
File size judgement submodule, for judging that whether described document size information surpasses default file size threshold value, if so, calls multithreading and downloads submodule; Otherwise, call single-threaded download submodule;
Multithreading is downloaded submodule, carries out the down operation of respective page for the mode that adopts multithreading to download;
Single-threaded download submodule, for adopting the mode of single-threaded download to carry out the down operation of respective page.
Compared with prior art, the application has the following advantages:
The application uses the consultative management expansion interface of IE, whole downloads of IE kernel browser all oneself are taken over, thereby make to embed the shell of IE kernel browser, can control voluntarily the download of browser kernel, and send the data after downloading back to IE kernel, allow it continue to carry out the work of resolving, carrying out, playing up.Because download behavior does not occur in browser process, when download encounters problems program crashing, browser process can not collapsed thereupon, can restart a downloading process and continue to download.Thereby the application can effectively control the page-downloading process of IE kernel browser, to improve efficiency and the stability of page-downloading.
Moreover the application, by adopting the download prioritization scheme of resource sequence, multithreading download and buffer memory read-write, can promote speed of download and webpage representation speed, gives full play to user's bandwidth, improves resource utilization.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of page-downloading control method embodiment of a kind of IE kernel browser of the application;
Fig. 2 is the structured flowchart of page-downloading control system embodiment of a kind of IE kernel browser of the application.
Embodiment
For the application's above-mentioned purpose, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
The application's core idea is, makes to embed the shell of IE kernel browser, can control voluntarily the download of browser kernel, and sends the data after downloading back to IE kernel, allows it continue to carry out the work of resolving, carrying out, playing up.
With reference to figure 1, show the flow chart of steps of page-downloading control method embodiment of a kind of IE kernel browser of the application, specifically can comprise the following steps:
Step 101, startup IE kernel browser process, and start preset downloading process;
In the embodiment of the present application, described IE kernel browser process refers to and adopts IE(Internet Explorer) browser process of browser kernel.In prior art, browser kernel is responsible for the page to download, resolve, carry out, play up, and in the present embodiment, the only operation for completing parsing, carrying out, play up of IE browser kernel, the operation of download is completed by preset downloading process.
Be well known that, process is a program of carrying out, the program example moving in computing machine; It can be distributed to processor and be carried out by processor as an entity.From the user point of view, browser process can be understood as the process of the browser representative starting in task manager.
Described downloading process can be understood as the another one process of IE kernel browser, is a process that is specifically designed to down operation.Be that described downloading process is specifically designed to download, and do not do other operations.A kind of example as the embodiment of the present application specific implementation, it is Microsoft Windows HTTP Services that the full name of WinHTTP(WinHTTP can be used in described downloading process inside, it offers HTTP client application program interface of developer, by this API, by http protocol, send request to other http server) realize a downloader, and a download manager.Be in described downloading process, to comprise a download manager and some downloaders, wherein, described download manager can be controlled page-downloading for the download rule according to default, such as the request to downloaded resources sort, optimization etc.; Downloader can be for realizing concrete down operation, and by download manager to IE kernel browser process report download situation, i.e. download status information.In practice, this downloading process, just as a service, is waited for called at any time after startup.
In the embodiment of the present application, during described IE kernel browser process initiation, described downloading process also can start, and in other words, described IE kernel browser process initiation can trigger described downloading process and start, to guarantee the page normally representing in browser.
Step 102, in described IE kernel browser process registering communication agreement, wait for the page-downloading request based on respective communication agreement;
In specific implementation, described in IE kernel browser process the step of registering communication agreement can be, use the RegisterNameSpace method of IInternetSession interface, registering communication agreement in IE kernel browser process, described communication protocol can comprise http agreement, https agreement, mailto agreement and File Transfer Protocol etc.
Particularly, the RegisterNameSpace method of IInternetSession interface, required the interface of a set form, use this method in IE kernel browser process after registering communication agreement, the page-downloading request of all employing respective communication agreements, capital is sent to default shell interface, when there is the page-downloading request of any employing respective communication agreement (as http, https agreement, mailto agreement, File Transfer Protocol), default shell interface can be notified or call to IE kernel.
Step 103, when described IE kernel browser process is received page-downloading request, trigger described downloading process and control page-downloading according to default download rule, and to IE kernel browser process, return to download status information in described page-downloading process.
In specific implementation, during the Start method of the IInternetProtocol interface providing in communication protocol registration process when IE kernel calls, by striding course, communicate by letter, page-downloading request is sent to downloading process, and return to operational character E_PENDING, notice IE kernel operations is just in commission.After downloading to data, downloading process can be notified the IE kernel browser process of initiating download, the correlation technique of the IInternetProtocolSink interface that IE kernel browser process transfer IE kernel provides, notice IE kernel download progress, the download status information such as data that download to.
More specifically, striding course communication, refer to and forward the request of a process to another process, refer in the present embodiment forward the page-downloading request of IE kernel browser process to downloading process, and in downloading process, in real time to download status information such as IE kernel report download progress and downloading datas.Striding course communication can be used windows message mechanism, and coordinates kernel objects to carry out data transmission.For example, in IE browser process, registered after http agreement, once there be the page-downloading request based on http agreement will deliver in default browser shell.When described in IE kernel calls when shell, the relevant information of this page-downloading request all can be passed over, shell can (be put into these information package in a data block, in data block, mainly comprise url, refresh, cookie etc.), then the standard pipe providing by Windows system is communicated by letter, and this data block is sent to downloading process.The windows messaging sending to browser process in downloading process is mainly the progress of telling the current download of browser.
In brief, striding course communication is both sides, and first, IE kernel browser process is received after page-downloading request, can communicate by letter by striding course, tells that those files of downloading process need to download.On the other hand, in download request implementation, downloading process can send message to IE kernel browser process, notifies the download status information such as its download progress, downloading data.
In a preferred embodiment of the present application, in described step 103, when IE kernel browser process is received page-downloading request, trigger described downloading process and specifically can comprise following sub-step according to the step of default download rule control page-downloading:
Sub-step S11, when IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process;
Sub-step S12, downloading process are added into described page-downloading request in the download task list generating in advance;
Sub-step S13, obtain page resource type corresponding to described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
Sub-step S14, process the page-downloading request in described download task list successively, carry out corresponding page-downloading operation.
In practice, described page-downloading request comprises URL information, and described URL information comprises extension name information, and in this case, page resource type corresponding to described page-downloading request can be by reading described extension name acquisition of information.
The present embodiment relates generally to by resource and sorts and download the scheme of optimizing, to control in the process of downloading and realize in downloading process, that is to say, when browser process receives IE download request, trigger downloading process and carry out download, before formal download the by downloader, download manager can sort to resource corresponding to download request.
In actual applications, the preferential file of download text type (as the file of the types such as html, css, js), by the file of multimedia type (as the file of the large resources such as picture, flash) by rear download, because the representing and do not rely on them of webpage.In download manager in downloading process, have a download task list, according to priority, can determine the downloading task newly increasing is put into that position in this table.Such as, the file of html, css, these text of js is all that webpage is necessary while opening, thus can put into this table before.The file of the multimedia types such as other picture, flash is put into table tail.Downloader can be from gauge outfit ceaselessly the task of getting start to download.So just realized resource sequence.
In practice, the corresponding downloading task of each page-downloading request, each downloading task resource type is a kind of.
For example, suppose to access http://www.360.cn/ in browser, IE kernel can produce 5 download requests, and the content/type of request/order is as follows:
http://www.360.cn/index.htm;
http://www.360.cn/360safe.css;
http://www.360.cn/product.swf;
http://www.360.cn/360safe.png;
http://www.360.cn/frame.htm。
According to producing consistent order with IE download request, above-mentioned page-downloading request is sent to downloading process from IE kernel browser process.
Suppose that the download task list in present downloading process is sky.When we receive the page-downloading request of http://www.360.cn/index.htm, because table is empty, directly put into queue.As shown in table 1, in current download task list, only have a request.
Table 1:
index.htm
Next receiving the page-downloading request of http://www.360.cn/360safe.css, by its extension name, can learn that this is a text, is the same rank with htm, so be directly put into the back location of first list item in download task list.As shown in table 2, the request sequence situation in current download task list is:
Table 2:
index.htm
360safe.css
Continue to receive the page-downloading request of http://www.360.cn/product.swf, by its extension name, can learn that it is a flash file, because the file of this type is maximum, so put into the most end position of table.
As shown in table 3, the request sequence situation in current download task list is:
Table 3:
index.htm
360safe.css
product.swf
Continue to receive the page-downloading request of http://www.360.cn/360safe.png, by its extension name, can learn that it is a picture file, because the size of this type of file is greater than text but is less than the file of flash type, so be inserted into the centre of text and flash type.
As shown in table 4, the request sequence situation in current download task list is:
Table 4:
index.htm
360safe.css
360safe.png
product.swf
Continue to receive the request of http://www.360.cn/frame.htm, by its extension name, can learn that it is a htm file, so be inserted into the back location of all text.
As shown in table 5, the request sequence situation in current download task list is:
Table 5:
index.htm
360safe.css
frame.htm
360safe.png
product.swf
So just generated download task list.This download task list is different from raw requests order, according to this download task list, downloads, and the preferential download text of meeting, guarantees that word shows as early as possible, next Shows Picture, and finally just takes turns to larger flash.
In another preferred embodiment of the present application, in described step 103, when IE kernel browser process is received page-downloading request, trigger described downloading process and specifically can comprise following sub-step according to the step of default download rule control page-downloading:
Sub-step S21, when IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process;
Sub-step S22, downloading process are obtained document size information corresponding to described page-downloading request;
Sub-step S23, judge that whether described document size information surpasses default file size threshold value, the mode that if so, adopts multithreading to download is carried out the down operation of respective page, otherwise, adopt the mode of single-threaded download to carry out the down operation of respective page.
Thread can be understood as the passage of download, single-threaded download is exactly for download channel of a file opening, multithreading is downloaded and for a file, is opened a plurality of download channel exactly simultaneously, and particularly, it is exactly that the while is to the different piece of the single file of server request in fact that multithreading is downloaded.
The present embodiment relates generally to the download prioritization scheme that carries out multithreading download by the large file for surpassing predetermined threshold value, to control in the process of downloading and realize in downloading process, that is to say, when browser process receives IE download request, trigger downloading process and carry out download, in formal download the by downloader, download manager can judge whether current file size surpasses predetermined threshold value, if so, controlling downloader adopts the mode of multithreading download to download file corresponding to current page download request.
In specific implementation, only need to server communication once, as send the http request of a standard, can get file size, and, whether support the information such as multithreading download.By such as flash, the file of the multimedia types such as picture can be larger, for actual demand, file size threshold value can be set, and such as 1M, when surpassing 1M, starts multithreading and download.
In another preferred embodiment of the present application, in described step 103, when IE kernel browser process is received page-downloading request, trigger described downloading process and specifically can comprise following sub-step according to the step of default download rule control page-downloading:
Sub-step S31, when IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process;
Whether the file that sub-step S32, downloading process are asked according to described page-downloading request judgement is write in buffer memory in advance, if so, from buffer memory, extracts this document; If not, according to described page-downloading request, from server, download corresponding file, and this document is write to buffer memory.
More preferably, described when IE kernel browser process is received page-downloading request, trigger described downloading process and also comprise according to the step of default download rule control page-downloading:
Before the step of downloading at extraction document from buffer memory, whether the time that inquiry this document writes buffer memory surpasses the default time limit, if so, according to page-downloading request, from server, downloads corresponding file, and this document is write to buffer memory.
The present embodiment relates generally to the download prioritization scheme of buffer memory read-write, to control in the process of downloading and realize in downloading process, that is to say, when browser process receives IE download request, trigger downloading process and carry out download, before formal download the by downloader, download manager can judge it is to read or download in real time from buffer memory, after formal download the by downloader, the data after downloading are write to buffer memory.
In concrete application, can decide according to the actual requirements certain file whether write buffer memory, certain file buffer memory whether can directly use etc.For example, if certain file had just carried out renewal in local cache, in a few minutes, can not remove server communication completely, directly read the file in local cache.Or as, with browser access http://www.360.cn/index.htm, first check that this file whether in buffer memory, if not, first downloads and then put into buffer memory.If had, can needn't remove server communication completely, directly use, so just accelerated access speed.
The present embodiment in practice more preferred way is, when each IE starts, do not carry out to the whether expired operation of the corresponding buffer memory of server request, but allows user first use cache access.After access, then carry out inspection and the renewal of buffer memory.Certainly, when the strategy here also can finally upgrade with reference to used buffer memory.If just upgraded soon, such as only clock or several hours in a measure, just can first use buffer memory to reexamine.If but buffer memory is before several days, also can just carry out buffer memory inspection when starting, to avoid user to be old content.
The all right applied in any combination of above-mentioned download prioritization scheme, for making those skilled in the art understand better the application, below provides the example of several applied in any combination:
Example 1:
Described when IE kernel browser process is received page-downloading request, trigger described downloading process and specifically can comprise following sub-step according to the step of default download rule control page-downloading:
Sub-step S41, when IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process; Wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
Sub-step S42, downloading process are added into described page-downloading request in the download task list generating in advance;
Sub-step S43, read the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
Sub-step S44, process the page-downloading request in described download task list successively, obtain document size information corresponding to page-downloading request;
Sub-step S45, judge that whether described document size information surpasses default file size threshold value, the mode that if so, adopts multithreading to download is carried out the down operation of respective page, otherwise, adopt the mode of single-threaded download to carry out the down operation of respective page.
Example 2:
Described when IE kernel browser process is received page-downloading request, trigger described downloading process and specifically can comprise following sub-step according to the step of default download rule control page-downloading:
Sub-step S51, when IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process; Wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
Whether the file that sub-step S52, downloading process are asked according to described page-downloading request judgement is write in buffer memory in advance, if, whether inquire about the time that this document writes buffer memory surpasses the default time limit, if, according to page-downloading request, from server, download corresponding file, and this document is write to buffer memory; If not, from buffer memory, extract this document;
If the corresponding file of the described page-downloading request of sub-step S53 is not write in buffer memory in advance, according to described page-downloading request, from server, download corresponding file, and this document is write to buffer memory.
Wherein, the described step of downloading corresponding file from server according to page-downloading request comprises:
Sub-step S54, downloading process are added into described page-downloading request in the download task list generating in advance;
Sub-step S55, read the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
Sub-step S56, process the page-downloading request in described download task list successively, carry out corresponding page-downloading operation.
Example 3:
Described when IE kernel browser process is received IE download request, trigger described downloading process and can comprise following sub-step according to the step of default download rule control page-downloading:
Sub-step S61, when IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process;
Whether the file that sub-step S62, downloading process are asked according to described page-downloading request judgement is write in buffer memory in advance, if, whether inquire about the time that this document writes buffer memory surpasses the default time limit, if, according to page-downloading request, from server, download corresponding file, and this document is write to buffer memory; If not, from buffer memory, extract this document;
If the corresponding file of the described page-downloading request of sub-step S63 is not write in buffer memory in advance, according to described page-downloading request, from server, download corresponding file, and this document is write to buffer memory.
Wherein, the described step of downloading corresponding file from server according to page-downloading request comprises:
Sub-step S64, downloading process are obtained document size information corresponding to described page-downloading request;
Sub-step S65, judge that whether described document size information surpasses default file size threshold value, the mode that if so, adopts multithreading to download is carried out the down operation of respective page, otherwise, adopt the mode of single-threaded download to carry out the down operation of respective page.
Example 4:
Described when IE kernel browser process is received page-downloading request, trigger described downloading process and specifically can comprise following sub-step according to the step of default download rule control page-downloading:
Sub-step S71, when IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process; Wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
Whether the file that sub-step S72, downloading process are asked according to described page-downloading request judgement is write in buffer memory in advance, if, whether inquire about the time that this document writes buffer memory surpasses the default time limit, if, according to page-downloading request, from server, download corresponding file, and this document is write to buffer memory; If not, from buffer memory, extract this document;
If the corresponding file of the described page-downloading request of sub-step S73 is not write in buffer memory in advance, according to described page-downloading request, from server, download corresponding file, and this document is write to buffer memory.
Wherein, the described step of downloading corresponding file from server according to page-downloading request comprises:
Sub-step S74, downloading process are added into described page-downloading request in the download task list generating in advance;
Sub-step S75, read the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
Sub-step S76, process the page-downloading request in described download task list successively, obtain document size information corresponding to page-downloading request;
Sub-step S77, judge that whether described document size information surpasses default file size threshold value, the mode that if so, adopts multithreading to download is carried out the down operation of respective page, otherwise, adopt the mode of single-threaded download to carry out the down operation of respective page.
Certainly, each embodiment of above-mentioned download prioritization scheme and combination thereof are all only as example, and it is all feasible that those skilled in the art adopt other to download optimization method, the application to this without being limited.
In specific implementation, the embodiment of the present application can also comprise the steps:
Step 104, the described download status information of described IE kernel browser process foundation, the operation that the page data of downloading is resolved, carried out and/or plays up.
When downloading process completes after down operation, send the data after downloading back to IE kernel, by IE kernel, continue to carry out the work of resolving, carrying out, playing up.
It should be noted that, for embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the application is not subject to the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action and module might not be that the application is necessary.
With reference to figure 2, show the structured flowchart of page-downloading control system embodiment of a kind of IE kernel browser of the application, specifically can comprise as lower module:
Start module 201, for starting IE kernel browser process, and start preset downloading process;
Protocol registration module 202, in described IE kernel browser process registering communication agreement, waits for the page-downloading request based on respective communication agreement;
Downloading control module 203, for when described IE kernel browser process is received page-downloading request, triggers described downloading process and controls page-downloading according to default download rule;
State is reported module 204, for returning to download status information in described page-downloading process to IE kernel browser process.
In the concrete application of the embodiment of the present application, described system embodiment can also comprise:
Kernel operations module 205, for by described IE kernel browser process according to described download status information, the operation that the page data of downloading is resolved, carried out and/or plays up.
In a preferred embodiment of the present application, described downloading control module 203 specifically can comprise following submodule:
Request transmits submodule, for when IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process;
Task is added submodule, for described page-downloading request being added into by downloading process to the download task list generating in advance;
Sequence submodule, for obtaining page resource type corresponding to described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
Download implementation sub-module, for the page-downloading request by processing successively described download task list, carry out corresponding page-downloading operation.
In specific implementation, in described page-downloading request, can comprise URL information, in described URL information, can comprise extension name information, in this case, page resource type corresponding to described page-downloading request can be by reading described extension name acquisition of information.
In another preferred embodiment of the present application, described downloading control module 203 specifically can comprise following submodule:
Request transmits submodule, for when IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process;
File size is obtained submodule, for obtained document size information corresponding to described page-downloading request by downloading process;
File size judgement submodule, for judging that whether described document size information surpasses default file size threshold value, if so, calls multithreading and downloads submodule; Otherwise, call single-threaded download submodule;
Multithreading is downloaded submodule, carries out the down operation of respective page for the mode that adopts multithreading to download;
Single-threaded download submodule, for adopting the mode of single-threaded download to carry out the down operation of respective page.
In another preferred embodiment of the application, described downloading control module 203 specifically can comprise following submodule:
Request transmits submodule, for when IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process;
Whether buffer memory judgement submodule, write buffer memory in advance for the file of being asked according to described page-downloading request judgement by downloading process, if so, triggers buffer memory and extract submodule; If not, trigger server and download submodule;
Buffer memory extracts submodule, for extracting this document from buffer memory;
Server is downloaded submodule, for downloading corresponding file according to described page-downloading request from server, and this document is write to buffer memory.
More preferably, in the present embodiment, described downloading control module can also comprise following submodule:
Buffer memory exceeds the time limit to judge submodule, and for before triggering buffer memory extraction submodule, whether the time that inquiry this document writes buffer memory surpasses the default time limit, and if so, invoking server is downloaded submodule.
Those skilled in the art are understandable, and each submodule in above-mentioned preferred embodiment in downloading control module 203 is applied in any combination mutually, specifically can comprise following example:
Example 1:
Described downloading control module 203 specifically can comprise following submodule:
Request transmits submodule, for when IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process; Wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
Task is added submodule, for described page-downloading request being added into by downloading process to the download task list generating in advance;
Resource sequence submodule, for reading the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
Process successively the page-downloading request in described download task list, obtain document size information corresponding to page-downloading request;
File size judgement submodule, for judging that whether described document size information surpasses default file size threshold value, if so, calls multithreading and downloads submodule; Otherwise, call single-threaded download submodule;
Multithreading is downloaded submodule, carries out the down operation of respective page for the mode that adopts multithreading to download;
Single-threaded download submodule, for adopting the mode of single-threaded download to carry out the down operation of respective page.
Example 2:
Described downloading control module 203 specifically can comprise following submodule:
Request transmits submodule, for when IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process; Wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
Whether buffer memory judgement submodule, write buffer memory in advance for the file of being asked according to described page-downloading request judgement by downloading process, if so, calls buffer memory and exceed the time limit to judge submodule, and if not, invoking server is downloaded submodule;
Buffer memory exceeds the time limit to judge submodule, and whether the time that writes buffer memory for inquiring about this document surpasses the default time limit, and if so, invoking server is downloaded submodule; If not, call buffer memory and extract submodule;
Buffer memory extracts submodule, for extracting this document from buffer memory;
Server is downloaded submodule, for downloading corresponding file according to page-downloading request from server, and this document is write to buffer memory; Wherein, by calling with lower unit, according to page-downloading request, from server, download corresponding file:
Task adding device, for being added into described page-downloading request by downloading process the download task list generating in advance;
Resource sequencing unit, for reading the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
Download performance element, for the page-downloading request by processing successively described download task list, carry out corresponding page-downloading operation.
Example 3:
Described downloading control module 203 specifically can comprise following submodule:
Request transmits submodule, for when IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process;
Whether buffer memory judgement submodule, write buffer memory in advance for the file of being asked according to described page-downloading request judgement by downloading process, if so, calls buffer memory and exceed the time limit to judge submodule, and if not, invoking server is downloaded submodule;
Buffer memory exceeds the time limit to judge submodule, and whether the time that writes buffer memory for inquiring about this document surpasses the default time limit, and if so, invoking server is downloaded submodule; If not, call buffer memory and extract submodule;
Buffer memory extracts submodule, for extracting this document from buffer memory;
Server is downloaded submodule, for downloading corresponding file according to page-downloading request from server, and this document is write to buffer memory; Wherein, by calling with lower unit, according to page-downloading request, from server, download corresponding file:
File size acquiring unit, for being obtained document size information corresponding to described page-downloading request by downloading process;
File size judging unit, for judging that whether described document size information surpasses default file size threshold value, if so, calls multithreading download unit; Otherwise, call single-threaded download unit;
Multithreading download unit, for adopting the mode of multithreading download to carry out the down operation of respective page;
Single-threaded download unit, for adopting the mode of single-threaded download to carry out the down operation of respective page.
Example 4:
Described downloading control module 203 specifically can comprise following submodule:
Request transmits submodule, for when IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process; Wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
Whether buffer memory judgement submodule, write buffer memory in advance for the file of being asked according to described page-downloading request judgement by downloading process, if so, calls buffer memory and exceed the time limit to judge submodule, and if not, invoking server is downloaded submodule;
Buffer memory exceeds the time limit to judge submodule, and whether the time that writes buffer memory for inquiring about this document surpasses the default time limit, and if so, invoking server is downloaded submodule; If not, call buffer memory and extract submodule;
Buffer memory extracts submodule, for extracting this document from buffer memory;
Server is downloaded submodule, for downloading corresponding file according to page-downloading request from server, and this document is write to buffer memory; Wherein, by calling with lower unit, according to page-downloading request, from server, download corresponding file:
Task adding device, for being added into described page-downloading request by downloading process the download task list generating in advance;
Resource sequencing unit, for reading the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
File size acquiring unit, for the page-downloading request by processing successively described download task list, obtains document size information corresponding to page-downloading request;
File size judging unit, for judging that whether described document size information surpasses default file size threshold value, if so, calls multithreading download unit; Otherwise, call single-threaded download unit;
Multithreading download unit, for adopting the mode of multithreading download to carry out the down operation of respective page;
Single-threaded download unit, for adopting the mode of single-threaded download to carry out the down operation of respective page.
For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
The application can be used in numerous general or special purpose computingasystem environment or configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, comprise distributed computing environment of above any system or equipment etc.
The application can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment, put into practice the application, in these distributed computing environment, by the teleprocessing equipment being connected by communication network, be executed the task.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
The page-downloading control method of a kind of IE kernel browser above the application being provided and a kind of page-downloading control system of IE kernel browser are described in detail, applied specific case herein the application's principle and embodiment are set forth, the explanation of above embodiment is just for helping to understand the application's method and core concept thereof; Meanwhile, for one of ordinary skill in the art, the thought according to the application, all will change in specific embodiments and applications, and in sum, this description should not be construed as the restriction to the application.

Claims (14)

1. a page-downloading control method for IE kernel browser, is characterized in that, comprising:
Start IE kernel browser process, and start preset downloading process;
Registering communication agreement in described IE kernel browser process, waits for the page-downloading request based on respective communication agreement;
When described IE kernel browser process is received page-downloading request, described page-downloading request is sent to downloading process;
Described downloading process is controlled page-downloading according to default download rule, and to IE kernel browser process, returns to download status information in described page-downloading process; Wherein, described default download rule comprises the first rule or Second Rule;
Described the first rule comprises:
Downloading process is obtained document size information corresponding to described page-downloading request;
Judge that whether described document size information surpasses default file size threshold value, the mode that if so, adopts multithreading to download is carried out the down operation of respective page, otherwise, adopt the mode of single-threaded download to carry out the down operation of respective page;
Described Second Rule comprises:
Whether the file that downloading process is asked according to described page-downloading request judgement is write in buffer memory in advance, if so, from buffer memory, extracts this document; If not, according to described page-downloading request, from server, download corresponding file, and this document is write to buffer memory.
2. the method for claim 1, is characterized in that, also comprises:
The described download status information of described IE kernel browser process foundation, the operation that the page data of downloading is resolved, carried out and/or plays up.
3. method as claimed in claim 1 or 2, is characterized in that, described in described IE kernel browser process registering communication agreement, wait for that the step of the page-downloading request based on respective communication agreement comprises:
Use the RegisterNameSpace method of IInternetSession interface, registering communication agreement in IE kernel browser process, described communication protocol comprises http agreement, https agreement, mailto agreement and File Transfer Protocol;
The page-downloading request of wait based on respective communication agreement.
4. the method for claim 1, is characterized in that, described default download rule also comprises:
Downloading process is added into described page-downloading request in the download task list generating in advance; Wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
Read the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
Process successively the page-downloading request in described download task list, obtain document size information corresponding to page-downloading request;
Judge that whether described document size information surpasses default file size threshold value, the mode that if so, adopts multithreading to download is carried out the down operation of respective page, otherwise, adopt the mode of single-threaded download to carry out the down operation of respective page.
5. the method for claim 1, is characterized in that, described default download rule also comprises:
Whether the file that downloading process is asked according to described page-downloading request judgement is write in buffer memory in advance, and wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
If so, whether inquire about the time that this document writes buffer memory surpasses the default time limit, if so, according to page-downloading request, from server, downloads corresponding file, and this document is write to buffer memory; If not, from buffer memory, extract this document;
If the corresponding file of described page-downloading request is not write in buffer memory in advance, according to described page-downloading request, from server, download corresponding file, and this document is write to buffer memory;
Wherein, the described step of downloading corresponding file from server according to page-downloading request comprises:
Downloading process is added into described page-downloading request in the download task list generating in advance;
Read the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
Process successively the page-downloading request in described download task list, carry out corresponding page-downloading operation.
6. the method for claim 1, is characterized in that, described default download rule also comprises:
Whether the file that downloading process is asked according to described page-downloading request judgement is write in buffer memory in advance, if, whether inquire about the time that this document writes buffer memory surpasses the default time limit, if, according to page-downloading request, from server, download corresponding file, and this document is write to buffer memory; If not, from buffer memory, extract this document;
If the corresponding file of described page-downloading request is not write in buffer memory in advance, according to described page-downloading request, from server, download corresponding file, and this document is write to buffer memory;
Wherein, the described step of downloading corresponding file from server according to page-downloading request comprises:
Downloading process is obtained document size information corresponding to described page-downloading request;
Judge that whether described document size information surpasses default file size threshold value, the mode that if so, adopts multithreading to download is carried out the down operation of respective page, otherwise, adopt the mode of single-threaded download to carry out the down operation of respective page.
7. the method for claim 1, is characterized in that, described default download rule also comprises:
Whether the file that downloading process is asked according to described page-downloading request judgement is write in buffer memory in advance, and wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
If so, whether inquire about the time that this document writes buffer memory surpasses the default time limit, if so, according to page-downloading request, from server, downloads corresponding file, and this document is write to buffer memory; If not, from buffer memory, extract this document;
If the corresponding file of described page-downloading request is not write in buffer memory in advance, according to described page-downloading request, from server, download corresponding file, and this document is write to buffer memory;
Wherein, the described step of downloading corresponding file from server according to page-downloading request comprises:
Downloading process is added into described page-downloading request in the download task list generating in advance;
Read the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
Process successively the page-downloading request in described download task list, by downloading process, obtain document size information corresponding to page-downloading request;
Judge that whether described document size information surpasses default file size threshold value, the mode that if so, adopts multithreading to download is carried out the down operation of respective page, otherwise, adopt the mode of single-threaded download to carry out the down operation of respective page.
8. a page-downloading control system for IE kernel browser, is characterized in that, comprising:
Start module, for starting IE kernel browser process, and start preset downloading process;
Protocol registration module, in described IE kernel browser process registering communication agreement, waits for the page-downloading request based on respective communication agreement;
Downloading control module, for when described IE kernel browser process is received page-downloading request, sends to downloading process by described page-downloading request, and described downloading process is controlled page-downloading according to default download rule;
State is reported module, for returning to download status information in described page-downloading process to IE kernel browser process;
Wherein, described default download rule comprises the first rule or Second Rule;
Described the first rule comprises:
Downloading process is obtained document size information corresponding to described page-downloading request;
Judge that whether described document size information surpasses default file size threshold value, the mode that if so, adopts multithreading to download is carried out the down operation of respective page, otherwise, adopt the mode of single-threaded download to carry out the down operation of respective page;
Described Second Rule comprises:
Whether the file that downloading process is asked according to described page-downloading request judgement is write in buffer memory in advance, if so, from buffer memory, extracts this document; If not, according to described page-downloading request, from server, download corresponding file, and this document is write to buffer memory.
9. system as claimed in claim 8, is characterized in that, also comprises:
Kernel operations module, for by described IE kernel browser process according to described download status information, the operation that the page data of downloading is resolved, carried out and/or plays up.
10. system as claimed in claim 8 or 9, it is characterized in that, described protocol registration module is for being used the RegisterNameSpace method of IInternetSession interface, registering communication agreement in IE kernel browser process, described communication protocol comprises http agreement, https agreement, mailto agreement and File Transfer Protocol, and, wait for the page-downloading request based on respective communication agreement.
11. systems as claimed in claim 8, is characterized in that, described downloading control module also comprises:
Task is added submodule, for described page-downloading request being added into by downloading process to the download task list generating in advance; Wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
Sequence submodule, for reading the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
File size is obtained submodule, for processing successively the page-downloading request of described download task list, obtains document size information corresponding to page-downloading request;
File size judgement submodule, for judging that whether described document size information surpasses default file size threshold value, if so, calls multithreading and downloads submodule; Otherwise, call single-threaded download submodule;
Multithreading is downloaded submodule, carries out the down operation of respective page for the mode that adopts multithreading to download;
Single-threaded download submodule, for adopting the mode of single-threaded download to carry out the down operation of respective page.
12. systems as claimed in claim 8, is characterized in that, described downloading control module also comprises:
Whether buffer memory judgement submodule, write buffer memory in advance for the file of being asked according to described page-downloading request judgement by downloading process, if so, triggers buffer memory and exceed the time limit to judge submodule; If not, trigger server and download submodule; Wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
Buffer memory exceeds the time limit to judge submodule, and whether the time that writes buffer memory for inquiring about this document surpasses the default time limit; If so, trigger server and download submodule; If not, trigger buffer memory and extract submodule;
Buffer memory extracts submodule, for extracting this document from buffer memory;
Server is downloaded submodule, for downloading corresponding file according to described page-downloading request from server, and this document is write to buffer memory;
Task is added submodule, for described page-downloading request being added into by downloading process to the download task list generating in advance;
Sequence submodule, for reading the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
Download implementation sub-module, for processing successively the page-downloading request of described download task list, carry out corresponding page-downloading operation.
13. systems as claimed in claim 8, is characterized in that, described downloading control module also comprises:
Whether buffer memory judgement submodule, write buffer memory in advance for the file of being asked according to described page-downloading request judgement by downloading process, if so, triggers buffer memory and exceed the time limit to judge submodule; If not, trigger server and download submodule;
Buffer memory exceeds the time limit to judge submodule, and whether the time that writes buffer memory for inquiring about this document surpasses the default time limit; If so, trigger server and download submodule; If not, trigger buffer memory and extract submodule;
Buffer memory extracts submodule, for extracting this document from buffer memory;
Server is downloaded submodule, for downloading corresponding file according to described page-downloading request from server, and this document is write to buffer memory;
File size is obtained submodule, for obtained document size information corresponding to described page-downloading request by downloading process;
File size judgement submodule, for judging that whether described document size information surpasses default file size threshold value, if so, calls multithreading and downloads submodule; Otherwise, call single-threaded download submodule;
Multithreading is downloaded submodule, carries out the down operation of respective page for the mode that adopts multithreading to download;
Single-threaded download submodule, for adopting the mode of single-threaded download to carry out the down operation of respective page.
14. systems as claimed in claim 8, is characterized in that, described downloading control module also comprises:
Whether buffer memory judgement submodule, write buffer memory in advance for the file of being asked according to described page-downloading request judgement by downloading process, if so, triggers buffer memory and exceed the time limit to judge submodule; If not, trigger server and download submodule; Wherein, described page-downloading request comprises URL information, and described URL information comprises extension name information;
Buffer memory exceeds the time limit to judge submodule, and whether the time that writes buffer memory for inquiring about this document surpasses the default time limit; If so, trigger server and download submodule; If not, trigger buffer memory and extract submodule;
Buffer memory extracts submodule, for extracting this document from buffer memory;
Server is downloaded submodule, for downloading corresponding file according to described page-downloading request from server, and this document is write to buffer memory;
Task is added submodule, for described page-downloading request being added into by downloading process to the download task list generating in advance;
Sequence submodule, for reading the page resource type corresponding to extension name acquisition of information of described page-downloading request, in described download task list, according to described page resource type to page-downloading request sort;
File size is obtained submodule, for processing successively the page-downloading request of described download task list, by downloading process, obtains document size information corresponding to described page-downloading request;
File size judgement submodule, for judging that whether described document size information surpasses default file size threshold value, if so, calls multithreading and downloads submodule; Otherwise, call single-threaded download submodule;
Multithreading is downloaded submodule, carries out the down operation of respective page for the mode that adopts multithreading to download;
Single-threaded download submodule, for adopting the mode of single-threaded download to carry out the down operation of respective page.
CN201110289062.5A 2011-09-26 2011-09-26 Page downloading control method and system of IE kernel browser Expired - Fee Related CN102368248B (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CN201410065243.3A CN103838838B (en) 2011-09-26 2011-09-26 The method of the IE kernel processes page and page-downloading method based on browser
CN201110289062.5A CN102368248B (en) 2011-09-26 2011-09-26 Page downloading control method and system of IE kernel browser
CN201410065255.6A CN103838839B (en) 2011-09-26 2011-09-26 A kind of the page-downloading control method and system of IE kernel browser
PCT/CN2012/081855 WO2013044774A1 (en) 2011-09-26 2012-09-24 Page download control method, system and program for ie core browser
US14/347,630 US20140237133A1 (en) 2011-09-26 2012-09-24 Page download control method, system and program for ie core browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110289062.5A CN102368248B (en) 2011-09-26 2011-09-26 Page downloading control method and system of IE kernel browser

Related Child Applications (2)

Application Number Title Priority Date Filing Date
CN201410065255.6A Division CN103838839B (en) 2011-09-26 2011-09-26 A kind of the page-downloading control method and system of IE kernel browser
CN201410065243.3A Division CN103838838B (en) 2011-09-26 2011-09-26 The method of the IE kernel processes page and page-downloading method based on browser

Publications (2)

Publication Number Publication Date
CN102368248A CN102368248A (en) 2012-03-07
CN102368248B true CN102368248B (en) 2014-04-02

Family

ID=45760813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110289062.5A Expired - Fee Related CN102368248B (en) 2011-09-26 2011-09-26 Page downloading control method and system of IE kernel browser

Country Status (1)

Country Link
CN (1) CN102368248B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984275B (en) * 2012-12-14 2016-09-21 北京奇虎科技有限公司 Carry out method and the browser of page download
CN103024044B (en) * 2012-12-14 2016-07-06 北京奇虎科技有限公司 Webpage download method and device
CN104809122B (en) * 2014-01-24 2019-03-26 北京猎豹移动科技有限公司 A kind of method and device accessing webpage
CN104506381A (en) * 2014-12-16 2015-04-08 新余兴邦信息产业有限公司 Method and device for monitoring file uploading through instrument
CN107888940A (en) * 2016-09-30 2018-04-06 法乐第(北京)网络科技有限公司 Video and its related resource method for down loading and system
CN109525615A (en) * 2017-09-18 2019-03-26 贵阳朗玛信息技术股份有限公司 A kind of method and device preloading medical imaging
CN108091354A (en) * 2017-12-13 2018-05-29 深圳市沃特沃德股份有限公司 Onboard system lyrics analysis method and device
CN110737491B (en) * 2018-07-20 2024-04-05 北京字节跳动网络技术有限公司 Notification display method, device, equipment and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710327A (en) * 2009-12-04 2010-05-19 深圳创维数字技术股份有限公司 Method for caching local temporary files into embedded browser
WO2011011130A1 (en) * 2009-07-20 2011-01-27 Facebook, Inc. Monitoring a background process in a web browser and providing status of same

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6516339B1 (en) * 1999-08-18 2003-02-04 International Business Machines Corporation High performance client/server editor
CN102368250B (en) * 2011-09-26 2013-04-24 奇智软件(北京)有限公司 Page downloading control method and system for IE (Internet Explore) kernel browser

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011011130A1 (en) * 2009-07-20 2011-01-27 Facebook, Inc. Monitoring a background process in a web browser and providing status of same
CN101710327A (en) * 2009-12-04 2010-05-19 深圳创维数字技术股份有限公司 Method for caching local temporary files into embedded browser

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
PC机上基于IE内核的网页浏览器开发;翟伟画;《中国优秀硕士学位论文全文数据库信息科技辑》;20091115;1-67 *
翟伟画.PC机上基于IE内核的网页浏览器开发.《中国优秀硕士学位论文全文数据库信息科技辑》.2009,1-67.

Also Published As

Publication number Publication date
CN102368248A (en) 2012-03-07

Similar Documents

Publication Publication Date Title
CN102368213B (en) Page downloading control method and system for IE (Internet Explorer) core browser
CN102368248B (en) Page downloading control method and system of IE kernel browser
CN102368249B (en) Page downloading control method and system for IE (Internet Explorer) core browser
US9235451B2 (en) Browser kernel switching method
RU2604326C2 (en) Webpage browsing method, webapp framework, method and device for executing javascript and mobile terminal
KR101609483B1 (en) Web browsing enhanced by cloud computing
CN102325191B (en) Fully automatic treatment method and frame without page refresh
CN102567516B (en) Script loading method and device
CN106776761B (en) Method and device for rendering webpage by mobile browser
CN102368250B (en) Page downloading control method and system for IE (Internet Explore) kernel browser
CN102567485B (en) The special parsing of provider for content retrieval
CN108416021B (en) Browser webpage content processing method and device, electronic equipment and readable medium
WO2020048189A1 (en) Image generation
CN107276842B (en) Interface test method and device and electronic equipment
US8972968B1 (en) Alternate service for applications
CN108021594B (en) Webpage display method, device and system
US8112500B2 (en) Technique of relaying communications between client apparatus and server apparatus
CN111079048A (en) Page loading method and device
CN103136238A (en) Method and server of processing page interactive elements at time of converting web page into wireless application protocol (WAP) page
CN102681996B (en) Pre-head method and device
CN111857695A (en) Software project processing method, device, equipment and storage medium
CN103838839A (en) Page download control method and system of IE kernel browser
CN103838838A (en) Method for processing page by IE core and method for downloading page based on browser
CN104980511A (en) Game data access method, game data access system and game web server
US8402367B1 (en) Smart reload pages

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140402

Termination date: 20210926

CF01 Termination of patent right due to non-payment of annual fee