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

Side by Side Diff: sync/internal_api/public/test/fake_sync_manager.h

Issue 10825137: FYI: Control Data + Per-Device Metadata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add PER_USER_METADATA, refactor some encryption code Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
6 #define SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const base::Closure& retry_task) OVERRIDE; 115 const base::Closure& retry_task) OVERRIDE;
116 virtual void AddObserver(Observer* observer) OVERRIDE; 116 virtual void AddObserver(Observer* observer) OVERRIDE;
117 virtual void RemoveObserver(Observer* observer) OVERRIDE; 117 virtual void RemoveObserver(Observer* observer) OVERRIDE;
118 virtual SyncStatus GetDetailedStatus() const OVERRIDE; 118 virtual SyncStatus GetDetailedStatus() const OVERRIDE;
119 virtual bool IsUsingExplicitPassphrase() OVERRIDE; 119 virtual bool IsUsingExplicitPassphrase() OVERRIDE;
120 virtual bool GetKeystoreKeyBootstrapToken(std::string* token) OVERRIDE; 120 virtual bool GetKeystoreKeyBootstrapToken(std::string* token) OVERRIDE;
121 virtual void SaveChanges() OVERRIDE; 121 virtual void SaveChanges() OVERRIDE;
122 virtual void StopSyncingForShutdown(const base::Closure& callback) OVERRIDE; 122 virtual void StopSyncingForShutdown(const base::Closure& callback) OVERRIDE;
123 virtual void ShutdownOnSyncThread() OVERRIDE; 123 virtual void ShutdownOnSyncThread() OVERRIDE;
124 virtual UserShare* GetUserShare() OVERRIDE; 124 virtual UserShare* GetUserShare() OVERRIDE;
125 virtual void RefreshNigori(const std::string& chrome_version, 125 virtual void InitialProcessMetadata(
126 const base::Closure& done_callback) OVERRIDE; 126 const std::string& chrome_version,
127 const base::Closure& done_callback) OVERRIDE;
127 virtual void EnableEncryptEverything() OVERRIDE; 128 virtual void EnableEncryptEverything() OVERRIDE;
128 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; 129 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE;
129 virtual bool HasUnsyncedItems() OVERRIDE; 130 virtual bool HasUnsyncedItems() OVERRIDE;
130 131
131 private: 132 private:
132 void InvalidateOnSyncThread( 133 void InvalidateOnSyncThread(
133 const ObjectIdPayloadMap& id_payloads, 134 const ObjectIdPayloadMap& id_payloads,
134 IncomingNotificationSource source); 135 IncomingNotificationSource source);
135 void EnableNotificationsOnSyncThread(); 136 void EnableNotificationsOnSyncThread();
136 void DisableNotificationsOnSyncThread(NotificationsDisabledReason reason); 137 void DisableNotificationsOnSyncThread(NotificationsDisabledReason reason);
(...skipping 19 matching lines...) Expand all
156 157
157 // Faked notifier state. 158 // Faked notifier state.
158 SyncNotifierRegistrar registrar_; 159 SyncNotifierRegistrar registrar_;
159 160
160 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 161 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
161 }; 162 };
162 163
163 } // namespace syncer 164 } // namespace syncer
164 165
165 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 166 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698