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_UI_WEBUI_OPTIONS_STARTUP_PAGES_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_STARTUP_PAGES_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_STARTUP_PAGES_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_STARTUP_PAGES_HANDLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "chrome/browser/ui/webui/options/options_ui.h" | 13 #include "chrome/browser/ui/webui/options/options_ui.h" |
14 #include "components/omnibox/browser/autocomplete_controller_delegate.h" | 14 #include "components/omnibox/browser/autocomplete_controller_delegate.h" |
15 #include "components/prefs/pref_change_registrar.h" | 15 #include "components/prefs/pref_change_registrar.h" |
16 #include "components/prefs/pref_member.h" | 16 #include "components/prefs/pref_member.h" |
17 #include "ui/base/models/table_model_observer.h" | 17 #include "ui/base/models/table_model_observer.h" |
18 | 18 |
19 class AutocompleteController; | 19 class AutocompleteController; |
20 class CustomHomePagesTableModel; | 20 class CustomHomePagesTableModel; |
21 class TemplateURLService; | |
22 | 21 |
23 namespace options { | 22 namespace options { |
24 | 23 |
25 // Chrome browser options page UI handler. | 24 // Chrome browser options page UI handler. |
26 class StartupPagesHandler : public OptionsPageUIHandler, | 25 class StartupPagesHandler : public OptionsPageUIHandler, |
27 public AutocompleteControllerDelegate, | 26 public AutocompleteControllerDelegate, |
28 public ui::TableModelObserver { | 27 public ui::TableModelObserver { |
29 public: | 28 public: |
30 StartupPagesHandler(); | 29 StartupPagesHandler(); |
31 ~StartupPagesHandler() override; | 30 ~StartupPagesHandler() override; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 86 |
88 // The set of pages to launch on startup. | 87 // The set of pages to launch on startup. |
89 std::unique_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_; | 88 std::unique_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_; |
90 | 89 |
91 DISALLOW_COPY_AND_ASSIGN(StartupPagesHandler); | 90 DISALLOW_COPY_AND_ASSIGN(StartupPagesHandler); |
92 }; | 91 }; |
93 | 92 |
94 } // namespace options | 93 } // namespace options |
95 | 94 |
96 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_STARTUP_PAGES_HANDLER_H_ | 95 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_STARTUP_PAGES_HANDLER_H_ |
OLD | NEW |