| 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_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 13 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
| 14 #include "chrome/browser/ui/webui/chrome_web_ui.h" | 14 #include "chrome/browser/ui/webui/chrome_web_ui.h" |
| 15 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
| 16 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
| 17 #include "content/public/browser/notification_types.h" | 17 #include "content/public/browser/notification_types.h" |
| 18 | 18 |
| 19 class GURL; | |
| 20 class PrefService; | |
| 21 struct UserMetricsAction; | |
| 22 | |
| 23 // The base class handler of Javascript messages of options pages. | 19 // The base class handler of Javascript messages of options pages. |
| 24 class OptionsPageUIHandler : public WebUIMessageHandler, | 20 class OptionsPageUIHandler : public WebUIMessageHandler, |
| 25 public content::NotificationObserver { | 21 public content::NotificationObserver { |
| 26 public: | 22 public: |
| 27 OptionsPageUIHandler(); | 23 OptionsPageUIHandler(); |
| 28 virtual ~OptionsPageUIHandler(); | 24 virtual ~OptionsPageUIHandler(); |
| 29 | 25 |
| 30 // Is this handler enabled? | 26 // Is this handler enabled? |
| 31 virtual bool IsEnabled(); | 27 virtual bool IsEnabled(); |
| 32 | 28 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // Sets the WebUI CommandLineString property with arguments passed while | 99 // Sets the WebUI CommandLineString property with arguments passed while |
| 104 // launching chrome. | 100 // launching chrome. |
| 105 void SetCommandLineString(RenderViewHost* render_view_host); | 101 void SetCommandLineString(RenderViewHost* render_view_host); |
| 106 | 102 |
| 107 bool initialized_handlers_; | 103 bool initialized_handlers_; |
| 108 | 104 |
| 109 DISALLOW_COPY_AND_ASSIGN(OptionsUI); | 105 DISALLOW_COPY_AND_ASSIGN(OptionsUI); |
| 110 }; | 106 }; |
| 111 | 107 |
| 112 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ | 108 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ |
| OLD | NEW |