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

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

Issue 10911084: Implement Invalidator::Acknowledge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adapt patch to new TickClock interface Created 7 years, 9 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 CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 syncer::ReportUnrecoverableErrorFunction 184 syncer::ReportUnrecoverableErrorFunction
185 report_unrecoverable_error_function); 185 report_unrecoverable_error_function);
186 186
187 // Called on |frontend_loop| to update SyncCredentials. 187 // Called on |frontend_loop| to update SyncCredentials.
188 virtual void UpdateCredentials(const syncer::SyncCredentials& credentials); 188 virtual void UpdateCredentials(const syncer::SyncCredentials& credentials);
189 189
190 // Registers the underlying frontend for the given IDs to the underlying 190 // Registers the underlying frontend for the given IDs to the underlying
191 // notifier. This lasts until StopSyncingForShutdown() is called. 191 // notifier. This lasts until StopSyncingForShutdown() is called.
192 void UpdateRegisteredInvalidationIds(const syncer::ObjectIdSet& ids); 192 void UpdateRegisteredInvalidationIds(const syncer::ObjectIdSet& ids);
193 193
194 // Forwards an invalidation acknowledgement to the underlying notifier.
195 void AcknowledgeInvalidation(const invalidation::ObjectId& id,
196 const syncer::AckHandle& ack_handle);
197
194 // This starts the SyncerThread running a Syncer object to communicate with 198 // This starts the SyncerThread running a Syncer object to communicate with
195 // sync servers. Until this is called, no changes will leave or enter this 199 // sync servers. Until this is called, no changes will leave or enter this
196 // browser from the cloud / sync servers. 200 // browser from the cloud / sync servers.
197 // Called on |frontend_loop_|. 201 // Called on |frontend_loop_|.
198 virtual void StartSyncingWithServer(); 202 virtual void StartSyncingWithServer();
199 203
200 // Called on |frontend_loop_| to asynchronously set a new passphrase for 204 // Called on |frontend_loop_| to asynchronously set a new passphrase for
201 // encryption. Note that it is an error to call SetEncryptionPassphrase under 205 // encryption. Note that it is an error to call SetEncryptionPassphrase under
202 // the following circumstances: 206 // the following circumstances:
203 // - An explicit passphrase has already been set 207 // - An explicit passphrase has already been set
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 // HandleInitializationCompletedOnFrontendLoop. 563 // HandleInitializationCompletedOnFrontendLoop.
560 syncer::WeakHandle<syncer::JsBackend> js_backend_; 564 syncer::WeakHandle<syncer::JsBackend> js_backend_;
561 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; 565 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_;
562 566
563 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 567 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
564 }; 568 };
565 569
566 } // namespace browser_sync 570 } // namespace browser_sync
567 571
568 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 572 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/android_invalidator_bridge_proxy.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