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

Unified Diff: sync/sessions/sync_session_context.h

Issue 152013003: Split up SyncEngineEventListener callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more forward declaration Created 6 years, 10 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
« no previous file with comments | « sync/sessions/sync_session.cc ('k') | sync/sync_core.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/sync_session_context.h
diff --git a/sync/sessions/sync_session_context.h b/sync/sessions/sync_session_context.h
index 6303de8bcac87bddc36e77aff9aaa640e8a98c23..f1afa7d53478fd80ac76a1add99d0087acb11974 100644
--- a/sync/sessions/sync_session_context.h
+++ b/sync/sessions/sync_session_context.h
@@ -18,7 +18,7 @@
#include <string>
#include "sync/base/sync_export.h"
-#include "sync/engine/sync_engine_event.h"
+#include "sync/engine/sync_engine_event_listener.h"
#include "sync/engine/traffic_recorder.h"
#include "sync/sessions/debug_info_getter.h"
#include "sync/sessions/model_type_registry.h"
@@ -94,9 +94,8 @@ class SYNC_EXPORT_PRIVATE SyncSessionContext {
}
int32 max_commit_batch_size() const { return max_commit_batch_size_; }
- void NotifyListeners(const SyncEngineEvent& event) {
- FOR_EACH_OBSERVER(SyncEngineEventListener, listeners_,
- OnSyncEngineEvent(event));
+ ObserverList<SyncEngineEventListener>* listeners() {
+ return &listeners_;
}
TrafficRecorder* traffic_recorder() {
« no previous file with comments | « sync/sessions/sync_session.cc ('k') | sync/sync_core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698