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 CHROME_BROWSER_SYNC_GLUE_TYPED_URL_DATA_TYPE_CONTROLLER_H__ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_TYPED_URL_DATA_TYPE_CONTROLLER_H__ |
6 #define CHROME_BROWSER_SYNC_GLUE_TYPED_URL_DATA_TYPE_CONTROLLER_H__ | 6 #define CHROME_BROWSER_SYNC_GLUE_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" |
(...skipping 30 matching lines...) Expand all Loading... |
41 // before CreateSyncComponents() is invoked. | 41 // before CreateSyncComponents() is invoked. |
42 void SetBackend(history::HistoryBackend* backend); | 42 void SetBackend(history::HistoryBackend* backend); |
43 | 43 |
44 protected: | 44 protected: |
45 // NonFrontendDataTypeController interface. | 45 // NonFrontendDataTypeController interface. |
46 virtual bool PostTaskOnBackendThread( | 46 virtual bool PostTaskOnBackendThread( |
47 const tracked_objects::Location& from_here, | 47 const tracked_objects::Location& from_here, |
48 const base::Closure& task) OVERRIDE; | 48 const base::Closure& task) OVERRIDE; |
49 virtual ProfileSyncComponentsFactory::SyncComponents CreateSyncComponents() | 49 virtual ProfileSyncComponentsFactory::SyncComponents CreateSyncComponents() |
50 OVERRIDE; | 50 OVERRIDE; |
51 virtual void DisconnectProcessor(ChangeProcessor* processor) OVERRIDE; | 51 virtual void DisconnectProcessor( |
| 52 sync_driver::ChangeProcessor* processor) OVERRIDE; |
52 | 53 |
53 private: | 54 private: |
54 virtual ~TypedUrlDataTypeController(); | 55 virtual ~TypedUrlDataTypeController(); |
55 | 56 |
56 void OnSavingBrowserHistoryDisabledChanged(); | 57 void OnSavingBrowserHistoryDisabledChanged(); |
57 | 58 |
58 history::HistoryBackend* backend_; | 59 history::HistoryBackend* backend_; |
59 PrefChangeRegistrar pref_registrar_; | 60 PrefChangeRegistrar pref_registrar_; |
60 | 61 |
61 // Helper object to make sure we don't leave tasks running on the history | 62 // Helper object to make sure we don't leave tasks running on the history |
62 // thread. | 63 // thread. |
63 base::CancelableTaskTracker task_tracker_; | 64 base::CancelableTaskTracker task_tracker_; |
64 | 65 |
65 DISALLOW_COPY_AND_ASSIGN(TypedUrlDataTypeController); | 66 DISALLOW_COPY_AND_ASSIGN(TypedUrlDataTypeController); |
66 }; | 67 }; |
67 | 68 |
68 } // namespace browser_sync | 69 } // namespace browser_sync |
69 | 70 |
70 #endif // CHROME_BROWSER_SYNC_GLUE_TYPED_URL_DATA_TYPE_CONTROLLER_H__ | 71 #endif // CHROME_BROWSER_SYNC_GLUE_TYPED_URL_DATA_TYPE_CONTROLLER_H__ |
OLD | NEW |