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_OPTIONS_UI_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_UI_H_ |
6 #define CHROME_BROWSER_DOM_UI_OPTIONS_UI_H_ | 6 #define CHROME_BROWSER_DOM_UI_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/dom_ui/chrome_url_data_manager.h" | 12 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
13 #include "chrome/browser/dom_ui/dom_ui.h" | 13 #include "chrome/browser/dom_ui/dom_ui.h" |
| 14 #include "chrome/common/notification_observer.h" |
14 #include "chrome/common/notification_registrar.h" | 15 #include "chrome/common/notification_registrar.h" |
15 #include "chrome/common/notification_type.h" | 16 #include "chrome/common/notification_type.h" |
16 | 17 |
17 class GURL; | 18 class GURL; |
18 class PrefService; | 19 class PrefService; |
19 struct UserMetricsAction; | 20 struct UserMetricsAction; |
20 | 21 |
21 class OptionsUIHTMLSource : public ChromeURLDataManager::DataSource { | 22 class OptionsUIHTMLSource : public ChromeURLDataManager::DataSource { |
22 public: | 23 public: |
23 // The constructor takes over ownership of |localized_strings|. | 24 // The constructor takes over ownership of |localized_strings|. |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 void InitializeHandlers(); | 82 void InitializeHandlers(); |
82 | 83 |
83 private: | 84 private: |
84 void AddOptionsPageUIHandler(DictionaryValue* localized_strings, | 85 void AddOptionsPageUIHandler(DictionaryValue* localized_strings, |
85 OptionsPageUIHandler* handler); | 86 OptionsPageUIHandler* handler); |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(OptionsUI); | 88 DISALLOW_COPY_AND_ASSIGN(OptionsUI); |
88 }; | 89 }; |
89 | 90 |
90 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_UI_H_ | 91 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_UI_H_ |
OLD | NEW |