| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MOJO_WEB_UI_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "chrome/browser/ui/webui/mojo_web_ui_handler.h" | 12 #include "chrome/browser/ui/webui/mojo_web_ui_handler.h" |
| 13 #include "content/public/browser/render_frame_host.h" | 13 #include "content/public/browser/render_frame_host.h" |
| 14 #include "content/public/browser/render_view_host.h" | 14 #include "content/public/browser/render_view_host.h" |
| 15 #include "content/public/browser/web_ui_controller.h" | 15 #include "content/public/browser/web_ui_controller.h" |
| 16 #include "content/public/common/service_registry.h" | 16 #include "content/public/common/service_registry.h" |
| 17 #include "third_party/mojo/src/mojo/public/cpp/system/core.h" | 17 #include "mojo/public/cpp/system/core.h" |
| 18 | 18 |
| 19 class MojoWebUIHandler; | 19 class MojoWebUIHandler; |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 class WebUIDataSource; | 22 class WebUIDataSource; |
| 23 } | 23 } |
| 24 | 24 |
| 25 class MojoWebUIControllerBase : public content::WebUIController { | 25 class MojoWebUIControllerBase : public content::WebUIController { |
| 26 public: | 26 public: |
| 27 explicit MojoWebUIControllerBase(content::WebUI* contents); | 27 explicit MojoWebUIControllerBase(content::WebUI* contents); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // Invoked to create the specific bindings implementation. | 67 // Invoked to create the specific bindings implementation. |
| 68 virtual void BindUIHandler(mojo::InterfaceRequest<Interface> request) = 0; | 68 virtual void BindUIHandler(mojo::InterfaceRequest<Interface> request) = 0; |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 base::WeakPtrFactory<MojoWebUIController> weak_factory_; | 71 base::WeakPtrFactory<MojoWebUIController> weak_factory_; |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(MojoWebUIController); | 73 DISALLOW_COPY_AND_ASSIGN(MojoWebUIController); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 #endif // CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_CONTROLLER_H_ | 76 #endif // CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_CONTROLLER_H_ |
| OLD | NEW |