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

Unified Diff: chrome/browser/sync/glue/sync_backend_host.h

Issue 9512005: [Sync] Move BridgedSyncNotifier and ChromeSyncNotificationBridge to glue/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 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
Index: chrome/browser/sync/glue/sync_backend_host.h
diff --git a/chrome/browser/sync/glue/sync_backend_host.h b/chrome/browser/sync/glue/sync_backend_host.h
index 0f24252808df5f85173b4fc1ef82344e706ab1a0..66f8a5d0a0abdc2326dd117324cab63109293433 100644
--- a/chrome/browser/sync/glue/sync_backend_host.h
+++ b/chrome/browser/sync/glue/sync_backend_host.h
@@ -17,6 +17,7 @@
#include "chrome/browser/sync/engine/model_safe_worker.h"
#include "chrome/browser/sync/glue/backend_data_type_configurer.h"
#include "chrome/browser/sync/glue/chrome_extensions_activity_monitor.h"
+#include "chrome/browser/sync/glue/chrome_sync_notification_bridge.h"
#include "chrome/browser/sync/internal_api/includes/report_unrecoverable_error_function.h"
#include "chrome/browser/sync/internal_api/includes/unrecoverable_error_handler.h"
#include "chrome/browser/sync/internal_api/configure_reason.h"
@@ -289,6 +290,7 @@ class SyncBackendHost : public BackendDataTypeConfigurer {
const GURL& service_url,
MakeHttpBridgeFactoryFn make_http_bridge_factory_fn,
const sync_api::SyncCredentials& credentials,
+ ChromeSyncNotificationBridge* chrome_sync_notification_bridge,
sync_notifier::SyncNotifierFactory* sync_notifier_factory,
bool delete_sync_data_folder,
const std::string& restored_key_for_bootstrapping,
@@ -305,6 +307,7 @@ class SyncBackendHost : public BackendDataTypeConfigurer {
// Overridden by tests.
MakeHttpBridgeFactoryFn make_http_bridge_factory_fn;
sync_api::SyncCredentials credentials;
+ ChromeSyncNotificationBridge* const chrome_sync_notification_bridge;
sync_notifier::SyncNotifierFactory* const sync_notifier_factory;
std::string lsid;
bool delete_sync_data_folder;
@@ -483,6 +486,10 @@ class SyncBackendHost : public BackendDataTypeConfigurer {
const base::WeakPtr<SyncPrefs> sync_prefs_;
+ // A thread-safe listener for handling notifications triggered by
+ // chrome events.
+ ChromeSyncNotificationBridge chrome_sync_notification_bridge_;
+
sync_notifier::SyncNotifierFactory sync_notifier_factory_;
ChromeExtensionsActivityMonitor extensions_activity_monitor_;
« no previous file with comments | « chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc ('k') | chrome/browser/sync/glue/sync_backend_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698