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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_mock.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_MOCK_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual syncer::PassphraseType GetPassphraseType() const OVERRIDE; 87 virtual syncer::PassphraseType GetPassphraseType() const OVERRIDE;
88 88
89 virtual base::Time GetExplicitPassphraseTime() const OVERRIDE; 89 virtual base::Time GetExplicitPassphraseTime() const OVERRIDE;
90 90
91 virtual bool IsCryptographerReady( 91 virtual bool IsCryptographerReady(
92 const syncer::BaseTransaction* trans) const OVERRIDE; 92 const syncer::BaseTransaction* trans) const OVERRIDE;
93 93
94 virtual void GetModelSafeRoutingInfo( 94 virtual void GetModelSafeRoutingInfo(
95 syncer::ModelSafeRoutingInfo* out) const OVERRIDE; 95 syncer::ModelSafeRoutingInfo* out) const OVERRIDE;
96 96
97 virtual void FlushDirectory() const OVERRIDE;
98
97 virtual void RequestBufferedProtocolEventsAndEnableForwarding() OVERRIDE; 99 virtual void RequestBufferedProtocolEventsAndEnableForwarding() OVERRIDE;
98 virtual void DisableProtocolEventForwarding() OVERRIDE; 100 virtual void DisableProtocolEventForwarding() OVERRIDE;
99 101
100 virtual void EnableDirectoryTypeDebugInfoForwarding() OVERRIDE; 102 virtual void EnableDirectoryTypeDebugInfoForwarding() OVERRIDE;
101 virtual void DisableDirectoryTypeDebugInfoForwarding() OVERRIDE; 103 virtual void DisableDirectoryTypeDebugInfoForwarding() OVERRIDE;
102 104
103 virtual void GetAllNodesForTypes( 105 virtual void GetAllNodesForTypes(
104 syncer::ModelTypeSet types, 106 syncer::ModelTypeSet types,
105 base::Callback<void(const std::vector<syncer::ModelType>& type, 107 base::Callback<void(const std::vector<syncer::ModelType>& type,
106 ScopedVector<base::ListValue>) > callback) OVERRIDE; 108 ScopedVector<base::ListValue>) > callback) OVERRIDE;
107 109
108 virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE; 110 virtual base::MessageLoop* GetSyncLoopForTesting() OVERRIDE;
109 111
110 void set_fail_initial_download(bool should_fail); 112 void set_fail_initial_download(bool should_fail);
111 113
112 private: 114 private:
113 bool fail_initial_download_; 115 bool fail_initial_download_;
114 }; 116 };
115 117
116 } // namespace browser_sync 118 } // namespace browser_sync
117 119
118 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 120 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_impl.cc ('k') | chrome/browser/sync/glue/sync_backend_host_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698