OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_HISTORY_CORE_BROWSER_TYPED_URL_DATA_TYPE_CONTROLLER_H__ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_TYPED_URL_DATA_TYPE_CONTROLLER_H__ |
6 #define COMPONENTS_HISTORY_CORE_BROWSER_TYPED_URL_DATA_TYPE_CONTROLLER_H__ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_TYPED_URL_DATA_TYPE_CONTROLLER_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/task/cancelable_task_tracker.h" | 12 #include "base/task/cancelable_task_tracker.h" |
13 #include "components/prefs/pref_change_registrar.h" | 13 #include "components/prefs/pref_change_registrar.h" |
14 #include "components/sync/driver/non_ui_data_type_controller.h" | 14 #include "components/sync/driver/non_ui_data_type_controller.h" |
15 #include "components/sync/driver/sync_api_component_factory.h" | 15 #include "components/sync/driver/sync_api_component_factory.h" |
16 | 16 |
17 namespace history { | |
18 class HistoryBackend; | |
19 } | |
20 | |
21 namespace browser_sync { | 17 namespace browser_sync { |
22 | 18 |
23 class ControlTask; | |
24 | |
25 // A class that manages the startup and shutdown of typed_url sync. | 19 // A class that manages the startup and shutdown of typed_url sync. |
26 class TypedUrlDataTypeController : public syncer::NonUIDataTypeController { | 20 class TypedUrlDataTypeController : public syncer::NonUIDataTypeController { |
27 public: | 21 public: |
28 // |dump_stack| is called when an unrecoverable error occurs. | 22 // |dump_stack| is called when an unrecoverable error occurs. |
29 TypedUrlDataTypeController(const base::Closure& dump_stack, | 23 TypedUrlDataTypeController(const base::Closure& dump_stack, |
30 syncer::SyncClient* sync_client, | 24 syncer::SyncClient* sync_client, |
31 const char* history_disabled_pref_name); | 25 const char* history_disabled_pref_name); |
32 ~TypedUrlDataTypeController() override; | 26 ~TypedUrlDataTypeController() override; |
33 | 27 |
34 // NonUIDataTypeController implementation | 28 // NonUIDataTypeController implementation |
(...skipping 18 matching lines...) Expand all Loading... |
53 base::CancelableTaskTracker task_tracker_; | 47 base::CancelableTaskTracker task_tracker_; |
54 | 48 |
55 syncer::SyncClient* const sync_client_; | 49 syncer::SyncClient* const sync_client_; |
56 | 50 |
57 DISALLOW_COPY_AND_ASSIGN(TypedUrlDataTypeController); | 51 DISALLOW_COPY_AND_ASSIGN(TypedUrlDataTypeController); |
58 }; | 52 }; |
59 | 53 |
60 } // namespace browser_sync | 54 } // namespace browser_sync |
61 | 55 |
62 #endif // COMPONENTS_HISTORY_CORE_BROWSER_TYPED_URL_DATA_TYPE_CONTROLLER_H__ | 56 #endif // COMPONENTS_HISTORY_CORE_BROWSER_TYPED_URL_DATA_TYPE_CONTROLLER_H__ |
OLD | NEW |