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

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: Restart test + more cleanup Created 8 years, 2 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 syncer::ReportUnrecoverableErrorFunction 177 syncer::ReportUnrecoverableErrorFunction
178 report_unrecoverable_error_function); 178 report_unrecoverable_error_function);
179 179
180 // Called on |frontend_loop| to update SyncCredentials. 180 // Called on |frontend_loop| to update SyncCredentials.
181 void UpdateCredentials(const syncer::SyncCredentials& credentials); 181 void UpdateCredentials(const syncer::SyncCredentials& credentials);
182 182
183 // Registers the underlying frontend for the given IDs to the underlying 183 // Registers the underlying frontend for the given IDs to the underlying
184 // notifier. This lasts until StopSyncingForShutdown() is called. 184 // notifier. This lasts until StopSyncingForShutdown() is called.
185 void UpdateRegisteredInvalidationIds(const syncer::ObjectIdSet& ids); 185 void UpdateRegisteredInvalidationIds(const syncer::ObjectIdSet& ids);
186 186
187 // TODO(dcheng): Add a comment.
akalin 2012/10/19 13:27:16 !
dcheng 2012/10/19 19:38:11 Done.
188 void AcknowledgeInvalidation(const invalidation::ObjectId& id,
189 const syncer::AckHandle& ack_handle);
190
187 // This starts the SyncerThread running a Syncer object to communicate with 191 // This starts the SyncerThread running a Syncer object to communicate with
188 // sync servers. Until this is called, no changes will leave or enter this 192 // sync servers. Until this is called, no changes will leave or enter this
189 // browser from the cloud / sync servers. 193 // browser from the cloud / sync servers.
190 // Called on |frontend_loop_|. 194 // Called on |frontend_loop_|.
191 virtual void StartSyncingWithServer(); 195 virtual void StartSyncingWithServer();
192 196
193 // Called on |frontend_loop_| to asynchronously set a new passphrase for 197 // Called on |frontend_loop_| to asynchronously set a new passphrase for
194 // encryption. Note that it is an error to call SetEncryptionPassphrase under 198 // encryption. Note that it is an error to call SetEncryptionPassphrase under
195 // the following circumstances: 199 // the following circumstances:
196 // - An explicit passphrase has already been set 200 // - An explicit passphrase has already been set
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 // it via OnBackendInitialized in the final state of 551 // it via OnBackendInitialized in the final state of
548 // HandleInitializationCompletedOnFrontendLoop. 552 // HandleInitializationCompletedOnFrontendLoop.
549 syncer::WeakHandle<syncer::JsBackend> js_backend_; 553 syncer::WeakHandle<syncer::JsBackend> js_backend_;
550 554
551 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 555 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
552 }; 556 };
553 557
554 } // namespace browser_sync 558 } // namespace browser_sync
555 559
556 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 560 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698