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

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: 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 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 virtual syncer::sessions::SyncSessionSnapshot 120 virtual syncer::sessions::SyncSessionSnapshot
121 GetLastSessionSnapshot() const OVERRIDE; 121 GetLastSessionSnapshot() const OVERRIDE;
122 virtual bool HasUnsyncedItems() const OVERRIDE; 122 virtual bool HasUnsyncedItems() const OVERRIDE;
123 virtual bool IsNigoriEnabled() const OVERRIDE; 123 virtual bool IsNigoriEnabled() const OVERRIDE;
124 virtual syncer::PassphraseType GetPassphraseType() const OVERRIDE; 124 virtual syncer::PassphraseType GetPassphraseType() const OVERRIDE;
125 virtual base::Time GetExplicitPassphraseTime() const OVERRIDE; 125 virtual base::Time GetExplicitPassphraseTime() const OVERRIDE;
126 virtual bool IsCryptographerReady( 126 virtual bool IsCryptographerReady(
127 const syncer::BaseTransaction* trans) const OVERRIDE; 127 const syncer::BaseTransaction* trans) const OVERRIDE;
128 virtual void GetModelSafeRoutingInfo( 128 virtual void GetModelSafeRoutingInfo(
129 syncer::ModelSafeRoutingInfo* out) const OVERRIDE; 129 syncer::ModelSafeRoutingInfo* out) const OVERRIDE;
130 virtual void FlushDirectory() const OVERRIDE;
130 virtual void RequestBufferedProtocolEventsAndEnableForwarding() OVERRIDE; 131 virtual void RequestBufferedProtocolEventsAndEnableForwarding() OVERRIDE;
131 virtual void DisableProtocolEventForwarding() OVERRIDE; 132 virtual void DisableProtocolEventForwarding() OVERRIDE;
132 virtual void EnableDirectoryTypeDebugInfoForwarding() OVERRIDE; 133 virtual void EnableDirectoryTypeDebugInfoForwarding() OVERRIDE;
133 virtual void DisableDirectoryTypeDebugInfoForwarding() OVERRIDE; 134 virtual void DisableDirectoryTypeDebugInfoForwarding() OVERRIDE;
134 virtual void GetAllNodesForTypes( 135 virtual void GetAllNodesForTypes(
135 syncer::ModelTypeSet types, 136 syncer::ModelTypeSet types,
136 base::Callback<void(const std::vector<syncer::ModelType>&, 137 base::Callback<void(const std::vector<syncer::ModelType>&,
137 ScopedVector<base::ListValue>)> type) OVERRIDE; 138 ScopedVector<base::ListValue>)> type) OVERRIDE;
138 virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE; 139 virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE;
139 140
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 362
362 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; 363 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_;
363 364
364 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); 365 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl);
365 }; 366 };
366 367
367 } // namespace browser_sync 368 } // namespace browser_sync
368 369
369 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 370 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
370 371
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_core.h ('k') | chrome/browser/sync/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698