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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_impl.h

Issue 351523003: sync: Mass rename of non-blocking sync classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const ref some smart pointers Created 6 years, 6 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 | Annotate | Revision Log
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 const DataTypeConfigStateMap& config_state_map, 108 const DataTypeConfigStateMap& config_state_map,
109 const base::Callback<void(syncer::ModelTypeSet, 109 const base::Callback<void(syncer::ModelTypeSet,
110 syncer::ModelTypeSet)>& ready_task, 110 syncer::ModelTypeSet)>& ready_task,
111 const base::Callback<void()>& retry_callback) OVERRIDE; 111 const base::Callback<void()>& retry_callback) OVERRIDE;
112 virtual void ActivateDataType( 112 virtual void ActivateDataType(
113 syncer::ModelType type, syncer::ModelSafeGroup group, 113 syncer::ModelType type, syncer::ModelSafeGroup group,
114 ChangeProcessor* change_processor) OVERRIDE; 114 ChangeProcessor* change_processor) OVERRIDE;
115 virtual void DeactivateDataType(syncer::ModelType type) OVERRIDE; 115 virtual void DeactivateDataType(syncer::ModelType type) OVERRIDE;
116 virtual void EnableEncryptEverything() OVERRIDE; 116 virtual void EnableEncryptEverything() OVERRIDE;
117 virtual syncer::UserShare* GetUserShare() const OVERRIDE; 117 virtual syncer::UserShare* GetUserShare() const OVERRIDE;
118 virtual scoped_ptr<syncer::SyncCoreProxy> GetSyncCoreProxy() OVERRIDE; 118 virtual scoped_ptr<syncer::SyncContextProxy> GetSyncContextProxy() OVERRIDE;
119 virtual Status GetDetailedStatus() OVERRIDE; 119 virtual Status GetDetailedStatus() OVERRIDE;
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(
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 void FinishConfigureDataTypesOnFrontendLoop( 163 void FinishConfigureDataTypesOnFrontendLoop(
164 const syncer::ModelTypeSet enabled_types, 164 const syncer::ModelTypeSet enabled_types,
165 const syncer::ModelTypeSet succeeded_configuration_types, 165 const syncer::ModelTypeSet succeeded_configuration_types,
166 const syncer::ModelTypeSet failed_configuration_types, 166 const syncer::ModelTypeSet failed_configuration_types,
167 const base::Callback<void(syncer::ModelTypeSet, 167 const base::Callback<void(syncer::ModelTypeSet,
168 syncer::ModelTypeSet)>& ready_task); 168 syncer::ModelTypeSet)>& ready_task);
169 169
170 // Reports backend initialization success. Includes some objects from sync 170 // Reports backend initialization success. Includes some objects from sync
171 // manager initialization to be passed back to the UI thread. 171 // manager initialization to be passed back to the UI thread.
172 // 172 //
173 // |sync_core_proxy| points to an object owned by the SyncManager. Ownership 173 // |sync_context_proxy| points to an object owned by the SyncManager.
174 // is not transferred, but we can obtain our own copy of the object using its 174 // Ownership is not transferred, but we can obtain our own copy of the object
175 // Clone() method. 175 // using its Clone() method.
176 virtual void HandleInitializationSuccessOnFrontendLoop( 176 virtual void HandleInitializationSuccessOnFrontendLoop(
177 const syncer::WeakHandle<syncer::JsBackend> js_backend, 177 const syncer::WeakHandle<syncer::JsBackend> js_backend,
178 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener> 178 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>
179 debug_info_listener, 179 debug_info_listener,
180 syncer::SyncCoreProxy* sync_core_proxy); 180 syncer::SyncContextProxy* sync_context_proxy);
181 181
182 // Downloading of control types failed and will be retried. Invokes the 182 // Downloading of control types failed and will be retried. Invokes the
183 // frontend's sync configure retry method. 183 // frontend's sync configure retry method.
184 void HandleControlTypesDownloadRetry(); 184 void HandleControlTypesDownloadRetry();
185 185
186 // Forwards a ProtocolEvent to the frontend. Will not be called unless a 186 // Forwards a ProtocolEvent to the frontend. Will not be called unless a
187 // call to SetForwardProtocolEvents() explicitly requested that we start 187 // call to SetForwardProtocolEvents() explicitly requested that we start
188 // forwarding these events. 188 // forwarding these events.
189 void HandleProtocolEventOnFrontendLoop(syncer::ProtocolEvent* event); 189 void HandleProtocolEventOnFrontendLoop(syncer::ProtocolEvent* event);
190 190
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 317
318 // Name used for debugging (set from profile_->GetDebugName()). 318 // Name used for debugging (set from profile_->GetDebugName()).
319 const std::string name_; 319 const std::string name_;
320 320
321 // Our core, which communicates directly to the syncapi. Use refptr instead 321 // Our core, which communicates directly to the syncapi. Use refptr instead
322 // of WeakHandle because |core_| is created on UI loop but released on 322 // of WeakHandle because |core_| is created on UI loop but released on
323 // sync loop. 323 // sync loop.
324 scoped_refptr<SyncBackendHostCore> core_; 324 scoped_refptr<SyncBackendHostCore> core_;
325 325
326 // A handle referencing the main interface for non-blocking sync types. 326 // A handle referencing the main interface for non-blocking sync types.
327 scoped_ptr<syncer::SyncCoreProxy> sync_core_proxy_; 327 scoped_ptr<syncer::SyncContextProxy> sync_context_proxy_;
328 328
329 bool initialized_; 329 bool initialized_;
330 330
331 const base::WeakPtr<sync_driver::SyncPrefs> sync_prefs_; 331 const base::WeakPtr<sync_driver::SyncPrefs> sync_prefs_;
332 332
333 ExtensionsActivityMonitor extensions_activity_monitor_; 333 ExtensionsActivityMonitor extensions_activity_monitor_;
334 334
335 scoped_ptr<SyncBackendRegistrar> registrar_; 335 scoped_ptr<SyncBackendRegistrar> registrar_;
336 336
337 // The frontend which we serve (and are owned by). 337 // The frontend which we serve (and are owned by).
(...skipping 27 matching lines...) Expand all
365 365
366 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; 366 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_;
367 367
368 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); 368 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl);
369 }; 369 };
370 370
371 } // namespace browser_sync 371 } // namespace browser_sync
372 372
373 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 373 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
374 374
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_core.cc ('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