| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEBUI_OPTIONS_OPTIONS_UI_H_ | 5 #ifndef CHROME_BROWSER_WEBUI_OPTIONS_OPTIONS_UI_H_ |
| 6 #define CHROME_BROWSER_WEBUI_OPTIONS_OPTIONS_UI_H_ | 6 #define CHROME_BROWSER_WEBUI_OPTIONS_OPTIONS_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "chrome/browser/webui/chrome_url_data_manager.h" | 12 #include "chrome/browser/webui/chrome_url_data_manager.h" |
| 13 #include "chrome/browser/webui/web_ui.h" | |
| 14 #include "chrome/common/notification_observer.h" | 13 #include "chrome/common/notification_observer.h" |
| 15 #include "chrome/common/notification_registrar.h" | 14 #include "chrome/common/notification_registrar.h" |
| 16 #include "chrome/common/notification_type.h" | 15 #include "chrome/common/notification_type.h" |
| 16 #include "content/browser/webui/web_ui.h" |
| 17 | 17 |
| 18 class GURL; | 18 class GURL; |
| 19 class PrefService; | 19 class PrefService; |
| 20 struct UserMetricsAction; | 20 struct UserMetricsAction; |
| 21 | 21 |
| 22 class OptionsUIHTMLSource : public ChromeURLDataManager::DataSource { | 22 class OptionsUIHTMLSource : public ChromeURLDataManager::DataSource { |
| 23 public: | 23 public: |
| 24 // The constructor takes over ownership of |localized_strings|. | 24 // The constructor takes over ownership of |localized_strings|. |
| 25 explicit OptionsUIHTMLSource(DictionaryValue* localized_strings); | 25 explicit OptionsUIHTMLSource(DictionaryValue* localized_strings); |
| 26 virtual ~OptionsUIHTMLSource(); | 26 virtual ~OptionsUIHTMLSource(); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // Adds OptionsPageUiHandler to the handlers list if handler is enabled. | 110 // Adds OptionsPageUiHandler to the handlers list if handler is enabled. |
| 111 void AddOptionsPageUIHandler(DictionaryValue* localized_strings, | 111 void AddOptionsPageUIHandler(DictionaryValue* localized_strings, |
| 112 OptionsPageUIHandler* handler); | 112 OptionsPageUIHandler* handler); |
| 113 | 113 |
| 114 bool initialized_handlers_; | 114 bool initialized_handlers_; |
| 115 | 115 |
| 116 DISALLOW_COPY_AND_ASSIGN(OptionsUI); | 116 DISALLOW_COPY_AND_ASSIGN(OptionsUI); |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 #endif // CHROME_BROWSER_WEBUI_OPTIONS_OPTIONS_UI_H_ | 119 #endif // CHROME_BROWSER_WEBUI_OPTIONS_OPTIONS_UI_H_ |
| OLD | NEW |