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

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

Issue 212603007: sync: Buffer Protocol Events for about:sync page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // using a token previously received. 185 // using a token previously received.
186 virtual bool IsCryptographerReady( 186 virtual bool IsCryptographerReady(
187 const syncer::BaseTransaction* trans) const = 0; 187 const syncer::BaseTransaction* trans) const = 0;
188 188
189 virtual void GetModelSafeRoutingInfo( 189 virtual void GetModelSafeRoutingInfo(
190 syncer::ModelSafeRoutingInfo* out) const = 0; 190 syncer::ModelSafeRoutingInfo* out) const = 0;
191 191
192 // Fetches the DeviceInfo tracker. 192 // Fetches the DeviceInfo tracker.
193 virtual SyncedDeviceTracker* GetSyncedDeviceTracker() const = 0; 193 virtual SyncedDeviceTracker* GetSyncedDeviceTracker() const = 0;
194 194
195 // Sets whether or not the frontend will be notified of network events. 195 // Requests that the backend forward to the fronent any protocol events in
196 virtual void SetForwardProtocolEvents(bool forward) = 0; 196 // its buffer and begin forwarding automatically from now on. Repeated calls
197 // to this function may result in the same events being emitted several
198 // times.
199 virtual void RequestBufferedProtocolEventsAndEnableForwarding() = 0;
200
201 // Disables protocol event forwarding.
202 virtual void DisableProtocolEventForwarding() = 0;
197 203
198 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; 204 virtual base::MessageLoop* GetSyncLoopForTesting() = 0;
199 205
200 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 206 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
201 }; 207 };
202 208
203 } // namespace browser_sync 209 } // namespace browser_sync
204 210
205 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 211 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/sync_internals/chrome_sync.js ('k') | chrome/browser/sync/glue/sync_backend_host_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698