summaryrefslogtreecommitdiffstats
path: root/jingle
diff options
context:
space:
mode:
authorlipalani@chromium.org <lipalani@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 01:44:45 +0000
committerlipalani@chromium.org <lipalani@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 01:44:45 +0000
commit58d1666040e4750a0d5662d35b44ab22c891c57c (patch)
tree97f884e5e0396f8cde5e4792a147c2b95a3e8285 /jingle
parent487d1730d922bf933e332b997fda6796c3b0da5b (diff)
downloadchromium_src-58d1666040e4750a0d5662d35b44ab22c891c57c.zip
chromium_src-58d1666040e4750a0d5662d35b44ab22c891c57c.tar.gz
chromium_src-58d1666040e4750a0d5662d35b44ab22c891c57c.tar.bz2
Currently chrome sync subscribes to notifications on all datatypes regardless whether they are synced or not.
This change list fixes that by subscribing to syncing datatypes only. Implementation: Whenever the data type are chosen by the user the syncapi is informed of the change by |data_type_manager_impl| class(in the UI thread). Syncapi then notifies the |server_notifier_thread| by means of a new API, on the sync core thread. |server_notifier_thread| then performs the work of notifying the tango servers on its worker thread. BUG=69477 TEST= Review URL: http://codereview.chromium.org/6362006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75048 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'jingle')
-rw-r--r--jingle/notifier/listener/talk_mediator_impl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/jingle/notifier/listener/talk_mediator_impl.h b/jingle/notifier/listener/talk_mediator_impl.h
index 68b80cf..7af2721 100644
--- a/jingle/notifier/listener/talk_mediator_impl.h
+++ b/jingle/notifier/listener/talk_mediator_impl.h
@@ -24,7 +24,10 @@ namespace notifier {
class TalkMediatorImpl
: public TalkMediator, public MediatorThread::Observer {
public:
- // Takes ownership of |mediator_thread|.
+ // Takes ownership of |mediator_thread|. It is guaranteed that
+ // |mediator_thread| is destroyed only when this object is destroyed.
+ // This means that you can store a pointer to mediator_thread separately
+ // and use it until this object is destroyed.
TalkMediatorImpl(
MediatorThread* mediator_thread, bool invalidate_xmpp_auth_token,
bool allow_insecure_connection);