OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_SEARCH_ENGINES_SEARCH_ENGINE_DATA_TYPE_CONTROLLER_H__ | 5 #ifndef COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINE_DATA_TYPE_CONTROLLER_H__ |
6 #define COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINE_DATA_TYPE_CONTROLLER_H__ | 6 #define COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINE_DATA_TYPE_CONTROLLER_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "components/search_engines/template_url_service.h" | 12 #include "components/search_engines/template_url_service.h" |
12 #include "components/sync_driver/ui_data_type_controller.h" | 13 #include "components/sync_driver/ui_data_type_controller.h" |
13 | 14 |
14 class Profile; | 15 class Profile; |
15 | 16 |
16 namespace browser_sync { | 17 namespace browser_sync { |
17 | 18 |
18 // Controller for the SEARCH_ENGINES sync data type. This class tells sync | 19 // Controller for the SEARCH_ENGINES sync data type. This class tells sync |
19 // how to load the model for this data type, and the superclasses manage | 20 // how to load the model for this data type, and the superclasses manage |
(...skipping 26 matching lines...) Expand all Loading... |
46 | 47 |
47 // A subscription to the OnLoadedCallback so it can be cleared if necessary. | 48 // A subscription to the OnLoadedCallback so it can be cleared if necessary. |
48 scoped_ptr<TemplateURLService::Subscription> template_url_subscription_; | 49 scoped_ptr<TemplateURLService::Subscription> template_url_subscription_; |
49 | 50 |
50 DISALLOW_COPY_AND_ASSIGN(SearchEngineDataTypeController); | 51 DISALLOW_COPY_AND_ASSIGN(SearchEngineDataTypeController); |
51 }; | 52 }; |
52 | 53 |
53 } // namespace browser_sync | 54 } // namespace browser_sync |
54 | 55 |
55 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINE_DATA_TYPE_CONTROLLER_H__ | 56 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINE_DATA_TYPE_CONTROLLER_H__ |
OLD | NEW |