Summary of the invention
In view of the above problems, the present invention has been proposed in order to a kind of data sharing method and browser of being used for browser that overcomes the problems referred to above or address the above problem at least in part is provided.
According to one aspect of the present invention, a kind of browser is provided, comprising:
Enquiry module is suitable for mounted source folder or source file except the source browser this browser and browser data place thereof in the query manipulation system;
Browser imports module, is suitable for the browser data in described source folder or the source file is imported to by the data format of described browser the purpose file of this browser;
Browser is derived module, is suitable for the purpose file that browser data with described browser exports to html file or exports to the IE browser.
Alternatively, described enquiry module further comprises:
The browser enquiry module is suitable for detecting the registration table of operating system, inquires about mounted browser except described browser, and with the browser that inquires as the source browser;
Source folder/source file enquiry module is suitable for obtaining the source folder at browser data place, described source or the path of source file according to registry information.
Alternatively, described enquiry module further comprises:
The browser enquiry module is suitable for detecting the registration table of operating system, inquires about mounted browser except described browser;
Source browser mark module is suitable for receiving user's browser select command, and the browser of user selection is labeled as the source browser;
Source folder/source file enquiry module is suitable for obtaining the source folder at browser data place, described source or the path of source file according to registry information.
Alternatively, described source folder or source file comprise: default folder or the default document of storage browser data in the browser of source, and/or source browser particular login user folder or file.
Alternatively, described browser importing module further comprises:
The user account acquisition module is suitable for obtaining user account and login time according to source browser log-on message, filters out the nearest targeted customer's account of login time of user account;
The user file identification module is suitable for identifying source folder or source file take described targeted customer's account as title;
The data importing module is suitable for the source folder take described targeted customer's account as title or the browser data in the source file are imported to by the data format of described browser the purpose file of this browser.
Alternatively, described browser importing module further comprises:
Source folder/source file is selected module, is suitable for receiving the order of user selection source folder or source file;
The data importing module is suitable for source folder or the browser data in the source file with user selection import to this browser by the data format of described browser purpose file.
Alternatively, described data importing module further comprises:
The data format judge module is suitable for reading the browser data of described source folder or source file, judges whether described browser data form is identical with the data format of this browser, or I E browser data form;
The Data Format Transform module is suitable for not identical with the data format of this browser, and is not that IE browser data form browser data converts the HTML reference format to, again with the data format of HTML reference format conversion cost browser;
Import module, be suitable for identical with the data format of this browser, or IE browser data form, or the browser data after the process format conversion imports in the purpose file of this browser.
Alternatively, described browser importing module further comprises:
The Data Comparison module is suitable for contrasting browser data in browser data to be imported and the described purpose file, if existing browser data to be imported in the purpose file, then this browser data will not import.
Alternatively, described browser importing module further comprises:
Purpose file configuration module is suitable for creating new classification and/or empty original browser data in the described purpose file in described purpose file.
Alternatively, described browser importing module also is suitable for importing the browser data of html format to described the corresponding purpose file of browser.
According to a further aspect in the invention, provide a kind of data sharing method for browser, comprised step:
Source browser in the query manipulation system the mounted purpose browser except presetting and source folder or the source file at browser data place thereof;
Browser data in described source folder or the source file is imported to the purpose file of purpose browser by the data format of described purpose browser;
The browser data of described purpose browser exported to html file or export to the purpose file of IE browser.
Alternatively, mounted source browser and the source folder at browser data place or the step of source file except default purpose browser further comprises in the described query manipulation system:
Detect the registration table of operating system, inquire about the browser the mounted purpose browser except presetting, and with the browser that inquires as the source browser;
Obtain the source folder at browser data place, described source or the path of source file according to registry information.
Alternatively, mounted source browser and the source folder at browser data place or further comprising of source file except default purpose browser in the described query manipulation system:
Detect the registration table of operating system, inquire about mounted browser except default purpose browser;
Receive user's browser select command, the browser of user selection is labeled as the source browser;
Obtain the source folder at browser data place, described source or the path of source file according to registry information.
Alternatively, described source folder or source file comprise: default folder or the default document of storage browser data in the browser of source, and/or source browser particular login user folder or file.
Alternatively, the browser data in described source folder or the source file is further comprised by the purpose file that the data format of described purpose browser imports to the purpose browser:
Obtain user account and login time according to source browser log-on message, filter out the nearest targeted customer's account of login time of user account;
Source folder or the source file of identification take described targeted customer's account as title;
Source folder take described targeted customer's account as title or the browser data in the source file are imported to the purpose file of this browser by the data format of described browser.
Alternatively, the browser data in described source folder or the source file is further comprised by the purpose file that the data format of described purpose browser imports to the purpose browser:
Receive the order of user selection source folder or source file;
Browser data in the source folder of user selection is imported to the purpose file of purpose browser by the data format of described purpose browser.
Alternatively, the browser data in described source folder or the source file is further comprised by the purpose file that the data format of described purpose browser imports to the purpose browser:
Read the browser data of described source folder or source file, judge whether described browser data form is identical with the data format of purpose browser, or IE browser data form;
If not identical with the data format of purpose browser, and be not IE browser data form, then the browser data with source folder converts the HTML reference format to, the HTML reference format is converted to the data format of purpose browser again;
If identical with the data format of purpose browser, or IE browser data form, or through after the format conversion, described browser data is imported in the purpose file of purpose browser.
Alternatively, when being imported to the purpose file of purpose browser by the data format of described purpose browser, the browser data in described source folder or the source file further comprises:
Contrast browser data in browser data to be imported and the described purpose file, if existing browser data to be imported in the purpose file, then this browser data will not import.
Alternatively, before the purpose file that the browser data in described source folder or the source file is imported to the purpose browser by the data format of described purpose browser, also comprise:
In described purpose file, create new classification and/or empty original browser data in the described purpose file.
Alternatively, the method also comprises: import the browser data of html format to the corresponding purpose file of described purpose browser.
Can between this browser and source browser, import and export data according to the data sharing method for browser of the present invention and browser, as: favorites data etc., solve thus the problem that data can't be shared between browser in the prior art, obtained the beneficial effect at the browser data sharing.
Above-mentioned explanation only is the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in the accompanying drawing, yet should be appreciated that and to realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order to understand the disclosure more thoroughly that these embodiment are provided, and can with the scope of the present disclosure complete convey to those skilled in the art.
The present embodiment provides a kind of browser that can carry out data sharing with local other browser, and its structure comprises as shown in Figure 1: enquiry module 110 and browser import module 120.
Enquiry module 110 is suitable for mounted source folder or source file except the source browser this browser and browser data place thereof in the query manipulation system.
This enquiry module 110 is concrete by detecting registration tablies, to check the browser that is equipped with in the local system and source folder or the source file at browser data place thereof.Wherein, source folder or source file comprise: in the browser of source the storage browser data default folder or default data file, in the local file system of correspondence, check default folder (as: default folder of cheetah browser C: Users duanpeikun AppData Local liebao User Data Default).For the browser client of login, source folder or source file also comprise source browser particular login user folder or file (as: C: Users duanpeikun AppData Local liebao User Data user name).
All browsers that this enquiry module 110 can obtain inquiry are as the source browser, and inquiry obtains the source folder at browser data place of source browser or the path of source file, and a kind of structure of this enquiry module 110 specifically comprises shown in 2:
Browser enquiry module 210 is suitable for detecting the registration table of operating system, inquire about mounted except the browser this browser, and with the browser that inquires as the source browser.
Source folder/source file enquiry module 220 is suitable for obtaining the source folder at browser data place, source or the path of source file according to registry information.Wherein the path comprises the path of default sources file or default sources file, if login user is arranged, also comprises particular login user folder or file.This module 220 can be showed by directory tree by the path that inquiry is obtained, and the sub-folder under the displaying file and the catalogue of file, so that subsequent user is selected certain source folder or source file.
This enquiry module 110 also can be determined the source browser according to user selection, and the another kind of structure of this enquiry module 110 specifically comprises as shown in Figure 3:
Browser enquiry module 310 is suitable for detecting the registration table of operating system, inquires about mounted except the browser this browser.The information except the browser this browser that this browser can obtain inquiry (as showing the icon of different browsers) displays with the form of user interface.
Source browser mark module 320 is suitable for receiving user's browser select command, and the browser of user selection is labeled as the source browser.The browser that the user can select in user interface modes such as (click by mouse) choosing to share data with this browser be the source browser.
Source folder/source file enquiry module 330 is suitable for obtaining the source folder at browser data place, source or the path of source file according to registry information.This module 330 can be showed by directory tree by the path that inquiry is obtained, and the sub-folder under the displaying file and the catalogue of file, so that subsequent user is selected certain source folder or source file.
Browser imports module 120 and is suitable for source folder that above-mentioned enquiry module 110 inquiries are obtained or the browser data in the source file import to this browser by the data format of this browser purpose file.
This browser imports module 120 when importing browser data, can only import the data of user's collection of nearest login source browser, and a kind of structure of this browser importing module 120 comprises as shown in Figure 4:
User account acquisition module 410 is suitable for obtaining user account and login time according to source browser log-on message, filters out the nearest targeted customer's account of login time of user account.The source browser is meeting recording user account and login time when the user logins, and can obtain relevant information by the source browser log.Illustrate as follows: in 360 secure browsers, store three account A, B, C.The A account is login before month, and the B account is login before three months, and the C account is logined the year before.Then the A account is considered to targeted customer's account.
User file identification module 420 is suitable for identifying source folder or source file take targeted customer's account as title.Whether there is the information of this user account to determine whether this source folder or source file are file or the file of the data of login user collection by the user account that obtains in the route matching of source folder or source file.
Data importing module 430 is suitable for the source folder take described targeted customer's account as title or the browser data in the source file are imported to by the data format of this browser the purpose file of this browser.
This browser imports module 120 when importing browser data, can also import the source folder of user selection or the browser data in the source file for a certain source browser, and the another kind of structure of this browser importing module 120 comprises as shown in Figure 5:
Source folder/source file is selected module 510, is suitable for receiving the order of user selection source folder or source file.
Data importing module 520 is suitable for source folder or the browser data in the source file with user selection import to this browser by the data format of this browser purpose file.
Because browser is different, its browser data form also is not quite similar, for example: for favorites data, that the chrome of google adopts is Bookmark form (bookmarks.dat), IE then is a kind of reference format (can directly import), and the collection form of 360 secure browsers is database.Therefore when above-mentioned data importing module 430 and data importing module 520 import to this browser with the browser data of source browser, also may need Data Format Transform.The concrete structure signal of above-mentioned data importing module 430 and data importing module 520 comprises as shown in Figure 6:
Data format judge module 610 is suitable for reading the browser data of source folder or source file, judges whether the browser data form is identical with the data format of this browser, or IE browser data form.
Data Format Transform module 620 is suitable for not identical with the data format of this browser, and is not that IE browser data form browser data converts the HTML reference format to, again with the data format of HTML reference format conversion cost browser.Can adopt the resolver of corresponding data form and maker to realize format conversion during conversion.For example: step was as follows when the collection in the Chrome browser was imported in 360 secure browsers:
1, the form of the collection in the Chrome browser is Bookmark, use J son resolver that the file of this Bookmark form is resolved in the present embodiment and then use the html file maker, according to the key element that parses it is generated as the file of HTML form.
2, then in the form that the favorites data of HTML form is converted to the collection that adopts in the secure browser.Specifically, the form of the collection in 360 secure browsers is database, uses html parser that the file of html format is resolved then usage data storehouse maker in the present embodiment, the key element that parses is generated as the form of database.
Import module 630, be suitable for identical with the data format of this browser, or I E browser data form, or the browser data after the process format conversion imports in the purpose file of this browser.
As shown in Figure 7, be a kind of concrete structure schematic diagram of the browser of the present embodiment, comprise: enquiry module 710 and connected browser import module 720, and enquiry module 710 comprises: browser enquiry module 711 and source folder/source file enquiry module 712; Browser imports module 720 and comprises: source folder/source file is selected module 721 and data importing module 722; Data importing module 722 specifically comprises: data format judge module 7221, Data Format Transform module 7222 and importing module 7223.Each module concrete function and interactively repeat no more as described in the above-mentioned corresponding module herein.
Further, for fear of repeating to import data, browser imports module 120 and also comprises: the Data Comparison module is suitable for contrasting the browser data in browser data to be imported and the purpose file, if existing browser data to be imported in the purpose file, then this browser data will not import.If data format is different, again contrast after can changing, different comparing modes is also different, such as the collection of I E, can extract the URL in the BASEURL field wherein, if the URL of two collections is identical, think that then the content of two collection collections is identical, be identical collection.To import collection as example:
If have A, two files of B in the purpose file in the existing collection, there are a, two collections of b in A file the inside, and there are c, two collections of d in B file the inside.
And A, C file are arranged in the collection in the source file, and a, b, three collections of c are arranged in the A file, c, d, three collections of e are arranged in the C file.
Then finally import the result and be in the collection in the purpose file and contain A, B, three files of C, a, b, three collections of c are arranged in the A file, c, two collections of d are arranged in the B file, c, d, three collections of e are arranged in the C file.
Namely the union of the collection of the collection in the purpose file and source file only imports from collection is different before.Wherein, place file (comprising self file and all parent folders thereof) is identical, and the collection content is also identical, is considered as identical collection.If file is different, the collection content is identical, is considered as different collections.The as mentioned before collection of c, the d in the middle B file can not think identical with c, the d collection in the C file.
Further, for reasonable disposition purpose file, browser imports module 120 and also comprises: purpose file configuration module is suitable for creating new classification and/or empty original browser data in the described purpose file in described purpose file.
Because some browser data can be html format, such as collection, further, browser imports module 120 and also is suitable for directly importing browser data to the purpose file from selected catalogue.
The browser data of this browser also can derive, and shares to make things convenient for other browser, and further, this browser also comprises: browser is derived module, is suitable for that self browser data exported to html file or exports to the purpose file of IE browser.
The browser of the present embodiment has realized that browser data imports and exports function, has made things convenient for the data sharing of this browser with other browser.
The present embodiment provides a kind of data sharing method for browser, and its flow process comprises as shown in Figure 8:
Step S810, the source browser in the query manipulation system the mounted purpose browser except presetting and source folder or the source file at browser data place thereof.
Step S820 imports to the browser data in described source folder or the source file purpose file of purpose browser by the data format of described purpose browser.
Wherein, step S810 is specifically by detecting registration table, to check the browser that is equipped with in the local system and source folder or the source file at browser data place thereof.Wherein, source folder or source file comprise: in the browser of source the storage browser data default folder or default data file, in the local file system of correspondence, check default folder (as: default folder of cheetah browser C: Users duanpeikun AppData Local liebao User Data Default).For the browser client of login, source folder or source file also comprise source browser particular login user folder or file (as: C: Users duanpeikun AppData Local liebao User Data user name).
All browsers that inquiry can be obtained among this step S810 are as the source browser, and inquiry obtains the source folder at browser data place of source browser or the path of source file, and a kind of flow process of this step 810 specifically comprises as shown in Figure 9:
Step S910 detects the registration table of operating system, inquire about mounted except the browser this browser, and with the browser that inquires as the source browser.
Step S920 obtains the source folder at browser data place, source or the path of source file according to registry information.Wherein the path comprises the path of default sources file or default sources file, if login user is arranged, also comprises particular login user folder or file.Can show by directory tree by the path that inquiry is obtained in this step, and the sub-folder under the displaying file and the catalogue of file, so that subsequent user is selected certain source folder or source file.
Also can determine the source browser according to user selection among this step S810, the another kind of structure of this step S810 specifically comprises as shown in figure 10:
Step S1010, the registration table of detection operating system is inquired about mounted except the browser this browser.The information except the browser this browser that this browser can obtain inquiry (as showing the icon of different browsers) displays with the form of user interface.
Step S1020 receives user's browser select command, and the browser of user selection is labeled as the source browser.The browser that the user can select in user interface modes such as (click by mouse) choosing to share data with this browser be the source browser.
Step S1030 obtains the source folder at browser data place, source or the path of source file according to registry information.Can show by directory tree by the path that inquiry is obtained in this step, and the sub-folder under the displaying file and the catalogue of file, so that subsequent user is selected certain source folder or source file.
Wherein, the source folder that among the step S820 above-mentioned steps S810 is obtained or the browser data in the source file import to the purpose file of purpose browser by the data format of purpose browser.
When importing browser data, can only import the data of user's collection of nearest login source browser among this step S820, a kind of realization flow of this step S820 comprises as shown in figure 11:
Step S1110 obtains user account and login time according to source browser log-on message, filters out the nearest targeted customer's account of login time of user account.The source browser is meeting recording user account and login time when the user logins, and can obtain relevant information by the source browser log.Illustrate as follows: in 360 secure browsers, store three account A, B, C.The A account is login before month, and the B account is login before three months, and the C account is logined the year before.Then the A account is considered to targeted customer's account.
Step S1120, source folder or the source file of identification take targeted customer's account as title.Whether there is the information of this user account to determine whether this source folder or source file are file or the file of the data of login user collection by the user account that obtains in the route matching of source folder or source file.
Step S1130 imports to the source folder take targeted customer's account as title or the browser data in the source file purpose file of this browser by the data format of this browser.
This step S820 can also import the source folder of user selection or the browser data in the source file for a certain source browser when importing browser data, the another kind of realization flow of this step S720 comprises as shown in figure 12:
Step S1210 receives the order of user selection source folder or source file.
Step S1220, source folder or the browser data in the source file of user selection imported to this browser by the data format of this browser purpose file.
Because browser is different, its browser data form also is not quite similar, for example: for favorites data, that the chrome of google adopts is Bookmark form (bookmarks.dat), IE then is a kind of reference format (can directly import), the collection form of 360 secure browsers is database, and collection can also html format.Therefore when the browser data with the source browser imports to this browser, also may need Data Format Transform.The idiographic flow of above-mentioned steps S1130 and step S1220 comprises as shown in figure 13:
Step S1310 reads the browser data of source folder or source file, judges whether the browser data form is identical with the data format of this browser, or IE browser data form.
Step S1320 will be not identical with the data format of this browser, and not be that IE browser data form browser data converts the HTML reference format to, again with the data format of HTML reference format conversion cost browser.Can adopt the resolver of corresponding data form and maker to realize format conversion during conversion.For example: step was as follows when the collection in the Chrome browser was imported in 360 secure browsers:
1, the form of the collection in the Chrome browser is Bookmark, use J son resolver that the file of this Bookmark form is resolved in the present embodiment and then use the html file maker, according to the key element that parses it is generated as the file of HTML form.
2, then in the form that the favorites data of HTML form is converted to the collection that adopts in the secure browser.Specifically, the form of the collection in 360 secure browsers is database, uses html parser that the file of html format is resolved then usage data storehouse maker in the present embodiment, the key element that parses is generated as the form of database.
Step S1330 will be identical with the data format of this browser, or IE browser data form, or import in the purpose file of this browser through the browser data after the format conversion.
Further, for fear of repeating to import data, also comprised step before importing: contrast browser data to be imported and the browser data in the purpose file, if existing browser data to be imported in the purpose file, then this browser data will not import.
Further, for reasonable disposition purpose file, before importing, also comprise step: in described purpose file, create new classification and/or empty original browser data in the described purpose file.
Because some browser data can be html format, such as collection, further, also comprise from selected catalogue directly importing browser data to the purpose file.
The browser data of this browser also can derive, and shares to make things convenient for other browser, further, also comprises step: self browser data is exported to html file or export to the purpose file of IE browser.
Intrinsic not relevant with any certain computer, virtual system or miscellaneous equipment with demonstration at this algorithm that provides.Various general-purpose systems also can be with using based on the teaching at this.According to top description, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.Should be understood that and to utilize various programming languages to realize content of the present invention described here, and the top description that language-specific is done is in order to disclose preferred forms of the present invention.
In the specification that provides herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can be in the situation that there be these details to put into practice.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the description to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes in the above.Yet the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires the more feature of feature clearly put down in writing than institute in each claim.Or rather, as following claims reflected, inventive aspect was to be less than all features of the disclosed single embodiment in front.Therefore, follow claims of embodiment and incorporate clearly thus this embodiment into, wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can adaptively change and they are arranged in one or more equipment different from this embodiment the module in the equipment among the embodiment.Can be combined into a module or unit or assembly to the module among the embodiment or unit or assembly, and can be divided into a plurality of submodules or subelement or sub-component to them in addition.In such feature and/or process or unit at least some are mutually repelling, and can adopt any combination to disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and so all processes or the unit of disclosed any method or equipment make up.Unless in addition clearly statement, disclosed each feature can be by providing identical, being equal to or the alternative features of similar purpose replaces in this specification (comprising claim, summary and the accompanying drawing followed).
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included among other embodiment, the combination of the feature of different embodiment means and is within the scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, perhaps realizes with the software module of moving at one or more processor, and perhaps the combination with them realizes.It will be understood by those of skill in the art that and to use in practice microprocessor or digital signal processor (DSP) to realize according to some or all some or repertoire of parts in the browser of the embodiment of the invention.The present invention can also be embodied as be used to part or all equipment or the device program (for example, computer program and computer program) of carrying out method as described herein.Such realization program of the present invention can be stored on the computer-readable medium, perhaps can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, and perhaps provides at carrier signal, perhaps provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation of the scope that does not break away from claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed in element or step in the claim.Being positioned at word " " before the element or " one " does not get rid of and has a plurality of such elements.The present invention can realize by means of the hardware that includes some different elements and by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to come imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title with these word explanations.