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

Unified Diff: components/sync/driver/glue/sync_backend_host_impl.h

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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: components/sync/driver/glue/sync_backend_host_impl.h
diff --git a/components/sync/driver/glue/sync_backend_host_impl.h b/components/sync/driver/glue/sync_backend_host_impl.h
index 613c573e57cf2e6be67e6778776b0b8366fa17dc..fb24aeb55ffaaee485981ad782e92e6d8402cd0d 100644
--- a/components/sync/driver/glue/sync_backend_host_impl.h
+++ b/components/sync/driver/glue/sync_backend_host_impl.h
@@ -75,7 +75,7 @@ class SyncBackendHostImpl : public SyncBackendHost, public InvalidationHandler {
// SyncBackendHost implementation.
void Initialize(
SyncFrontend* frontend,
- std::unique_ptr<base::Thread> sync_thread,
+ base::Thread* sync_thread,
const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
const scoped_refptr<base::SingleThreadTaskRunner>& file_thread,
const WeakHandle<JsEventHandler>& event_handler,
@@ -99,7 +99,7 @@ class SyncBackendHostImpl : public SyncBackendHost, public InvalidationHandler {
bool SetDecryptionPassphrase(const std::string& passphrase) override
WARN_UNUSED_RESULT;
void StopSyncingForShutdown() override;
- std::unique_ptr<base::Thread> Shutdown(ShutdownReason reason) override;
+ void Shutdown(ShutdownReason reason) override;
void UnregisterInvalidationIds() override;
ModelTypeSet ConfigureDataTypes(
ConfigureReason reason,
@@ -128,7 +128,6 @@ class SyncBackendHostImpl : public SyncBackendHost, public InvalidationHandler {
void DisableProtocolEventForwarding() override;
void EnableDirectoryTypeDebugInfoForwarding() override;
void DisableDirectoryTypeDebugInfoForwarding() override;
- base::MessageLoop* GetSyncLoopForTesting() override;
void RefreshTypesForTest(ModelTypeSet types) override;
void ClearServerData(
const SyncManager::ClearServerDataCallback& callback) override;
@@ -301,6 +300,9 @@ class SyncBackendHostImpl : public SyncBackendHost, public InvalidationHandler {
SyncClient* const sync_client_;
+ // A pointer to the sync thread.
+ base::Thread* sync_thread_;
+
// The UI thread's task runner.
const scoped_refptr<base::SingleThreadTaskRunner> ui_thread_;
« no previous file with comments | « components/sync/driver/glue/sync_backend_host.h ('k') | components/sync/driver/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698