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

Side by Side Diff: components/sync/driver/glue/sync_backend_host.h

Issue 2258873003: [Sync] Move sessions/ to engine/cycle/ and rename things to match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "components/sync/base/model_type.h" 15 #include "components/sync/base/model_type.h"
16 #include "components/sync/base/weak_handle.h" 16 #include "components/sync/base/weak_handle.h"
17 #include "components/sync/core/configure_reason.h" 17 #include "components/sync/core/configure_reason.h"
18 #include "components/sync/core/shutdown_reason.h" 18 #include "components/sync/core/shutdown_reason.h"
19 #include "components/sync/core/sync_manager.h" 19 #include "components/sync/core/sync_manager.h"
20 #include "components/sync/core/sync_manager_factory.h" 20 #include "components/sync/core/sync_manager_factory.h"
21 #include "components/sync/driver/backend_data_type_configurer.h" 21 #include "components/sync/driver/backend_data_type_configurer.h"
22 #include "components/sync/sessions/sync_session_snapshot.h" 22 #include "components/sync/engine/cycle/sync_cycle_snapshot.h"
23 23
24 class GURL; 24 class GURL;
25 25
26 namespace base { 26 namespace base {
27 class MessageLoop; 27 class MessageLoop;
28 } 28 }
29 29
30 namespace syncer { 30 namespace syncer {
31 class CancelationSignal; 31 class CancelationSignal;
32 class HttpPostProviderFactory; 32 class HttpPostProviderFactory;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 virtual void EnableEncryptEverything() = 0; 157 virtual void EnableEncryptEverything() = 0;
158 158
159 // Called on |frontend_loop_| to obtain a handle to the UserShare needed for 159 // Called on |frontend_loop_| to obtain a handle to the UserShare needed for
160 // creating transactions. Should not be called before we signal 160 // creating transactions. Should not be called before we signal
161 // initialization is complete with OnBackendInitialized(). 161 // initialization is complete with OnBackendInitialized().
162 virtual syncer::UserShare* GetUserShare() const = 0; 162 virtual syncer::UserShare* GetUserShare() const = 0;
163 163
164 // Called from any thread to obtain current status information in detailed or 164 // Called from any thread to obtain current status information in detailed or
165 // summarized form. 165 // summarized form.
166 virtual Status GetDetailedStatus() = 0; 166 virtual Status GetDetailedStatus() = 0;
167 virtual syncer::sessions::SyncSessionSnapshot GetLastSessionSnapshot() 167 virtual syncer::SyncCycleSnapshot GetLastCycleSnapshot() const = 0;
168 const = 0;
169 168
170 // Determines if the underlying sync engine has made any local changes to 169 // Determines if the underlying sync engine has made any local changes to
171 // items that have not yet been synced with the server. 170 // items that have not yet been synced with the server.
172 // ONLY CALL THIS IF OnInitializationComplete was called! 171 // ONLY CALL THIS IF OnInitializationComplete was called!
173 virtual bool HasUnsyncedItems() const = 0; 172 virtual bool HasUnsyncedItems() const = 0;
174 173
175 // Whether or not we are syncing encryption keys. 174 // Whether or not we are syncing encryption keys.
176 virtual bool IsNigoriEnabled() const = 0; 175 virtual bool IsNigoriEnabled() const = 0;
177 176
178 // Returns the type of passphrase being used to encrypt data. See 177 // Returns the type of passphrase being used to encrypt data. See
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // See SyncManager::OnCookieJarChanged. 231 // See SyncManager::OnCookieJarChanged.
233 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; 232 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0;
234 233
235 private: 234 private:
236 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 235 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
237 }; 236 };
238 237
239 } // namespace browser_sync 238 } // namespace browser_sync
240 239
241 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ 240 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « components/sync/driver/fake_sync_service.cc ('k') | components/sync/driver/glue/sync_backend_host_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698