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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_impl.h

Issue 566623003: Refactor syncable DEVICE_INFO type from ChangeProcessor to SyncableService - part 3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More CR feedback addressed in DeviceInfoSyncService. Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 namespace sync_driver { 50 namespace sync_driver {
51 class SyncPrefs; 51 class SyncPrefs;
52 } 52 }
53 53
54 namespace browser_sync { 54 namespace browser_sync {
55 55
56 class ChangeProcessor; 56 class ChangeProcessor;
57 class SyncBackendHostCore; 57 class SyncBackendHostCore;
58 class SyncBackendRegistrar; 58 class SyncBackendRegistrar;
59 class SyncedDeviceTracker;
60 struct DoInitializeOptions; 59 struct DoInitializeOptions;
61 60
62 // The only real implementation of the SyncBackendHost. See that interface's 61 // The only real implementation of the SyncBackendHost. See that interface's
63 // definition for documentation of public methods. 62 // definition for documentation of public methods.
64 class SyncBackendHostImpl 63 class SyncBackendHostImpl
65 : public SyncBackendHost, 64 : public SyncBackendHost,
66 public content::NotificationObserver, 65 public content::NotificationObserver,
67 public syncer::InvalidationHandler { 66 public syncer::InvalidationHandler {
68 public: 67 public:
69 typedef syncer::SyncStatus Status; 68 typedef syncer::SyncStatus Status;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 virtual syncer::sessions::SyncSessionSnapshot 120 virtual syncer::sessions::SyncSessionSnapshot
122 GetLastSessionSnapshot() const OVERRIDE; 121 GetLastSessionSnapshot() const OVERRIDE;
123 virtual bool HasUnsyncedItems() const OVERRIDE; 122 virtual bool HasUnsyncedItems() const OVERRIDE;
124 virtual bool IsNigoriEnabled() const OVERRIDE; 123 virtual bool IsNigoriEnabled() const OVERRIDE;
125 virtual syncer::PassphraseType GetPassphraseType() const OVERRIDE; 124 virtual syncer::PassphraseType GetPassphraseType() const OVERRIDE;
126 virtual base::Time GetExplicitPassphraseTime() const OVERRIDE; 125 virtual base::Time GetExplicitPassphraseTime() const OVERRIDE;
127 virtual bool IsCryptographerReady( 126 virtual bool IsCryptographerReady(
128 const syncer::BaseTransaction* trans) const OVERRIDE; 127 const syncer::BaseTransaction* trans) const OVERRIDE;
129 virtual void GetModelSafeRoutingInfo( 128 virtual void GetModelSafeRoutingInfo(
130 syncer::ModelSafeRoutingInfo* out) const OVERRIDE; 129 syncer::ModelSafeRoutingInfo* out) const OVERRIDE;
131 virtual SyncedDeviceTracker* GetSyncedDeviceTracker() const OVERRIDE;
132 virtual void RequestBufferedProtocolEventsAndEnableForwarding() OVERRIDE; 130 virtual void RequestBufferedProtocolEventsAndEnableForwarding() OVERRIDE;
133 virtual void DisableProtocolEventForwarding() OVERRIDE; 131 virtual void DisableProtocolEventForwarding() OVERRIDE;
134 virtual void EnableDirectoryTypeDebugInfoForwarding() OVERRIDE; 132 virtual void EnableDirectoryTypeDebugInfoForwarding() OVERRIDE;
135 virtual void DisableDirectoryTypeDebugInfoForwarding() OVERRIDE; 133 virtual void DisableDirectoryTypeDebugInfoForwarding() OVERRIDE;
136 virtual void GetAllNodesForTypes( 134 virtual void GetAllNodesForTypes(
137 syncer::ModelTypeSet types, 135 syncer::ModelTypeSet types,
138 base::Callback<void(const std::vector<syncer::ModelType>&, 136 base::Callback<void(const std::vector<syncer::ModelType>&,
139 ScopedVector<base::ListValue>)> type) OVERRIDE; 137 ScopedVector<base::ListValue>)> type) OVERRIDE;
140 virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE; 138 virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE;
141 139
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 365
368 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; 366 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_;
369 367
370 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); 368 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl);
371 }; 369 };
372 370
373 } // namespace browser_sync 371 } // namespace browser_sync
374 372
375 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 373 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
376 374
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_core.cc ('k') | chrome/browser/sync/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698