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

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

Issue 551843003: Persist Directory to disk when the app is backgrounded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits. Created 6 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
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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 // True if the cryptographer has any keys available to attempt decryption. 179 // True if the cryptographer has any keys available to attempt decryption.
180 // Could mean we've downloaded and loaded Nigori objects, or we bootstrapped 180 // Could mean we've downloaded and loaded Nigori objects, or we bootstrapped
181 // using a token previously received. 181 // using a token previously received.
182 virtual bool IsCryptographerReady( 182 virtual bool IsCryptographerReady(
183 const syncer::BaseTransaction* trans) const = 0; 183 const syncer::BaseTransaction* trans) const = 0;
184 184
185 virtual void GetModelSafeRoutingInfo( 185 virtual void GetModelSafeRoutingInfo(
186 syncer::ModelSafeRoutingInfo* out) const = 0; 186 syncer::ModelSafeRoutingInfo* out) const = 0;
187 187
188 // Send a message to the sync thread to persist the Directory to disk.
189 virtual void FlushDirectory() const = 0;
190
188 // Requests that the backend forward to the fronent any protocol events in 191 // Requests that the backend forward to the fronent any protocol events in
189 // its buffer and begin forwarding automatically from now on. Repeated calls 192 // its buffer and begin forwarding automatically from now on. Repeated calls
190 // to this function may result in the same events being emitted several 193 // to this function may result in the same events being emitted several
191 // times. 194 // times.
192 virtual void RequestBufferedProtocolEventsAndEnableForwarding() = 0; 195 virtual void RequestBufferedProtocolEventsAndEnableForwarding() = 0;
193 196
194 // Disables protocol event forwarding. 197 // Disables protocol event forwarding.
195 virtual void DisableProtocolEventForwarding() = 0; 198 virtual void DisableProtocolEventForwarding() = 0;
196 199
197 // Returns a ListValue representing all nodes for the specified types through 200 // Returns a ListValue representing all nodes for the specified types through
(...skipping 12 matching lines...) Expand all
210 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0; 213 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0;
211 214
212 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; 215 virtual base::MessageLoop* GetSyncLoopForTesting() = 0;
213 216
214 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 217 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
215 }; 218 };
216 219
217 } // namespace browser_sync 220 } // namespace browser_sync
218 221
219 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 222 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698