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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_core.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: Use backend_initialized_ instead of backend_ != NULL. Created 6 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CORE_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 9
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 const base::Callback<void(syncer::ModelTypeSet, 206 const base::Callback<void(syncer::ModelTypeSet,
207 syncer::ModelTypeSet)>& ready_task, 207 syncer::ModelTypeSet)>& ready_task,
208 const base::Closure& retry_callback); 208 const base::Closure& retry_callback);
209 void DoFinishConfigureDataTypes( 209 void DoFinishConfigureDataTypes(
210 syncer::ModelTypeSet types_to_config, 210 syncer::ModelTypeSet types_to_config,
211 const base::Callback<void(syncer::ModelTypeSet, 211 const base::Callback<void(syncer::ModelTypeSet,
212 syncer::ModelTypeSet)>& ready_task); 212 syncer::ModelTypeSet)>& ready_task);
213 void DoRetryConfiguration( 213 void DoRetryConfiguration(
214 const base::Closure& retry_callback); 214 const base::Closure& retry_callback);
215 215
216 // Saves the directory to disk.
217 void DoFlushDirectory();
218
216 // Set the base request context to use when making HTTP calls. 219 // Set the base request context to use when making HTTP calls.
217 // This method will add a reference to the context to persist it 220 // This method will add a reference to the context to persist it
218 // on the IO thread. Must be removed from IO thread. 221 // on the IO thread. Must be removed from IO thread.
219 222
220 syncer::SyncManager* sync_manager() { return sync_manager_.get(); } 223 syncer::SyncManager* sync_manager() { return sync_manager_.get(); }
221 224
222 SyncedDeviceTracker* synced_device_tracker() { 225 SyncedDeviceTracker* synced_device_tracker() {
223 return synced_device_tracker_.get(); 226 return synced_device_tracker_.get();
224 } 227 }
225 228
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 std::string signin_scoped_device_id_; 331 std::string signin_scoped_device_id_;
329 332
330 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; 333 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_;
331 334
332 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); 335 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore);
333 }; 336 };
334 337
335 } // namespace browser_sync 338 } // namespace browser_sync
336 339
337 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ 340 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698