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

Side by Side Diff: components/sync_driver/data_type_controller.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_DATA_TYPE_CONTROLLER_H__ 5 #ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_H__
6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_H__ 6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_H__
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/ref_counted_delete_on_message_loop.h" 14 #include "base/memory/ref_counted_delete_on_message_loop.h"
15 #include "base/sequenced_task_runner_helpers.h" 15 #include "base/sequenced_task_runner_helpers.h"
16 #include "components/sync_driver/data_type_error_handler.h" 16 #include "components/sync_driver/data_type_error_handler.h"
17 #include "sync/api/sync_merge_result.h" 17 #include "sync/api/sync_merge_result.h"
18 #include "sync/internal_api/public/base/model_type.h" 18 #include "sync/internal_api/public/base/model_type.h"
19 #include "sync/internal_api/public/engine/model_safe_worker.h" 19 #include "sync/internal_api/public/engine/model_safe_worker.h"
20 #include "sync/internal_api/public/util/unrecoverable_error_handler.h" 20 #include "sync/internal_api/public/util/unrecoverable_error_handler.h"
21 21
22 namespace syncer { 22 namespace syncer {
23 class SyncError; 23 class SyncError;
24 struct UserShare; 24 struct UserShare;
25 } 25 }
26 26
27 namespace browser_sync { 27 namespace sync_driver {
28 28
29 class ChangeProcessor; 29 class ChangeProcessor;
30 30
31 // Data type controllers need to be refcounted threadsafe, as they may 31 // Data type controllers need to be refcounted threadsafe, as they may
32 // need to run model associator or change processor on other threads. 32 // need to run model associator or change processor on other threads.
33 class DataTypeController 33 class DataTypeController
34 : public base::RefCountedDeleteOnMessageLoop<DataTypeController>, 34 : public base::RefCountedDeleteOnMessageLoop<DataTypeController>,
35 public DataTypeErrorHandler { 35 public DataTypeErrorHandler {
36 public: 36 public:
37 enum State { 37 enum State {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // TODO(sync): protected for use by legacy controllers. 165 // TODO(sync): protected for use by legacy controllers.
166 base::Closure error_callback_; 166 base::Closure error_callback_;
167 167
168 private: 168 private:
169 // TODO(tim): Bug 383480. Do we need two callbacks? 169 // TODO(tim): Bug 383480. Do we need two callbacks?
170 DisableTypeCallback disable_callback_; 170 DisableTypeCallback disable_callback_;
171 171
172 syncer::UserShare* user_share_; 172 syncer::UserShare* user_share_;
173 }; 173 };
174 174
175 } // namespace browser_sync 175 } // namespace sync_driver
176 176
177 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_H__ 177 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_CONTROLLER_H__
OLDNEW
« no previous file with comments | « components/sync_driver/change_processor_mock.cc ('k') | components/sync_driver/data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698