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

Side by Side Diff: components/search_engines/search_engine_data_type_controller.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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
OLDNEW
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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "components/search_engines/template_url_service.h" 12 #include "components/search_engines/template_url_service.h"
13 #include "components/sync/driver/ui_data_type_controller.h" 13 #include "components/sync/driver/ui_data_type_controller.h"
14 14
15 class Profile;
16
17 namespace browser_sync { 15 namespace browser_sync {
18 16
19 // Controller for the SEARCH_ENGINES sync data type. This class tells sync 17 // Controller for the SEARCH_ENGINES sync data type. This class tells sync
20 // how to load the model for this data type, and the superclasses manage 18 // how to load the model for this data type, and the superclasses manage
21 // controlling the rest of the state of the datatype with regards to sync. 19 // controlling the rest of the state of the datatype with regards to sync.
22 class SearchEngineDataTypeController : public syncer::UIDataTypeController { 20 class SearchEngineDataTypeController : public syncer::UIDataTypeController {
23 public: 21 public:
24 // |dump_stack| is called when an unrecoverable error occurs. 22 // |dump_stack| is called when an unrecoverable error occurs.
25 SearchEngineDataTypeController(const base::Closure& dump_stack, 23 SearchEngineDataTypeController(const base::Closure& dump_stack,
26 syncer::SyncClient* sync_client, 24 syncer::SyncClient* sync_client,
(...skipping 14 matching lines...) Expand all
41 39
42 // A subscription to the OnLoadedCallback so it can be cleared if necessary. 40 // A subscription to the OnLoadedCallback so it can be cleared if necessary.
43 std::unique_ptr<TemplateURLService::Subscription> template_url_subscription_; 41 std::unique_ptr<TemplateURLService::Subscription> template_url_subscription_;
44 42
45 DISALLOW_COPY_AND_ASSIGN(SearchEngineDataTypeController); 43 DISALLOW_COPY_AND_ASSIGN(SearchEngineDataTypeController);
46 }; 44 };
47 45
48 } // namespace browser_sync 46 } // namespace browser_sync
49 47
50 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINE_DATA_TYPE_CONTROLLER_H__ 48 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINE_DATA_TYPE_CONTROLLER_H__
OLDNEW
« no previous file with comments | « components/safe_json/safe_json_parser_android.h ('k') | components/sessions/content/content_live_tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698