A kind of method and apparatus applied browser and share resource
Technical field
The present invention relates to internet, applications field, particularly relate to a kind of method and apparatus applied browser and share resource.
Background technology
The development of current internet is very rapid, and netizen's quantity is rising year by year, and the Computer Mediated Communication circle of people also becomes the major way of people's contacts gradually.Joyful picture or useful file has been had also to wish to share together with friend, when but the picture that in network process, discovery one is good on use browser at present or article are want to share with good friend, general all needs logs in mailbox transmission, or go again to share after logging in instant message client or other some application, so just very inconvenient, because needs switch back and forth in browser and other application programs, cause the system resource of not only losing time but also wasting equipment for surfing the net, the people accepting equally 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 fast can shared from browser to browser, thus solve the foregoing problems existed in prior art.
To achieve these goals, the technical solution used in the present invention is as follows:
Apply the method that resource shared by browser, comprise the following steps:
S1, server creates and safeguards browser client list, preserves the corresponding relation of the first browser client ID and first user contacting identifiers, the second browser client ID and corresponding relation ... the N browser client ID of second user's contacting identifiers and the corresponding relation of N user's contacting identifiers in described browser client list;
S2, described first browser creates and safeguards good friend's address list, and described good friend's address list is for preserving second good friend's title and described second browser client ID and corresponding relation ... N good friend's title of second user's contacting identifiers and the corresponding relation of described N browser client ID and N user's contacting identifiers.
S3, after described first browser receives and shares instruction, judges whether preserve described second browser client ID in described good friend's address list;
If preserve described second browser client ID in described good friend's address list, then upload onto the server comprising the message needing to be shared the second browser client ID that file is shared with reception;
If not yet preserve described second browser client ID in described good friend's address list, then upload onto the server comprising the message needing to be shared second user's contacting identifiers that file is shared with reception; Described second user's contacting identifiers is the user's contacting identifiers be kept in described good friend's address list or the user contacting identifiers corresponding with second good friend's title newly inputted.
Preferably, further comprising the steps of before S3:
Described first browser is by the first browser client ID logon server;
Preferably, further comprising the steps of after S3:
If described server receives to comprise and needs to share file and the message receiving the second browser client ID shared, then file push described to be shared is given the second browser being signed in server by the second browser client ID;
If described server receives to comprise and needs to share file and the message receiving the second user's contacting identifiers shared, then in described browser client list, retrieval obtains the second browser client ID corresponding with described second user's contacting identifiers, then file push to be shared is given the second browser being signed in 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, then send reminder message to described second user's contacting identifiers.
Preferably,
Described reminder message is used for reminding user and installs described browser and log in browser client ID, receives and shares file, logs in other network applications reception 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, described in, file to be shared comprises one or more in picture, video, audio frequency, text, network address and data file.
Apply the device that resource shared by browser, comprising:
Server, described server creates and safeguards browser client list, preserves the corresponding relation of the first browser client ID and first user contacting identifiers, the second browser client ID and corresponding relation ... the N browser client ID of second user's contacting identifiers and the corresponding relation of N user's contacting identifiers in described browser client list;
First browser, described first browser creates and safeguards good friend's address list, and described good friend's address list is for preserving second good friend's title and described second browser client ID and corresponding relation ... N good friend's title of second user's contacting identifiers and the corresponding relation of described N browser client ID and N user's contacting identifiers;
After described first browser receives and shares instruction, judge in described good friend's address list, whether to preserve described second browser client ID
If preserve described second browser client ID in described good friend's address list, then upload onto the server comprising the message needing to be shared the second browser client ID that file is shared with reception;
If not yet preserve described second browser client ID in described good friend's address list, then upload onto the server comprising the message needing to be shared second user's contacting identifiers that file is shared with reception; Described second user's contacting identifiers is the user's contacting identifiers be kept in described good friend's address list or the user contacting identifiers corresponding with second good friend's title newly inputted.
The invention has the beneficial effects as follows:
Apply after application browser of the present invention shares the method and apparatus of resource, can make directly fast to share file between browser client, and without the need to switching back and forth between various client or application, save user time, improve the experience degree of browser client.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps that the method for resource shared by application browser of the present invention;
Fig. 2 is the structural representation that the device of resource shared by application browser of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, 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, be not intended to limit the present invention.
As shown in Figure 1, the invention discloses the method fast can shared from browser to browser to comprise the following steps:
S1, server creates and safeguards browser client list, preserves the corresponding relation of the first browser client ID and first user contacting identifiers, the second browser client ID and corresponding relation ... the N browser client ID of second user's contacting identifiers and the corresponding relation of N user's contacting identifiers in described browser client list;
S2, described first browser creates and safeguards good friend's address list, and described good friend's address list is for preserving second good friend's title and described second browser client ID and corresponding relation ... N good friend's title of second user's contacting identifiers and the corresponding relation of described N browser client ID and N user's contacting identifiers.
Described first browser is by the first browser client ID logon server;
S3, after described first browser receives and shares instruction, judges whether preserve described second browser client ID in described good friend's address list;
If preserve described second browser client ID in described good friend's address list, then upload onto the server comprising the message needing to be shared the second browser client ID that file is shared with reception;
If not yet preserve described second browser client ID in described good friend's address list, then upload onto the server comprising the message needing to be shared second user's contacting identifiers that file is shared with reception; Described second user's contacting identifiers is the user's contacting identifiers be kept in described good friend's address list or the user contacting identifiers corresponding with second good friend's title newly inputted.
If described server receives to comprise and needs to share file and the message receiving the second browser client ID shared, then file push described to be shared is given the second browser being signed in server by the second browser client ID;
If described server receives to comprise and needs to share file and the message receiving the second user's contacting identifiers shared, then in described browser client list, retrieval obtains the second browser client ID corresponding with described second user's contacting identifiers, then file push to be shared is given the second browser being signed in 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, then send reminder message to described second user's contacting identifiers.
Described reminder message is used for reminding user and installs described browser and log in browser client ID, receives and shares file, logs in other network applications (such as mailbox etc.) reception and shares 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 origin network address (finding the address of these Internet resources when browsing) of a resource file when sharing, also can be uploaded by the first browser and preserve the network address in the server.
As shown in Figure 2, the invention discloses a kind of device applied browser and share resource, comprising:
Server, described server creates and safeguards browser client list, preserves the corresponding relation of the first browser client ID and first user contacting identifiers, the second browser client ID and corresponding relation ... the N browser client ID of second user's contacting identifiers and the corresponding relation of N user's contacting identifiers in described browser client list;
First browser, described first browser creates and safeguards good friend's address list, and described good friend's address list is for preserving second good friend's title and described second browser client ID and corresponding relation ... N good friend's title of second user's contacting identifiers and the corresponding relation of described N browser client ID and N user's contacting identifiers; After described first browser receives and shares instruction, judge in described good friend's address list, whether to preserve described second browser client ID
If preserve described second browser client ID in described good friend's address list, then upload onto the server comprising the message needing to be shared the second browser client ID that file is shared with reception;
If not yet preserve described second browser client ID in described good friend's address list, then upload onto the server comprising the message needing to be shared second user's contacting identifiers that file is shared with reception; Described second user's contacting identifiers is the user's contacting identifiers be kept in described good friend's address list or the user contacting identifiers corresponding with second good friend's title newly inputted.
By adopting technique scheme disclosed by the invention, obtain effect useful as follows:
Apply after application browser of the present invention shares the method and apparatus of resource, can make directly fast to share file between browser client, and without the need to switching back and forth between various client or application, save user time, improve the experience degree of browser client.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should look protection scope of the present invention.