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

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

Issue 217183003: Add non-blocking sync code to ProfileSyncService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments Created 6 years, 8 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
« no previous file with comments | « sync/internal_api/public/sync_manager.h ('k') | sync/internal_api/sync_manager_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 ModelTypeSet to_unapply, 112 ModelTypeSet to_unapply,
113 const ModelSafeRoutingInfo& new_routing_info, 113 const ModelSafeRoutingInfo& new_routing_info,
114 const base::Closure& ready_task, 114 const base::Closure& ready_task,
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 void SaveChanges() OVERRIDE; 119 virtual void SaveChanges() OVERRIDE;
120 virtual void ShutdownOnSyncThread() OVERRIDE; 120 virtual void ShutdownOnSyncThread() OVERRIDE;
121 virtual UserShare* GetUserShare() OVERRIDE; 121 virtual UserShare* GetUserShare() OVERRIDE;
122 virtual syncer::SyncCore* GetSyncCore() OVERRIDE; 122 virtual base::WeakPtr<syncer::SyncCore> GetSyncCore() OVERRIDE;
123 virtual const std::string cache_guid() OVERRIDE; 123 virtual const std::string cache_guid() OVERRIDE;
124 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; 124 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE;
125 virtual bool HasUnsyncedItems() OVERRIDE; 125 virtual bool HasUnsyncedItems() OVERRIDE;
126 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; 126 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE;
127 virtual ScopedVector<syncer::ProtocolEvent> 127 virtual ScopedVector<syncer::ProtocolEvent>
128 GetBufferedProtocolEvents() OVERRIDE; 128 GetBufferedProtocolEvents() OVERRIDE;
129 virtual void RefreshTypes(ModelTypeSet types) OVERRIDE; 129 virtual void RefreshTypes(ModelTypeSet types) OVERRIDE;
130 130
131 private: 131 private:
132 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_; 132 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_;
(...skipping 27 matching lines...) Expand all
160 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; 160 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_;
161 161
162 TestUserShare test_user_share_; 162 TestUserShare test_user_share_;
163 163
164 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 164 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
165 }; 165 };
166 166
167 } // namespace syncer 167 } // namespace syncer
168 168
169 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 169 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/sync_manager.h ('k') | sync/internal_api/sync_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698