| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_WEB_UI_CONTROLLER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_UI_CONTROLLER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_UI_CONTROLLER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_UI_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 | 12 |
| 13 class GURL; | 13 class GURL; |
| 14 class RenderViewHost; | |
| 15 | 14 |
| 16 namespace base { | 15 namespace base { |
| 17 class ListValue; | 16 class ListValue; |
| 18 } | 17 } |
| 19 | 18 |
| 20 namespace content { | 19 namespace content { |
| 21 | 20 |
| 21 class RenderViewHost; |
| 22 class WebUI; | 22 class WebUI; |
| 23 | 23 |
| 24 // A WebUI page is controller by the embedder's WebUIController object. It | 24 // A WebUI page is controller by the embedder's WebUIController object. It |
| 25 // manages the data source and message handlers. | 25 // manages the data source and message handlers. |
| 26 class CONTENT_EXPORT WebUIController { | 26 class CONTENT_EXPORT WebUIController { |
| 27 public: | 27 public: |
| 28 explicit WebUIController(WebUI* web_ui) : web_ui_(web_ui) {} | 28 explicit WebUIController(WebUI* web_ui) : web_ui_(web_ui) {} |
| 29 virtual ~WebUIController() {} | 29 virtual ~WebUIController() {} |
| 30 | 30 |
| 31 // Allows the controller to override handling all messages from the page. | 31 // Allows the controller to override handling all messages from the page. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 55 | 55 |
| 56 WebUI* web_ui() const { return web_ui_; } | 56 WebUI* web_ui() const { return web_ui_; } |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 WebUI* web_ui_; | 59 WebUI* web_ui_; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace content | 62 } // namespace content |
| 63 | 63 |
| 64 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_CONTROLLER_H_ | 64 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_CONTROLLER_H_ |
| OLD | NEW |