| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DOM_UI_BROWSER_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_BROWSER_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_BROWSER_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_DOM_UI_BROWSER_OPTIONS_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "app/table_model_observer.h" | 9 #include "app/table_model_observer.h" |
| 10 #include "chrome/browser/dom_ui/options_ui.h" | 10 #include "chrome/browser/dom_ui/options_ui.h" |
| 11 #include "chrome/browser/search_engines/template_url_model.h" | 11 #include "chrome/browser/search_engines/template_url_model.h" |
| 12 #include "chrome/browser/shell_integration.h" | 12 #include "chrome/browser/shell_integration.h" |
| 13 | 13 |
| 14 class CustomHomePagesTableModel; | 14 class CustomHomePagesTableModel; |
| 15 class OptionsManagedBannerHandler; |
| 15 | 16 |
| 16 // Chrome browser options page UI handler. | 17 // Chrome browser options page UI handler. |
| 17 class BrowserOptionsHandler : public OptionsPageUIHandler, | 18 class BrowserOptionsHandler : public OptionsPageUIHandler, |
| 18 public ShellIntegration::DefaultBrowserObserver, | 19 public ShellIntegration::DefaultBrowserObserver, |
| 19 public TemplateURLModelObserver, | 20 public TemplateURLModelObserver, |
| 20 public TableModelObserver { | 21 public TableModelObserver { |
| 21 public: | 22 public: |
| 22 BrowserOptionsHandler(); | 23 BrowserOptionsHandler(); |
| 23 virtual ~BrowserOptionsHandler(); | 24 virtual ~BrowserOptionsHandler(); |
| 24 | 25 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 void SaveStartupPagesPref(); | 79 void SaveStartupPagesPref(); |
| 79 | 80 |
| 80 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; | 81 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; |
| 81 | 82 |
| 82 TemplateURLModel* template_url_model_; // Weak. | 83 TemplateURLModel* template_url_model_; // Weak. |
| 83 | 84 |
| 84 // TODO(stuartmorgan): Once there are no other clients of | 85 // TODO(stuartmorgan): Once there are no other clients of |
| 85 // CustomHomePagesTableModel, consider changing it to something more like | 86 // CustomHomePagesTableModel, consider changing it to something more like |
| 86 // TemplateURLModel. | 87 // TemplateURLModel. |
| 87 scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_; | 88 scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_; |
| 89 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; |
| 88 | 90 |
| 89 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 91 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
| 90 }; | 92 }; |
| 91 | 93 |
| 92 #endif // CHROME_BROWSER_DOM_UI_BROWSER_OPTIONS_HANDLER_H_ | 94 #endif // CHROME_BROWSER_DOM_UI_BROWSER_OPTIONS_HANDLER_H_ |
| OLD | NEW |