Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: chrome/browser/sync/notifier/p2p_notifier.h

Issue 6794005: Move sync notifier contruction out of syncer thread. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebase Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/notifier/p2p_notifier.h
diff --git a/chrome/browser/sync/notifier/p2p_notifier.h b/chrome/browser/sync/notifier/p2p_notifier.h
index 67bad4152fac18991b38bf2462895aeda82fb411..54cbf70867968e0305979b7b94019f818fd1ea03 100644
--- a/chrome/browser/sync/notifier/p2p_notifier.h
+++ b/chrome/browser/sync/notifier/p2p_notifier.h
@@ -16,6 +16,8 @@
#include "chrome/browser/sync/syncable/model_type.h"
#include "jingle/notifier/listener/talk_mediator.h"
+class MessageLoop;
+
namespace notifier {
struct NotifierOptions;
} // namespace
@@ -49,6 +51,7 @@ class P2PNotifier
// Call OnIncomingNotification() on observers if we have a non-empty
// set of enabled types.
void MaybeEmitNotification();
+ void CheckOrSetValidThread();
ObserverList<SyncNotifierObserver> observer_list_;
@@ -61,7 +64,9 @@ class P2PNotifier
bool notifications_enabled_;
syncable::ModelTypeSet enabled_types_;
+ MessageLoop* construction_message_loop_;
+ MessageLoop* method_message_loop_;
};
-}
+} // namespace sync_notifier
#endif // CHROME_BROWSER_SYNC_NOTIFIER_P2P_NOTIFIER_H_
« no previous file with comments | « chrome/browser/sync/notifier/non_blocking_invalidation_notifier.cc ('k') | chrome/browser/sync/notifier/p2p_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698