CN103345483A - Browser communication method and device - Google Patents

Browser communication method and device Download PDF

Info

Publication number
CN103345483A
CN103345483A CN2013102464415A CN201310246441A CN103345483A CN 103345483 A CN103345483 A CN 103345483A CN 2013102464415 A CN2013102464415 A CN 2013102464415A CN 201310246441 A CN201310246441 A CN 201310246441A CN 103345483 A CN103345483 A CN 103345483A
Authority
CN
China
Prior art keywords
browser
application requests
described application
request
legal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013102464415A
Other languages
Chinese (zh)
Inventor
康明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Coship Electronics Co Ltd
Original Assignee
Shenzhen Coship Electronics 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 Shenzhen Coship Electronics Co Ltd filed Critical Shenzhen Coship Electronics Co Ltd
Priority to CN2013102464415A priority Critical patent/CN103345483A/en
Publication of CN103345483A publication Critical patent/CN103345483A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a browser communication method. The method includes the steps that a browser acquires an application program request through an acquisition module; the browser executes the application program request through an executing module according to the application program request; the browser returns the result of the application program request to an application program. The invention further discloses a browser communication device. The state of a terminal browser can be acquired by other application programs, other terminals and servers, and other application programs, other terminals and servers can operate the browser.

Description

A kind of browser communication means and device
Technical field
The present invention relates to a kind of communications field, relate in particular to a kind of browser communication means and device.
Background technology
The similar Windows operating system of prior art, for application program provides API, default browser that can the opening operation system, and the page address that can specify browser to open.
After browser starts by this kind method and former application program as separate process, move in operating system, can not obtain the other side's state each other, can not send instruction to the other side; Former application program is want browser is done operation, and such as allowing the current tab page or leaf of browser open a new link, prior art can't be accomplished.
Simultaneously, existing browser is after a station terminal starts, and browser is without any relation on the application program on another terminal and this terminal; Equally, server also can't obtain the state of browser on this terminal.The state of browser on another terminal can be obtained on one station terminal without any method, the behavior of browser on another station terminal can't be operated; Server has no idea to obtain the state of terminal browser, the behavior of the operating terminal browser of having no idea.
Summary of the invention
Embodiment of the invention technical matters to be solved is, a kind of browser communication means and device are provided.Can make other application programs, other-end and server can obtain the state of this terminal browser, and can operate this browser.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of browser communication means, comprising:
Browser obtains application requests;
Browser is carried out described application requests according to described application requests;
The result that browser will be carried out described application requests returns to described application program.
Further, described browser also comprises before carrying out described application requests according to described application requests:
Browser judges whether described application requests is legal, as legal, then carry out according to described application requests and carries out the described request step.
Further, described browser judges whether described application requests is legal, as legal, then carries out according to comprising before the described application requests execution described request step:
The described application requests of obtaining of browser resolves.
Further, the operation place terminal of described browser comprises: mobile phone, set-top box, computer.
Further, described browser obtains application requests and comprises:
Application program on application program, browser plug-in or the exterior terminal of the operation place terminal of browser is obtained application requests.
A kind of browser communicator, wherein:
Acquisition module is used for obtaining application requests;
Execution module is used for carrying out described request according to described application requests;
Return module, return to described application program for the result that will carry out described application requests.
Further, also comprise:
Judge module is used for judging whether described application requests is legal, as legal, then carries out the step of carrying out described application requests according to described application requests by execution module.
Further, also comprise:
Parsing module is used for resolving the described application requests of obtaining.
Further, the operation place terminal of described browser comprises: mobile phone, set-top box, computer.
Further, described acquisition module obtains application requests and comprises:
Obtain application requests by the application program on application program, browser plug-in or the exterior terminal of the operation place terminal of browser.
Implement the embodiment of the invention by obtaining application requests, and carry out described application requests according to described application requests, can make other application programs, other-end and server can obtain the state of this terminal browser, and can operate this browser.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the first embodiment process flow diagram of a kind of browser communication means of the present invention;
Fig. 2 is the second embodiment process flow diagram of a kind of browser communication means of the present invention;
Fig. 3 is the embodiment process flow diagram of a kind of browser communicator of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The first embodiment flow process of browser communication means of the present invention comprises as shown in Figure 1:
Step 101: browser obtains application requests.The operation place terminal of browser comprises: mobile phone, set-top box, computer.The application requests here can be the request of Another application program on this terminal, it also can be the request of the application program moved on another station terminal, application requests can also be the request of server, state when server wants acquisition terminal browser can send request to the browser of terminal.For example, operation navigation map software on the mobile phone, in Beijing, inquire about tourist attractions, after inquiring sight spots such as Great Wall, the Summer Palace, the Forbidden City, the Ming Tombs, the Temple of Heaven, navigation map software sends the request of these sight spot specifying informations of inquiry to browser, and browser gets access to the request of the specifying information of Great Wall, inquiry sight spot that the navigation application program map software sends, the Summer Palace, the Forbidden City, the Ming Tombs, the Temple of Heaven etc.Again for example, in mobile phone, move application software, need be at Baidu's map inquiry Beijing the Temple of Heaven, mobile phone is sent in the request of Baidu's map inquiry Beijing the Temple of Heaven to set-top box, and set box browser obtains the request at Baidu's map inquiry Beijing the Temple of Heaven that application program of mobile phone sends.
Step 102: browser is carried out described application requests according to described application requests.For example, set box browser obtain that application program of mobile phone sends after the request of Baidu's map inquiry Beijing the Temple of Heaven, open Baidu's map inquiry Beijing the Temple of Heaven.
Step 103: the result that browser will be carried out described application requests returns to described application program.Execution result is returned to application program, in concrete the enforcement, can be for inquiring about the current state of the browser that obtains, as the current URL that is in active state, buffer memory residue situations etc. also can be for operating the result who obtains, as the result by the google search inquiry to browser.For example, the result who inquires about Great Wall, the Summer Palace, the Forbidden City, the Ming Tombs, the Temple of Heaven etc. is returned to navigation map software, navigation map software can show the specifying information at sight spot when showing the map location information of same at these sight spots.Again for example, set box browser returns to application program of mobile phone with the result of Baidu's map inquiry Beijing the Temple of Heaven.
The embodiment of the invention is by obtaining application requests, and carry out described application requests according to described application requests, can make other application programs, other-end and server can obtain the state of this terminal browser, and can operate this browser.
The second embodiment flow process of browser communication means of the present invention is as shown in Figure 2:
Step 201: browser obtains application requests.This step is introduced in last embodiment, repeats no more here.
Step 202: the described application requests of obtaining of browser resolves.By resolving the described application requests of obtaining, obtain request, the request of another station terminal or the request of server that described application requests derives from another program.For example, set box browser is resolved the described application requests of obtaining, and by resolving the described application requests of obtaining, obtaining described application requests is the request that derives from another station terminal.
Step 203: browser judges whether described application requests is legal.Judge application requests, the user can carry out the legitimacy setting according to self-demand, all requests all legal (comprising the request of another program, the request of another station terminal, the request of server) can be set, it is legal also can part to be set, as the request that another program is set is legal, the request of another station terminal and the request of server are illegal, and this moment, the source then was judged as illegally with the request of another station terminal.As judge that application requests is illegal, directly return the status code of a mistake of application program.Browser is judged the legitimacy of this request according to setting in advance of user, for example, the user to set in advance the source legal with the request of another program of this terminal, it is legal to judge that then navigation map software sends to the request of browser.Again for example, user's the request that sets in advance source and another terminal is legal, and set box browser judges that the request that derives from application program of mobile phone is legal.
Step 204: judge that as browser application requests is legal, then carry out described request according to described application requests.Can carry out legitimacy when arranging according to self-demand when the legitimacy of judging application requests meets the user, carry out described request.Browser is according to user's the legitimacy of judging this request that sets in advance, for example, user's the request that sets in advance source and another program of this terminal is legal, judge that then this request is legal, and carry out described request according to the request of the specifying information of inquiry Great Wall, sight spot, the Summer Palace, the Forbidden City, the Ming Tombs, the Temple of Heaven etc., namely open the specifying information of google inquiry Great Wall, the Summer Palace, the Forbidden City, the Ming Tombs, the Temple of Heaven etc.Again for example, user's the request that sets in advance source and another terminal is legal, and set box browser judges that the request that derives from application program of mobile phone is legal, and opens Baidu's map inquiry Beijing the Temple of Heaven.
Step 205: the result that browser will be carried out described application requests returns to described application program.Execution result is returned to application program, in concrete the enforcement, can be for inquiring about the current state of the browser that obtains, as the current URL that is in active state, buffer memory residue situations etc. also can be for operating the result who obtains, as the result by the google search inquiry to browser.For example, the result who inquires about Great Wall, the Summer Palace, the Forbidden City, the Ming Tombs, the Temple of Heaven etc. is returned to navigation map software, navigation map software can show the specifying information at sight spot when showing the map location information of same at these sight spots.Again for example, set box browser returns to application program of mobile phone with the result of Baidu's map inquiry Beijing the Temple of Heaven.
The embodiment of the invention is by obtaining application requests, and carry out described application requests according to described application requests, described execution result is returned to application program, can make other application programs, other-end and server can obtain the state of this terminal browser, and can operate this browser.
Corresponding with the embodiment of browser communication means of the present invention, the present invention also provides browser communicator embodiment.
The embodiment block diagram of browser communicator of the present invention as shown in Figure 3, described browser comprises acquisition module 310, execution module 320 and returns module 330, wherein:
Acquisition module 310 is used for obtaining application requests.Browser comprises acquisition module 310 and execution module 320, and described acquisition module and execution module are the function sub-modules in the browser, and their life cycle all is to create with the establishment of browser, and the life cycle that browser has cut out them also finishes.The application requests here can be the request of Another application program on this terminal, it also can be the request of the application program moved on another station terminal, application requests can also be the request of server, state when server wants acquisition terminal browser can send request to the browser of terminal.For example, operation navigation map software on the mobile phone, in Beijing, inquire about tourist attractions, after inquiring sight spots such as Great Wall, the Summer Palace, the Forbidden City, the Ming Tombs, the Temple of Heaven, navigation map software sends the request of these sight spot specifying informations of inquiry to browser, and acquisition module 310 gets access to the request of the specifying information of Great Wall, inquiry sight spot that the navigation application program map software sends, the Summer Palace, the Forbidden City, the Ming Tombs, the Temple of Heaven etc.Again for example, in mobile phone, move application software, need be at Baidu's map inquiry Beijing the Temple of Heaven, mobile phone is sent in the request of Baidu's map inquiry Beijing the Temple of Heaven to set-top box, and acquisition module 310 obtains the request at Baidu's map inquiry Beijing the Temple of Heaven that application program of mobile phone sends.
Execution module 320 is used for carrying out described request according to described application requests.The current state of browser can be managed and obtain to execution module 320, as the current URL that is in active state, buffer memory residue situation etc., execution module 320 can also be done corresponding operating to browser, as create a web page or leaf, open the URL address of appointment etc. at specific page.For example, set box browser obtain that application program of mobile phone sends after the request of Baidu's map inquiry Beijing the Temple of Heaven, execution module 320 is opened Baidu's map inquiry Beijing the Temple of Heaven.
Return module 330, return to described application program for the result that will carry out described application requests.Return module 340 execution result is returned to application program, in concrete the enforcement, can be for inquiring about the current state of the browser that obtains, as the current URL that is in active state, buffer memory residue situation etc., also can be for browser being operated the result who obtains, as the result by the google search inquiry.For example, return module 340 and will inquire about the result of Great Wall, the Summer Palace, the Forbidden City, the Ming Tombs, the Temple of Heaven etc. and return to navigation map software, navigation map software can show the specifying information at sight spot when showing the map location information of same at these sight spots.。Again for example, return module 330 result of Baidu's map inquiry Beijing the Temple of Heaven is returned to application program of mobile phone.
Returning module 330 and acquisition module 310 all has been and the external application communication role, in concrete the enforcement, can be present in the total software module.
Optionally, the browser communicator further can also comprise with lower module:
Parsing module 340 is used for resolving the described application requests of obtaining.Parsing module 330 obtains request, the request of another station terminal or the request of server that described application requests derives from another program by resolving the described application requests of obtaining.For example, the request of the specifying information of the Great Wall, inquiry sight spot that the navigation application program map software that parsing module 340 parsings get access to sends, the Summer Palace, the Forbidden City, the Ming Tombs, the Temple of Heaven etc., obtaining described application requests is the request that derives from another program.Again for example, set box browser is resolved the described application requests of obtaining, and parsing module 340 is by resolving the described application requests of obtaining, and obtaining described application requests is the request that derives from another station terminal.
Judge module 350 is used for judging whether described application requests is legal, as legal, then carries out the step of carrying out described application requests according to described application requests by execution module.Judge module 330 is judged the legitimacy of application requests, the user can carry out the legitimacy setting according to self-demand, all requests all legal (comprising the request of another program, the request of another station terminal, the request of server) can be set, it is legal also can part to be set, as the request that another program is set is legal, the request of another station terminal and the request of server are illegal, and this moment, the source then was judged as illegally with the request of another station terminal.As judge that application requests is illegal, directly return the status code of a mistake of application program.Judge module 330 is judged the legitimacy of this request according to setting in advance of user, for example, the user to set in advance the source legal with the request of another program of this terminal, it is legal to judge that then navigation map software sends to the request of browser.Again for example, user's the request that sets in advance source and another terminal is legal, and judge module 350 judges that the request that derives from application program of mobile phone is legal, and opens Baidu's map inquiry Beijing the Temple of Heaven.
The embodiment of the invention is by obtaining application requests, and carry out described application requests according to described application requests, described execution result is returned to application program, can make other application programs, other-end and server can obtain the state of this terminal browser, and can operate this browser.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosed is preferred embodiment of the present invention only, can not limit the present invention's interest field certainly with this, and therefore the equivalent variations of doing according to claim of the present invention still belongs to the scope that the present invention is contained.

Claims (10)

1. a browser communication means is characterized in that, comprising:
Browser obtains application requests;
Browser is carried out described application requests according to described application requests;
The result that browser will be carried out described application requests returns to described application program.
2. method according to claim 1 is characterized in that, described browser also comprises before carrying out described application requests according to described application requests:
Browser judges whether described application requests is legal, as legal, then carry out according to described application requests and carries out the described request step.
3. method according to claim 2 is characterized in that, described browser judges whether described application requests is legal, as legal, then carries out according to comprising before the described application requests execution described request step:
The described application requests of obtaining of browser resolves.
4. method according to claim 1 is characterized in that, the operation place terminal of described browser comprises: mobile phone, set-top box, computer.
5. method according to claim 1 is characterized in that, described browser obtains application requests and comprises:
Application program on application program, browser plug-in or the exterior terminal of the operation place terminal of browser is obtained application requests.
6. a browser communicator is characterized in that, wherein:
Acquisition module is used for obtaining application requests;
Execution module is used for carrying out described request according to described application requests;
Return module, return to described application program for the result that will carry out described application requests.
7. device according to claim 6 is characterized in that, also comprises:
Judge module is used for judging whether described application requests is legal, as legal, then carries out the step of carrying out described application requests according to described application requests by execution module.
8. device according to claim 6 is characterized in that, also comprises:
Parsing module is used for resolving the described application requests of obtaining.
9. device according to claim 6 is characterized in that, the operation place terminal of described browser comprises: mobile phone, set-top box, computer.
10. device according to claim 6 is characterized in that,
Described acquisition module obtains application requests and comprises:
Obtain application requests by the application program on application program, browser plug-in or the exterior terminal of the operation place terminal of browser.
CN2013102464415A 2013-06-20 2013-06-20 Browser communication method and device Pending CN103345483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013102464415A CN103345483A (en) 2013-06-20 2013-06-20 Browser communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013102464415A CN103345483A (en) 2013-06-20 2013-06-20 Browser communication method and device

Publications (1)

Publication Number Publication Date
CN103345483A true CN103345483A (en) 2013-10-09

Family

ID=49280278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013102464415A Pending CN103345483A (en) 2013-06-20 2013-06-20 Browser communication method and device

Country Status (1)

Country Link
CN (1) CN103345483A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101320377A (en) * 2007-06-05 2008-12-10 株式会社日立制作所 Web application configuration method and system
CN101441628A (en) * 2007-11-19 2009-05-27 上海新纳广告传媒有限公司 Intelligent client terminal website system based on desktop application program
US20110228763A1 (en) * 2010-03-17 2011-09-22 Samsung Electronics Co., Ltd. Method and apparatus for accessing services of a device
CN102685303A (en) * 2011-03-09 2012-09-19 腾讯科技(深圳)有限公司 Communication method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101320377A (en) * 2007-06-05 2008-12-10 株式会社日立制作所 Web application configuration method and system
CN101441628A (en) * 2007-11-19 2009-05-27 上海新纳广告传媒有限公司 Intelligent client terminal website system based on desktop application program
US20110228763A1 (en) * 2010-03-17 2011-09-22 Samsung Electronics Co., Ltd. Method and apparatus for accessing services of a device
CN102685303A (en) * 2011-03-09 2012-09-19 腾讯科技(深圳)有限公司 Communication method and device

Similar Documents

Publication Publication Date Title
WO2016173348A1 (en) Network access method and mobile communications terminal
CN103888358A (en) Routing method, device, system and gateway equipment
CN103607427A (en) Method and device for information display
US9585022B2 (en) Profile integration management
CN102917346A (en) Security policy management system and method for Android-based application program during operation
CN104471917A (en) Application information sharing method and device
CN103347258A (en) Downloading method, system and server of application program and terminal equipment
WO2016173349A1 (en) Network access method and mobile communications terminal
CN104767767A (en) Method, device and system for sharing Internet access data and network equipment
US9549325B2 (en) System and method for controlling security of beacon and control device thereof
CN104995902A (en) Methods and systems for seamless network communication between IPV4 and IPV6 devices
CN104469982A (en) Data connection control method based on USIM card and USIM card
CN105787091A (en) Content publishing system and method supporting multiple terminals
CN104951466A (en) POI information search method, device and system and related equipment
CN108207012B (en) Flow control method, device, terminal and system
CN104936167A (en) Card writing method, system and equipment
CN104267921A (en) Page display control method and server
CN103176800A (en) Application program login method and device
CN107708064B (en) Method and system for positioning mobile phone by vehicle-mounted equipment
CN102685220A (en) Method and system for data interaction based on WEB page
CN105743891A (en) Networking method and device, server and router
CN107105425B (en) Network access method and network access device
CN103345483A (en) Browser communication method and device
CN104123140A (en) Method and device for managing application programs of mobile terminal
CN105743939A (en) Message push method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131009