| 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 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 DISALLOW_COPY_AND_ASSIGN(OptionsPageUIHandler); | 67 DISALLOW_COPY_AND_ASSIGN(OptionsPageUIHandler); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 // An interface for common operations that a host of OptionsPageUIHandlers | 70 // An interface for common operations that a host of OptionsPageUIHandlers |
| 71 // should provide. | 71 // should provide. |
| 72 class OptionsPageUIHandlerHost { | 72 class OptionsPageUIHandlerHost { |
| 73 public: | 73 public: |
| 74 virtual void InitializeHandlers() = 0; | 74 virtual void InitializeHandlers() = 0; |
| 75 | |
| 76 protected: | |
| 77 virtual ~OptionsPageUIHandlerHost() {} | |
| 78 }; | 75 }; |
| 79 | 76 |
| 80 // The WebUI for chrome:settings. | 77 // The WebUI for chrome:settings. |
| 81 class OptionsUI : public ChromeWebUI, | 78 class OptionsUI : public ChromeWebUI, |
| 82 public OptionsPageUIHandlerHost { | 79 public OptionsPageUIHandlerHost { |
| 83 public: | 80 public: |
| 84 explicit OptionsUI(TabContents* contents); | 81 explicit OptionsUI(TabContents* contents); |
| 85 virtual ~OptionsUI(); | 82 virtual ~OptionsUI(); |
| 86 | 83 |
| 87 static RefCountedMemory* GetFaviconResourceBytes(); | 84 static RefCountedMemory* GetFaviconResourceBytes(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 102 // Sets the WebUI CommandLineString property with arguments passed while | 99 // Sets the WebUI CommandLineString property with arguments passed while |
| 103 // launching chrome. | 100 // launching chrome. |
| 104 void SetCommandLineString(RenderViewHost* render_view_host); | 101 void SetCommandLineString(RenderViewHost* render_view_host); |
| 105 | 102 |
| 106 bool initialized_handlers_; | 103 bool initialized_handlers_; |
| 107 | 104 |
| 108 DISALLOW_COPY_AND_ASSIGN(OptionsUI); | 105 DISALLOW_COPY_AND_ASSIGN(OptionsUI); |
| 109 }; | 106 }; |
| 110 | 107 |
| 111 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ | 108 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ |
| OLD | NEW |