Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: chrome/browser/ui/webui/mojo_web_ui_controller.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.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 "mojo/public/cpp/system/core.h" 17 #include "mojo/public/cpp/system/core.h"
18 #include "services/service_manager/public/cpp/interface_registry.h" 18 #include "services/service_manager/public/cpp/interface_registry.h"
19 19
20 class MojoWebUIHandler;
21
22 class MojoWebUIControllerBase : public content::WebUIController { 20 class MojoWebUIControllerBase : public content::WebUIController {
23 public: 21 public:
24 explicit MojoWebUIControllerBase(content::WebUI* contents); 22 explicit MojoWebUIControllerBase(content::WebUI* contents);
25 ~MojoWebUIControllerBase() override; 23 ~MojoWebUIControllerBase() override;
26 24
27 // WebUIController overrides: 25 // WebUIController overrides:
28 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override; 26 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override;
29 27
30 private: 28 private:
31 DISALLOW_COPY_AND_ASSIGN(MojoWebUIControllerBase); 29 DISALLOW_COPY_AND_ASSIGN(MojoWebUIControllerBase);
(...skipping 30 matching lines...) Expand all
62 // Invoked to create the specific bindings implementation. 60 // Invoked to create the specific bindings implementation.
63 virtual void BindUIHandler(mojo::InterfaceRequest<Interface> request) = 0; 61 virtual void BindUIHandler(mojo::InterfaceRequest<Interface> request) = 0;
64 62
65 private: 63 private:
66 base::WeakPtrFactory<MojoWebUIController> weak_factory_; 64 base::WeakPtrFactory<MojoWebUIController> weak_factory_;
67 65
68 DISALLOW_COPY_AND_ASSIGN(MojoWebUIController); 66 DISALLOW_COPY_AND_ASSIGN(MojoWebUIController);
69 }; 67 };
70 68
71 #endif // CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_CONTROLLER_H_ 69 #endif // CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698