CN104182493A - Data synchronization method and device as well as terminal - Google Patents

Data synchronization method and device as well as terminal Download PDF

Info

Publication number
CN104182493A
CN104182493A CN201410394994.XA CN201410394994A CN104182493A CN 104182493 A CN104182493 A CN 104182493A CN 201410394994 A CN201410394994 A CN 201410394994A CN 104182493 A CN104182493 A CN 104182493A
Authority
CN
China
Prior art keywords
browser
user
recorded information
user recorded
buffer memory
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.)
Granted
Application number
CN201410394994.XA
Other languages
Chinese (zh)
Other versions
CN104182493B (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.)
Conew Network Technology Beijing Co Ltd
Original Assignee
Conew Network Technology 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 Conew Network Technology Beijing Co Ltd filed Critical Conew Network Technology Beijing Co Ltd
Priority to CN201410394994.XA priority Critical patent/CN104182493B/en
Publication of CN104182493A publication Critical patent/CN104182493A/en
Application granted granted Critical
Publication of CN104182493B publication Critical patent/CN104182493B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a data synchronization method and device as well as a terminal. The data synchronization method comprises the following steps: obtaining the recorded information of a first user from the cache of a first browser; analyzing the recorded information of the first user, and obtaining the operating record data of the user in the first browser; according to the cache path of the recorded information of a second user in a second browser, storing the operating record data of the user in the first browser to the file of the recorded information of the second user. By adopting the data synchronization method provided by the embodiment of the invention, the function of data synchronization between different browsers can be realized, under the condition of user authorization, the operating record data such as favorites, bookmarks, history record and other information of the mounted browser can be automatically synchronized to the browser, which is mounted currently, so that user experience is improved.

Description

A kind of method of data synchronization and device, terminal
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of method of data synchronization and device, terminal.
Background technology
At present, along with the development of the communication technology, the terminal device accessing Internets anywhere or anytime such as smart mobile phone, panel computer, notebook and computer.In actual applications, user is more by the browser accessing Internet on terminal device, in browser, the function such as collection or historical record can be stored the user record data such as webpage, the network address of browsing of user collection, thereby makes that user is follow-up can directly access these network address or webpage etc. fast.But, in prior art, if user installation different browsers, just need to be in each browser respectively webpage be collected etc. to operation, and different browser histories record is also separate, this has brought inconvenience to user.
Summary of the invention
The embodiment of the invention discloses a kind of method of data synchronization and device, terminal, can be between the different browsers synchronous record data of buffer memory separately.
Embodiment of the present invention first aspect discloses a kind of method of data synchronization, comprising:
From the buffer memory of the first browser, obtain first user recorded information;
Resolve described first user recorded information, obtain the record data of user in described the first browser;
According to the cache path of the second user record information of the second browser, the record data by described user in the first browser is stored in the file of the second user record information.
Wherein, the described first user recorded information of obtaining from the buffer memory of the first browser, comprising:
Installing in the process of the second browser, export prompting, whether authorized browse device data are synchronous for inquiry user;
If subscriber authorisation browser data is synchronous, obtain the cache path of the first user recorded information of the first browser;
According to the cache path of first user recorded information, from the buffer memory of the first browser, obtain described first user recorded information.
Wherein, if described subscriber authorisation browser data is synchronous, obtain the cache path of the first user recorded information of the first browser, comprising:
If subscriber authorisation browser data is synchronous, judge whether the cache path of the first user recorded information of the first browser;
If have, obtain the cache path of the first user recorded information of described the first browser.
Wherein, described according to the cache path of first user recorded information, from the buffer memory of the first browser, obtain first user recorded information, comprising:
According to the cache path of first user recorded information, in the buffer memory of inquiry the first browser, whether there is first user recorded information;
If there is first user recorded information in the buffer memory of the first browser, from the buffer memory of the first browser, obtain first user recorded information.
Wherein, if there is first user recorded information in the buffer memory of described the first browser, from the buffer memory of the first browser, obtain first user recorded information, comprising:
If there is first user recorded information in the buffer memory of the first browser, judge whether that authority obtains this first user recorded information from the buffer memory of the first browser;
If there is authority, from the buffer memory of the first browser, obtain this first user recorded information.
Wherein, described parsing first user recorded information, obtains the record data of user in the first browser, comprising:
Whether the file layout that judges first user recorded information can be identified;
If the file layout of first user recorded information can be identified, resolve first user recorded information, obtain the record data of user in the first browser;
If the file layout of first user recorded information can not be identified, first user recorded information is uploaded to server, to obtain the record data of user in the first browser by server parses first user recorded information;
The record data of the user that reception server returns in the first browser.
Embodiment of the present invention second aspect discloses a kind of data synchronization unit, comprising:
Acquisition module, for obtaining first user recorded information from the buffer memory of the first browser;
Parsing module, the first user recorded information of obtaining for resolving described acquisition module, obtains the record data of user in the first browser;
Memory module, for according to the cache path of the second user record information of the second browser, resolves the record data of the described user who obtains in the first browser by described parsing module and is stored in the file of the second user record information.
Wherein, described acquisition module comprises:
Output unit, for the process the second browser is installed, output prompting, whether authorized browse device data are synchronous for inquiry user;
The first acquiring unit, in the time that user is synchronous for described output unit authorized browse device data, obtains the cache path of the first user recorded information of the first browser;
Second acquisition unit for the cache path of the first user recorded information obtained according to described the first acquiring unit, obtains first user recorded information from the buffer memory of the first browser.
Wherein, described the first acquiring unit comprises:
Judge submodule, in the time that user is synchronous for described output unit authorized browse device data, judge whether the cache path of the first user recorded information of the first browser;
First obtains submodule, in the described judged result that judges submodule for sometimes, obtain the cache path of the first user recorded information of described the first browser.
Wherein, described second acquisition unit comprises:
Whether inquiry submodule, for the cache path of the first user recorded information obtained according to described the first acquiring unit, have first user recorded information in the buffer memory of inquiry the first browser;
Second obtains submodule, while having first user recorded information, obtains first user recorded information from the buffer memory of the first browser for the buffer memory that is the first browser at the Query Result of described inquiry submodule.
Wherein, described second obtain submodule and comprise:
Judgment sub-unit, while having first user recorded information, judges whether that authority obtains this first user recorded information from the buffer memory of the first browser for the buffer memory that is the first browser at the Query Result of described inquiry submodule;
Obtain subelement,, from the buffer memory of the first browser, obtain this first user recorded information for the judged result in described judgment sub-unit in limited time for having the right.
Wherein, described parsing module comprises:
Whether judging unit, can identify for the file layout that judges the first user recorded information that described acquisition module obtains;
Resolution unit, can identify time, resolves first user recorded information for judge the file layout of first user recorded information at described judging unit, obtains the record data of user in the first browser;
Communication unit, for in the time that described judging unit is judged the file layout None-identified of first user recorded information, first user recorded information is uploaded to server, to obtain the record data of user in the first browser by server parses first user recorded information;
Described communication unit, the user who also returns for reception server is in the record data of the first browser.
The embodiment of the present invention third aspect discloses a kind of terminal, comprises the device described in foregoing invention embodiment.
In the embodiment of the present invention, terminal can be obtained first user recorded information from the buffer memory of the first browser, by resolving first user recorded information, obtain the record data of user in described the first browser, and according to the cache path of the second user record information of the second browser, the record data by user in the first browser is stored in the file of the second user record information.Thereby realize the synchronous function of data between different browsers, made user just can automatically obtain the information such as collection and historical record of other browser by a browser, with online more easily.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of an embodiment of the disclosed a kind of method of data synchronization of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another embodiment of the disclosed a kind of method of data synchronization of the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the another embodiment of the disclosed a kind of method of data synchronization of the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the another embodiment of the disclosed a kind of method of data synchronization of the embodiment of the present invention;
Fig. 5 is the schematic flow sheet of the another embodiment of the disclosed a kind of method of data synchronization of the embodiment of the present invention;
Fig. 6 is the structural representation of the disclosed a kind of data synchronization unit of the embodiment of the present invention;
Fig. 7 is the structural representation of acquisition module in the disclosed data synchronization unit of the embodiment of the present invention;
Fig. 8 is the structural representation of the first acquiring unit in the disclosed acquisition module of the embodiment of the present invention;
Fig. 9 is the structural representation of second acquisition unit in the disclosed acquisition module of the embodiment of the present invention;
Figure 10 is the second structural representation that obtains submodule in the disclosed second acquisition unit of the embodiment of the present invention;
Figure 11 is the structural representation of parsing module in the disclosed data synchronization unit of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of method of data synchronization and device, terminal, can be between the different browsers synchronous record data of buffer memory separately.Below be elaborated respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of the disclosed a kind of method of data synchronization of the embodiment of the present invention.As shown in Figure 1, this method of data synchronization can comprise:
S100, from the buffer memory of the first browser, obtain first user recorded information.
In the embodiment of the present invention, first user recorded information can comprise the record data of user in the first browser, as collection, historical record etc.
S200, parsing first user recorded information, obtain the record data of user in the first browser.
S300, according to the cache path of the second user record information of the second browser, the record data by user in the first browser is stored in the file of the second user record information.
Wherein, the second user record information comprises the record data of user in the second browser, as collection, historical record etc.
Above-mentioned first user recorded information and/or the second user record information can comprise: JSON (JavaScript Object Notation) language file, and this is a kind of exchanges data voice of lightweight, taking word as basis, is easy to read; Or Plist file, arranges the file of the object after the information serialization of binding for stored user.
As one embodiment alternatively, as shown in Figure 2, above-mentioned S100 can comprise:
S101: installing in the process of the second browser, export prompting, whether authorized browse device data are synchronous for inquiry user;
S102: if subscriber authorisation browser data is synchronous, obtain the cache path of the first user recorded information of the first browser;
S103, according to the cache path of first user recorded information, from the buffer memory of the first browser, obtain first user recorded information.
As one embodiment alternatively, as shown in Figure 3, above-mentioned S102 can comprise:
S1021: if subscriber authorisation browser data is synchronous, judge whether the cache path of the first user recorded information of the first browser;
S1022: if having, obtain the cache path of the user record information of the first browser.
Correspondingly, in another embodiment, if judgement is without the cache path of the first user recorded information of the first browser, the browser identification information of the first browser can be sent to server, wherein, browser identification information can comprise the information such as the failure of data synchronization reason of browser title, version and/or this browser.
As one embodiment alternatively, as shown in Figure 4, above-mentioned S103 can comprise:
S1031: according to the cache path of first user recorded information, whether have first user recorded information in the buffer memory of inquiry the first browser;
S1032: if having, obtain first user recorded information from the buffer memory of the first browser.
In another embodiment, the present invention can also be according to the cache path of first user recorded information, while determining in the buffer memory of the first browser without first user recorded information, the browser identification information of the first browser is sent to server, and output is for pointing out the prompting message of the first browser data synchronization failure, wherein, browser identification information comprises the information such as browser title, version and/or this browser data synchronization failure reason.
Concrete, above-mentioned S1032 specifically can comprise: if there is first user recorded information in the buffer memory of the first browser, judge whether that authority obtains this first user recorded information from the buffer memory of the first browser; If there is authority, from the buffer memory of the first browser, obtain this first user recorded information.
Correspondingly, in another embodiment, if there is first user recorded information in the buffer memory of the first browser, but do not have authority from this buffer memory, to obtain first user recorded information, the browser identification information of the first browser is sent to server.Wherein, browser identification information comprises the information such as browser title, version and/or this browser data synchronization failure reason.
As one embodiment alternatively, as shown in Figure 5, above-mentioned S200 can comprise:
S201, judge whether the file layout of first user recorded information can be identified;
If the file layout of S202 first user recorded information can be identified, resolve first user recorded information, obtain the record data of user in the first browser;
If the file layout of S203 None-identified first user recorded information, is uploaded to server by first user recorded information, to obtain the record data of user in the first browser by server parses first user recorded information;
The record data of the user that S204, reception server return in the first browser.
The file layout difference adopting due to the user record information of each browser, and server can be identified more file layout, has therefore increased to carry out the synchronous browser kind of browser data, to improve the data synchronizing capacity of terminal.
The embodiment of the present invention is obtained first user recorded information from the buffer memory of the first browser, by resolving first user recorded information, obtain the record data of user in the first browser, and according to the cache path of the second user record information of the second browser, this record data is stored in the file of this second user record information.Visible, the embodiment of the present invention has realized the synchronous function of data between different browsers, thereby make user just can automatically obtain the record data such as collection and historical record of other browser by a browser, with online more easily, improved user's experience.
Refer to Fig. 6, Fig. 6 is the structural representation of the disclosed a kind of data synchronization unit of the embodiment of the present invention.Wherein, the data synchronization unit shown in Fig. 6 comprises with lower module:
Acquisition module 1, for obtaining first user recorded information from the buffer memory of the first browser.
Wherein, first user recorded information can comprise the record data of user in the first browser, as collection, historical record etc.
Parsing module 2, the first user recorded information of obtaining for resolving acquisition module 1, obtains the record data of user in the first browser.
Memory module 3, for according to the cache path of the second user record information of the second browser, the record data of the user who parsing module 2 is resolved to acquisition in the first browser is stored in the file of the second user record information.
See also Fig. 7, due to the cache path difference of the user record information of different browsers, acquisition module 1 can comprise:
Output unit 11, for the process the second browser is installed, output prompting, whether authorized browse device data are synchronous for inquiry user.
The first acquiring unit 12, for when synchronous, obtaining the cache path of the first user recorded information of the first browser for output unit 11 authorized browse device data user.
Second acquisition unit 13 for the cache path of the first user recorded information obtained according to the first acquiring unit 12, obtains first user recorded information from the buffer memory of the first browser.
Alternatively, mounted all browsers can be carried out to data synchronous operation.
Alternatively, as shown in Figure 8, the first acquiring unit 12 can comprise:
Judge submodule 121, for when synchronous, judging whether the cache path of the first user recorded information of the first browser for output unit 11 authorized browse device data user;
First obtains submodule 122, for sometimes, obtains the cache path of the first user recorded information of the first browser for the judged result judging submodule 121.
In specific implementation, if judge, the judged result of submodule 121 is the cache path that there is no the first user recorded information of the first browser, the information such as browser title, version of the first browser can be sent to background server, so that background server is to owing to not having corresponding cache path to cause the browser of failure of data synchronization to gather, facilitate later stage upgrading.In addition, if judge, the judged result of submodule 121 is the cache path that there is no the first user recorded information of the first browser, can also export the prompting message of this first browser data synchronization failure.
Alternatively, as shown in Figure 9, second acquisition unit 13 can comprise:
Whether inquiry submodule 131, for the cache path of the first user recorded information obtained according to the first acquiring unit 12, have first user recorded information in the buffer memory of inquiry the first browser;
Second obtains submodule 132, while having first user recorded information, obtains first user recorded information from the buffer memory of the first browser for the buffer memory that is the first browser at the Query Result of inquiry submodule 131.
In specific implementation, inquire in the buffer memory of the first browser and have first user recorded information by inquiry submodule 131 even if second obtains submodule 132, also may be because the reasons such as disk failures cannot be obtained first user recorded information, or there is no authority acquiring first user recorded information, therefore, as shown in figure 10, second obtain submodule 132 and can also comprise following subelement:
Judgment sub-unit 1321, at the Query Result of inquiry submodule 131 being the buffer memory of the first browser while having first user recorded information, judges whether that authority obtains this first user recorded information from the buffer memory of the first browser;
Obtain subelement 1322,, from the buffer memory of the first browser, obtain this first user recorded information for the judged result in judgment sub-unit 1321 in limited time for having the right.
Due to the form difference of the user record information of different browsers, as one embodiment alternatively, as shown in figure 11, parsing module 2 can comprise:
Whether judging unit 21, can identify for the file layout that judges the first user recorded information that acquisition module 1 obtains.
Resolution unit 22, can identify time, resolves first user recorded information for the file layout that is first user recorded information in the judged result of judging unit 21, obtains the record data of user in the first browser.
Communication unit 23, can not identify for the file layout that is first user recorded information in the judged result of judging unit 21 time, first user recorded information is uploaded to server, to obtain the record data of user in the first browser by server parses first user recorded information.
This communication unit 23, the user who also returns for reception server is in the record data of the first browser.
The data synchronization unit of the embodiment of the present invention can obtain by acquisition module the first user recorded information of the first browser, and by parsing module, this first user recorded information is resolved to obtain the record data of user in the first browser, and by memory module according to the cache path of the second user record information of the second browser, the record data by user in the first browser is stored in the file of the second user record information of the second browser.Visible, this data synchronization unit can be realized the synchronous function of data between different browsers, thereby the information such as collection and historical record that makes user just can automatic synchronization obtain other browser by a browser is surfed the Net easily.Further, data synchronization unit can be under subscriber authorisation intelligently by collection, bookmark in mounted the first browser, browse the data such as record and be synchronized in the second browser of installing, avoided user to cause utilizing the problem of other browser client recorded information by manual complicated processes of again searching, derive, importing and preserving user profile and None-identified file layout.
The embodiment of the invention also discloses a kind of terminal, this terminal comprises the described data synchronization unit of foregoing invention embodiment, it is synchronous that this terminal can realize data between different browsers, avoid user again to search, derive, import and preserve the complicated processes of user record information, in addition, this terminal can also be in the new browser process of installation, the in the situation that of subscriber authorisation, will user record data in the user record message file of browser be installed as collection, bookmark, the information automatic synchronizations such as historical record are in the browser of new installation, thereby improve user's experience.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, to the schematic statement of above-mentioned term not must for be identical embodiment or example.And, specific features, structure, material or the feature of description can one or more embodiment in office or example in suitable mode combination.In addition,, not conflicting in the situation that, those skilled in the art can carry out combination and combination by the feature of the different embodiment that describe in this instructions or example and different embodiment or example.
In addition, term " first ", " second " be only for describing object, and can not be interpreted as instruction or hint relative importance or the implicit quantity that indicates indicated technical characterictic.Thus, at least one this feature can be expressed or impliedly be comprised to the feature that is limited with " first ", " second ".In description of the invention, the implication of " multiple " is at least two, for example two, and three etc., unless otherwise expressly limited specifically.
Any process of otherwise describing in process flow diagram or at this or method are described and can be understood to, represent to comprise that one or more is for realizing module, fragment or the part of code of executable instruction of step of specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by contrary order, carry out function, this should be understood by embodiments of the invention person of ordinary skill in the field.
The logic and/or the step that in process flow diagram, represent or otherwise describe at this, for example, can be considered to the sequencing list of the executable instruction for realizing logic function, may be embodied in any computer-readable medium, use for instruction execution system, device or equipment (as computer based system, comprise that the system of processor or other can and carry out the system of instruction from instruction execution system, device or equipment instruction fetch), or use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can comprise, device that storage, communication, propagation or transmission procedure use for instruction execution system, device or equipment or in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wirings, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), the erasable ROM (read-only memory) (EPROM or flash memory) of editing, fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other the suitable medium that can print described program thereon, because can be for example by paper or other media be carried out to optical scanning, then edit, decipher or process in electronics mode and obtain described program with other suitable methods if desired, be then stored in computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple steps or method can realize with being stored in software or the firmware carried out in storer and by suitable instruction execution system.For example, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: there is the discrete logic for data-signal being realized to the logic gates of logic function, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is can carry out the hardware that instruction is relevant by program to complete, described program can be stored in a kind of computer-readable recording medium, this program, in the time carrying out, comprises step of embodiment of the method one or a combination set of.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing module, can be also that the independent physics of unit exists, and also can be integrated in a module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.If described integrated module realizes and during as production marketing independently or use, also can be stored in a computer read/write memory medium using the form of software function module.
The above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.Although illustrated and described embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, amendment, replacement and modification.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.

Claims (13)

1. a method of data synchronization, is characterized in that, comprising:
From the buffer memory of the first browser, obtain first user recorded information;
Resolve described first user recorded information, obtain the record data of user in described the first browser;
According to the cache path of the second user record information of the second browser, the record data by described user in the first browser is stored in the file of the second user record information.
2. the method for claim 1, is characterized in that, the described first user recorded information of obtaining from the buffer memory of the first browser, comprising:
Installing in the process of the second browser, export prompting, whether authorized browse device data are synchronous for inquiry user;
If subscriber authorisation browser data is synchronous, obtain the cache path of the first user recorded information of the first browser;
According to the cache path of first user recorded information, from the buffer memory of the first browser, obtain described first user recorded information.
3. method as claimed in claim 2, is characterized in that, if described subscriber authorisation browser data is synchronous, obtains the cache path of the first user recorded information of the first browser, comprising:
If subscriber authorisation browser data is synchronous, judge whether the cache path of the first user recorded information of the first browser;
If have, obtain the cache path of the first user recorded information of described the first browser.
4. method as claimed in claim 2 or claim 3, is characterized in that, described according to the cache path of first user recorded information, obtains first user recorded information from the buffer memory of the first browser, comprising:
According to the cache path of first user recorded information, in the buffer memory of inquiry the first browser, whether there is first user recorded information;
If there is first user recorded information in the buffer memory of the first browser, from the buffer memory of the first browser, obtain first user recorded information.
5. method as claimed in claim 4, is characterized in that, if there is first user recorded information in the buffer memory of described the first browser, from the buffer memory of the first browser, obtains first user recorded information, comprising:
If there is first user recorded information in the buffer memory of the first browser, judge whether that authority obtains this first user recorded information from the buffer memory of the first browser;
If there is authority, from the buffer memory of the first browser, obtain this first user recorded information.
6. the method as described in claim 1 to 5 any one, is characterized in that, described parsing first user recorded information obtains the record data of user in the first browser, comprising:
Whether the file layout that judges first user recorded information can be identified;
If the file layout of first user recorded information can be identified, resolve first user recorded information, obtain the record data of user in the first browser;
If the file layout of first user recorded information can not be identified, first user recorded information is uploaded to server, to obtain the record data of user in the first browser by server parses first user recorded information;
The record data of the user that reception server returns in the first browser.
7. a data synchronization unit, is characterized in that, comprising:
Acquisition module, for obtaining first user recorded information from the buffer memory of the first browser;
Parsing module, the first user recorded information of obtaining for resolving described acquisition module, obtains the record data of user in the first browser;
Memory module, for according to the cache path of the second user record information of the second browser, resolves the record data of the described user who obtains in the first browser by described parsing module and is stored in the file of the second user record information.
8. device as claimed in claim 7, is characterized in that, described acquisition module comprises:
Output unit, for the process the second browser is installed, output prompting, whether authorized browse device data are synchronous for inquiry user;
The first acquiring unit, in the time that user is synchronous for described output unit authorized browse device data, obtains the cache path of the first user recorded information of the first browser;
Second acquisition unit for the cache path of the first user recorded information obtained according to described the first acquiring unit, obtains first user recorded information from the buffer memory of the first browser.
9. device as claimed in claim 8, is characterized in that, described the first acquiring unit comprises:
Judge submodule, in the time that user is synchronous for described output unit authorized browse device data, judge whether the cache path of the first user recorded information of the first browser;
First obtains submodule, in the described judged result that judges submodule for sometimes, obtain the cache path of the first user recorded information of described the first browser.
10. install as claimed in claim 8 or 9, it is characterized in that, described second acquisition unit comprises:
Whether inquiry submodule, for the cache path of the first user recorded information obtained according to described the first acquiring unit, have first user recorded information in the buffer memory of inquiry the first browser;
Second obtains submodule, while having first user recorded information, obtains first user recorded information from the buffer memory of the first browser for the buffer memory that is the first browser at the Query Result of described inquiry submodule.
11. devices as claimed in claim 10, is characterized in that, described second obtains submodule comprises:
Judgment sub-unit, while having first user recorded information, judges whether that authority obtains this first user recorded information from the buffer memory of the first browser for the buffer memory that is the first browser at the Query Result of described inquiry submodule;
Obtain subelement,, from the buffer memory of the first browser, obtain this first user recorded information for the judged result in described judgment sub-unit in limited time for having the right.
12. devices as described in claim 7 to 11 any one, is characterized in that, described parsing module comprises:
Whether judging unit, can identify for the file layout that judges the first user recorded information that described acquisition module obtains;
Resolution unit, can identify time, resolves first user recorded information for judge the file layout of first user recorded information at described judging unit, obtains the record data of user in the first browser;
Communication unit, for in the time that described judging unit is judged the file layout None-identified of first user recorded information, first user recorded information is uploaded to server, to obtain the record data of user in the first browser by server parses first user recorded information;
Described communication unit, the user who also returns for reception server is in the record data of the first browser.
13. 1 kinds of terminals, is characterized in that, comprise the device described in claim 7 to 12 any one.
CN201410394994.XA 2014-08-12 2014-08-12 A kind of method of data synchronization and device, terminal Active CN104182493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410394994.XA CN104182493B (en) 2014-08-12 2014-08-12 A kind of method of data synchronization and device, terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410394994.XA CN104182493B (en) 2014-08-12 2014-08-12 A kind of method of data synchronization and device, terminal

Publications (2)

Publication Number Publication Date
CN104182493A true CN104182493A (en) 2014-12-03
CN104182493B CN104182493B (en) 2019-01-18

Family

ID=51963532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410394994.XA Active CN104182493B (en) 2014-08-12 2014-08-12 A kind of method of data synchronization and device, terminal

Country Status (1)

Country Link
CN (1) CN104182493B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836655A (en) * 2015-04-27 2015-08-12 深圳市金立通信设备有限公司 Data synchronization method
CN106095883A (en) * 2016-06-03 2016-11-09 腾讯科技(深圳)有限公司 Import the method and device of browser data
CN106547800A (en) * 2015-09-23 2017-03-29 北京国双科技有限公司 The method and device of striding equipment synchronization user behavior
CN112905934A (en) * 2021-02-07 2021-06-04 龙芯中科(合肥)技术有限公司 Data import method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309291A (en) * 2008-05-30 2008-11-19 中兴通讯股份有限公司 Tool and method for terminal data maintenance
CN101764841A (en) * 2009-12-16 2010-06-30 中兴通讯股份有限公司 Method and device for synchronizing user data
CN101924779A (en) * 2009-06-15 2010-12-22 北京搜狗科技发展有限公司 Method equipment and system for sharing resources by browser clients
US20130110937A1 (en) * 2011-11-01 2013-05-02 Microsoft Corporation Real time document presentation data synchronization through generic service

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309291A (en) * 2008-05-30 2008-11-19 中兴通讯股份有限公司 Tool and method for terminal data maintenance
CN101924779A (en) * 2009-06-15 2010-12-22 北京搜狗科技发展有限公司 Method equipment and system for sharing resources by browser clients
CN101764841A (en) * 2009-12-16 2010-06-30 中兴通讯股份有限公司 Method and device for synchronizing user data
US20130110937A1 (en) * 2011-11-01 2013-05-02 Microsoft Corporation Real time document presentation data synchronization through generic service

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836655A (en) * 2015-04-27 2015-08-12 深圳市金立通信设备有限公司 Data synchronization method
CN104836655B (en) * 2015-04-27 2019-05-21 深圳市金立通信设备有限公司 A kind of method of data synchronization
CN106547800A (en) * 2015-09-23 2017-03-29 北京国双科技有限公司 The method and device of striding equipment synchronization user behavior
CN106095883A (en) * 2016-06-03 2016-11-09 腾讯科技(深圳)有限公司 Import the method and device of browser data
CN106095883B (en) * 2016-06-03 2021-01-15 腾讯科技(深圳)有限公司 Method and device for importing browser data
CN112905934A (en) * 2021-02-07 2021-06-04 龙芯中科(合肥)技术有限公司 Data import method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104182493B (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN103136342B (en) The searching method of application A PP, system and search server
CN104125206B (en) The hardware environment adaptation method of a kind of client, device, server and system
CN101656623B (en) Software installing method, sever and system
CN108255993A (en) Extract method, apparatus, electronic equipment and the storage medium of service fields
CN105279278A (en) File searching method and device
CN104866383A (en) Interface calling method and device and terminal
CN102810066A (en) Terminal adapting method and terminal and server based on terminal characteristic configuration program
CN103546505A (en) Method, system and device for displaying page blocks in priority order
CN104182493A (en) Data synchronization method and device as well as terminal
CN106302829A (en) A kind of information access method, device and server
CN104657201A (en) Method, device, equipment and system for pushing application program
CN103995845A (en) Information search method and device
CN103841464A (en) Video information pushing method and device
CN104965730A (en) Version upgrading method and system
CN105488200A (en) Webpage display method and device
CN105989118A (en) Software recommendation method and equipment
CN104021039A (en) Calling method for APP and browser
CN103927201A (en) Method and device for updating game files
CN104699744A (en) Information searching method and device
CN104219243A (en) Method and device for managing client function
US9542075B2 (en) Method and server for managing domain-specific toolbar button automatically
CN101888396B (en) Method for calling equipment capacity, micro technical equipment and server
CN104780153A (en) Method and device for filtering information
CN104954197A (en) Multitask transmission speed detection method and device
CN103491564A (en) Self-diagnostic method and system of mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant