| 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 <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "chrome/browser/ui/webui/mojo_web_ui_handler.h" | 13 #include "chrome/browser/ui/webui/mojo_web_ui_handler.h" |
| 14 #include "content/public/browser/render_frame_host.h" | 14 #include "content/public/browser/render_frame_host.h" |
| 15 #include "content/public/browser/render_view_host.h" | 15 #include "content/public/browser/render_view_host.h" |
| 16 #include "content/public/browser/web_ui_controller.h" | 16 #include "content/public/browser/web_ui_controller.h" |
| 17 #include "content/public/common/service_registry.h" | 17 #include "content/public/common/service_registry.h" |
| 18 #include "mojo/public/cpp/system/core.h" | 18 #include "mojo/public/cpp/system/core.h" |
| 19 | 19 |
| 20 class MojoWebUIHandler; | 20 class MojoWebUIHandler; |
| 21 | 21 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // Invoked to create the specific bindings implementation. | 64 // Invoked to create the specific bindings implementation. |
| 65 virtual void BindUIHandler(mojo::InterfaceRequest<Interface> request) = 0; | 65 virtual void BindUIHandler(mojo::InterfaceRequest<Interface> request) = 0; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 base::WeakPtrFactory<MojoWebUIController> weak_factory_; | 68 base::WeakPtrFactory<MojoWebUIController> weak_factory_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(MojoWebUIController); | 70 DISALLOW_COPY_AND_ASSIGN(MojoWebUIController); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 #endif // CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_CONTROLLER_H_ | 73 #endif // CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_CONTROLLER_H_ |
| OLD | NEW |