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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_impl.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_IMPL_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 GetLastSessionSnapshot() const OVERRIDE; 122 GetLastSessionSnapshot() const OVERRIDE;
123 virtual bool HasUnsyncedItems() const OVERRIDE; 123 virtual bool HasUnsyncedItems() const OVERRIDE;
124 virtual bool IsNigoriEnabled() const OVERRIDE; 124 virtual bool IsNigoriEnabled() const OVERRIDE;
125 virtual syncer::PassphraseType GetPassphraseType() const OVERRIDE; 125 virtual syncer::PassphraseType GetPassphraseType() const OVERRIDE;
126 virtual base::Time GetExplicitPassphraseTime() const OVERRIDE; 126 virtual base::Time GetExplicitPassphraseTime() const OVERRIDE;
127 virtual bool IsCryptographerReady( 127 virtual bool IsCryptographerReady(
128 const syncer::BaseTransaction* trans) const OVERRIDE; 128 const syncer::BaseTransaction* trans) const OVERRIDE;
129 virtual void GetModelSafeRoutingInfo( 129 virtual void GetModelSafeRoutingInfo(
130 syncer::ModelSafeRoutingInfo* out) const OVERRIDE; 130 syncer::ModelSafeRoutingInfo* out) const OVERRIDE;
131 virtual SyncedDeviceTracker* GetSyncedDeviceTracker() const OVERRIDE; 131 virtual SyncedDeviceTracker* GetSyncedDeviceTracker() const OVERRIDE;
132 virtual void FlushDirectory() const OVERRIDE;
132 virtual void RequestBufferedProtocolEventsAndEnableForwarding() OVERRIDE; 133 virtual void RequestBufferedProtocolEventsAndEnableForwarding() OVERRIDE;
133 virtual void DisableProtocolEventForwarding() OVERRIDE; 134 virtual void DisableProtocolEventForwarding() OVERRIDE;
134 virtual void EnableDirectoryTypeDebugInfoForwarding() OVERRIDE; 135 virtual void EnableDirectoryTypeDebugInfoForwarding() OVERRIDE;
135 virtual void DisableDirectoryTypeDebugInfoForwarding() OVERRIDE; 136 virtual void DisableDirectoryTypeDebugInfoForwarding() OVERRIDE;
136 virtual void GetAllNodesForTypes( 137 virtual void GetAllNodesForTypes(
137 syncer::ModelTypeSet types, 138 syncer::ModelTypeSet types,
138 base::Callback<void(const std::vector<syncer::ModelType>&, 139 base::Callback<void(const std::vector<syncer::ModelType>&,
139 ScopedVector<base::ListValue>)> type) OVERRIDE; 140 ScopedVector<base::ListValue>)> type) OVERRIDE;
140 virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE; 141 virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE;
141 142
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 368
368 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; 369 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_;
369 370
370 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); 371 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl);
371 }; 372 };
372 373
373 } // namespace browser_sync 374 } // namespace browser_sync
374 375
375 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 376 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
376 377
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698