A kind ofly use the method and apparatus that browser is shared resource
Technical field
The present invention relates to the internet, applications field, relate in particular to a kind of method and apparatus that browser is shared resource of using.
Background technology
Internet development at present is very rapid, and netizen's quantity is rising year by year, and people's Computer Mediated Communication circle also becomes the major way of people's contacts gradually.There have been joyful picture or useful file also to wish to share together with friend, but when finding in network process that a good picture or article are want to share with the good friend at present on using browser, generally all needing to login mailbox sends, or go again to share after login instant message client or other some application, so just very inconvenient, because needs switch in browser and other application programs back and forth, cause the system resource of not only losing time but also wasting equipment for surfing the net, the same people who accepts to share does not have good experience yet.
Summary of the invention
The object of the present invention is to provide a kind of method and apparatus that can fast share from the browser to the browser, thereby solve the foregoing problems that exists in prior art.
To achieve these goals, the technical solution used in the present invention is as follows:
A kind ofly use the method that browser is shared resource, comprise the following steps:
S1, server creates and safeguards the browser client list, preserve in described browser client list corresponding relation, the second browser client ID and second user's contacting identifiers of the first browser client ID and first user contacting identifiers corresponding relation ... the corresponding relation of N browser client ID and N user's contacting identifiers;
S2, described the first browser creates and safeguards good friend's address list, described good friend's address list be used for preserving second good friend's title and described the second browser client ID and second user's contacting identifiers corresponding relation ... the corresponding relation of N good friend title and described N browser client ID and N user's contacting identifiers.
S3 after described the first browser receives and shares instruction, judges whether preserve described the second browser client ID in described good friend's address list;
If preserve described the second browser client ID in described good friend's address list, will comprise and remain to be shared file and upload onto the server with the message that receives the second browser client ID that shares;
If not yet preserve described the second browser client ID in described good friend's address list, will comprise and remain to be shared file and upload onto the server with the message that receives second user's contacting identifiers of sharing; Described second user's contacting identifiers is user's contacting identifiers or the new user contacting identifiers corresponding with second good friend's title of inputting that has been kept in described good friend's address list.
Preferably, further comprising the steps of before S3:
Described the first browser is by the first browser client ID logon server;
Preferably, further comprising the steps of after S3:
Remain to be shared file and the message that receives the second browser client ID that shares if described server receives to comprise, give with file push described to be shared the second browser that signs in to server by the second browser client ID;
If receiving to comprise, described server remains to be shared file and the message that receives second user's contacting identifiers of sharing, retrieval obtains the second browser client ID corresponding with described second user's contacting identifiers in described browser client list, then gives with file push to be shared the second browser that signs in to server by the second browser client ID;
If do not retrieve the second browser client ID corresponding with described second user's contacting identifiers in described browser client list, send reminder message to described second user's contacting identifiers.
Preferably,
Described reminder message is used for reminding user installs described browser and with browser client ID login, receives and share file, logins other network applications receptions and shares file.
Preferably, described user's contacting identifiers comprises one or more in e-mail address, instant message address, phone number and microblogging address.
Preferably, file described to be shared comprises one or more in picture, video, audio frequency, text, network address and data file.
A kind ofly use the device that browser is shared resource, comprising:
Server, described server creates and safeguards the browser client list, preserve in described browser client list corresponding relation, the second browser client ID and second user's contacting identifiers of the first browser client ID and first user contacting identifiers corresponding relation ... the corresponding relation of N browser client ID and N user's contacting identifiers;
The first browser, described the first browser creates and safeguards good friend's address list, described good friend's address list be used for preserving second good friend's title and described the second browser client ID and second user's contacting identifiers corresponding relation ... the corresponding relation of N good friend title and described N browser client ID and N user's contacting identifiers;
After described the first browser receives and shares instruction, judge whether preserve described the second browser client ID in described good friend's address list
If preserve described the second browser client ID in described good friend's address list, will comprise and remain to be shared file and upload onto the server with the message that receives the second browser client ID that shares;
If not yet preserve described the second browser client ID in described good friend's address list, will comprise and remain to be shared file and upload onto the server with the message that receives second user's contacting identifiers of sharing; Described second user's contacting identifiers is user's contacting identifiers or the new user contacting identifiers corresponding with second good friend's title of inputting that has been kept in described good friend's address list.
The invention has the beneficial effects as follows:
After using application browser of the present invention and sharing the method and apparatus of resource, can make and directly fast share file between browser client, and need not to switch back and forth in various clients or between using, save user time, improve the experience degree of browser client.
Description of drawings
Fig. 1 is the flow chart of steps that application browser of the present invention is shared the method for resource;
Fig. 2 is the structural representation that application browser of the present invention is shared the device of resource.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing, the present invention is further elaborated.Should be appreciated that embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
As shown in Figure 1, the invention discloses the method that can fast share from the browser to the browser comprises the following steps:
S1, server creates and safeguards the browser client list, preserve in described browser client list corresponding relation, the second browser client ID and second user's contacting identifiers of the first browser client ID and first user contacting identifiers corresponding relation ... the corresponding relation of N browser client ID and N user's contacting identifiers;
S2, described the first browser creates and safeguards good friend's address list, described good friend's address list be used for preserving second good friend's title and described the second browser client ID and second user's contacting identifiers corresponding relation ... the corresponding relation of N good friend title and described N browser client ID and N user's contacting identifiers.
Described the first browser is by the first browser client ID logon server;
S3 after described the first browser receives and shares instruction, judges whether preserve described the second browser client ID in described good friend's address list;
If preserve described the second browser client ID in described good friend's address list, will comprise and remain to be shared file and upload onto the server with the message that receives the second browser client ID that shares;
If not yet preserve described the second browser client ID in described good friend's address list, will comprise and remain to be shared file and upload onto the server with the message that receives second user's contacting identifiers of sharing; Described second user's contacting identifiers is user's contacting identifiers or the new user contacting identifiers corresponding with second good friend's title of inputting that has been kept in described good friend's address list.
Remain to be shared file and the message that receives the second browser client ID that shares if described server receives to comprise, give with file push described to be shared the second browser that signs in to server by the second browser client ID;
If receiving to comprise, described server remains to be shared file and the message that receives second user's contacting identifiers of sharing, retrieval obtains the second browser client ID corresponding with described second user's contacting identifiers in described browser client list, then gives with file push to be shared the second browser that signs in to server by the second browser client ID;
If do not retrieve the second browser client ID corresponding with described second user's contacting identifiers in described browser client list, send reminder message to described second user's contacting identifiers.
Described reminder message is used for reminding user installs described browser and with browser client ID login, receives and share file, logins other network applications (such as mailbox etc.) and receives and share file.
Described user's contacting identifiers comprises one or more in e-mail address, instant message address, phone number and microblogging address.
File described to be shared comprises one or more in picture, video, audio frequency, text, network address and data file.
Can be the primitive network address (finding the address of these Internet resources when browsing) of a resource file when sharing, can be also to upload and be kept at the network address in server by the first browser.
As shown in Figure 2, the invention discloses a kind of device that browser is shared resource of using, comprising:
Server, described server creates and safeguards the browser client list, preserve in described browser client list corresponding relation, the second browser client ID and second user's contacting identifiers of the first browser client ID and first user contacting identifiers corresponding relation ... the corresponding relation of N browser client ID and N user's contacting identifiers;
The first browser, described the first browser creates and safeguards good friend's address list, described good friend's address list be used for preserving second good friend's title and described the second browser client ID and second user's contacting identifiers corresponding relation ... the corresponding relation of N good friend title and described N browser client ID and N user's contacting identifiers; After described the first browser receives and shares instruction, judge whether preserve described the second browser client ID in described good friend's address list
If preserve described the second browser client ID in described good friend's address list, will comprise and remain to be shared file and upload onto the server with the message that receives the second browser client ID that shares;
If not yet preserve described the second browser client ID in described good friend's address list, will comprise and remain to be shared file and upload onto the server with the message that receives second user's contacting identifiers of sharing; Described second user's contacting identifiers is user's contacting identifiers or the new user contacting identifiers corresponding with second good friend's title of inputting that has been kept in described good friend's address list.
By adopting technique scheme disclosed by the invention, obtained following useful effect:
After using application browser of the present invention and sharing the method and apparatus of resource, can make and directly fast share file between browser client, and need not to switch back and forth in various clients or between using, save user time, improve the experience degree of browser client.
The above is only the preferred embodiment of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be looked protection scope of the present invention.