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

Side by Side Diff: components/sync_driver/sync_frontend.h

Issue 408003002: [Sync] Fix namespace for sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SYNC_FRONTEND_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_
6 #define COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ 6 #define COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "sync/internal_api/public/base/model_type.h" 9 #include "sync/internal_api/public/base/model_type.h"
10 #include "sync/internal_api/public/sync_encryption_handler.h" 10 #include "sync/internal_api/public/sync_encryption_handler.h"
11 #include "sync/internal_api/public/sync_manager.h" 11 #include "sync/internal_api/public/sync_manager.h"
12 #include "sync/internal_api/public/util/weak_handle.h" 12 #include "sync/internal_api/public/util/weak_handle.h"
13 #include "sync/protocol/sync_protocol_error.h" 13 #include "sync/protocol/sync_protocol_error.h"
14 14
15 namespace syncer { 15 namespace syncer {
16 class DataTypeDebugInfoListener; 16 class DataTypeDebugInfoListener;
17 class JsBackend; 17 class JsBackend;
18 class ProtocolEvent; 18 class ProtocolEvent;
19 struct CommitCounters; 19 struct CommitCounters;
20 struct StatusCounters; 20 struct StatusCounters;
21 struct UpdateCounters; 21 struct UpdateCounters;
22 } // namespace syncer 22 } // namespace syncer
23 23
24 namespace sync_pb { 24 namespace sync_pb {
25 class EncryptedData; 25 class EncryptedData;
26 } // namespace sync_pb 26 } // namespace sync_pb
27 27
28 namespace browser_sync { 28 namespace sync_driver {
29 29
30 // SyncFrontend is the interface used by SyncBackendHost to communicate with 30 // SyncFrontend is the interface used by SyncBackendHost to communicate with
31 // the entity that created it and, presumably, is interested in sync-related 31 // the entity that created it and, presumably, is interested in sync-related
32 // activity. 32 // activity.
33 // NOTE: All methods will be invoked by a SyncBackendHost on the same thread 33 // NOTE: All methods will be invoked by a SyncBackendHost on the same thread
34 // used to create that SyncBackendHost. 34 // used to create that SyncBackendHost.
35 class SyncFrontend { 35 class SyncFrontend {
36 public: 36 public:
37 SyncFrontend(); 37 SyncFrontend();
38 virtual ~SyncFrontend(); 38 virtual ~SyncFrontend();
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 virtual void OnMigrationNeededForTypes(syncer::ModelTypeSet types) = 0; 133 virtual void OnMigrationNeededForTypes(syncer::ModelTypeSet types) = 0;
134 134
135 // Inform the Frontend that new datatypes are available for registration. 135 // Inform the Frontend that new datatypes are available for registration.
136 virtual void OnExperimentsChanged( 136 virtual void OnExperimentsChanged(
137 const syncer::Experiments& experiments) = 0; 137 const syncer::Experiments& experiments) = 0;
138 138
139 // Called when the sync cycle returns there is an user actionable error. 139 // Called when the sync cycle returns there is an user actionable error.
140 virtual void OnActionableError(const syncer::SyncProtocolError& error) = 0; 140 virtual void OnActionableError(const syncer::SyncProtocolError& error) = 0;
141 }; 141 };
142 142
143 } // namespace browser_sync 143 } // namespace sync_driver
144 144
145 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ 145 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_
OLDNEW
« no previous file with comments | « components/sync_driver/sync_api_component_factory.h ('k') | components/sync_driver/sync_frontend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698