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

Side by Side Diff: ios/chrome/browser/ui/webui/mojo_web_ui_ios_controller.h

Issue 2844923002: Replace InterfaceRegistry on RenderFrameHostImpl with BinderRegistry (Closed)
Patch Set: . Created 3 years, 7 months 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
« no previous file with comments | « headless/lib/browser/headless_web_contents_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 IOS_CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_IOS_CONTROLLER_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_IOS_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_IOS_CONTROLLER_H_ 6 #define IOS_CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_IOS_CONTROLLER_H_
7 7
8 #import "ios/web/public/web_state/web_state.h" 8 #import "ios/web/public/web_state/web_state.h"
9 #include "ios/web/public/webui/web_ui_ios.h" 9 #include "ios/web/public/webui/web_ui_ios.h"
10 #include "ios/web/public/webui/web_ui_ios_controller.h" 10 #include "ios/web/public/webui/web_ui_ios_controller.h"
11 #include "services/service_manager/public/cpp/interface_factory.h" 11 #include "services/service_manager/public/cpp/interface_factory.h"
12 #include "services/service_manager/public/cpp/interface_registry.h"
13 12
14 // This class is intended for web ui pages that use mojo. It is expected that 13 // This class is intended for web ui pages that use mojo. It is expected that
15 // subclasses will do two things: 14 // subclasses will do two things:
16 // . In the constructor invoke AddMojoResourcePath() to register the bindings 15 // . In the constructor invoke AddMojoResourcePath() to register the bindings
17 // files, eg: 16 // files, eg:
18 // AddMojoResourcePath("chrome/browser/ui/webui/version.mojom", 17 // AddMojoResourcePath("chrome/browser/ui/webui/version.mojom",
19 // IDR_IOS_VERSION_MOJO_JS); 18 // IDR_IOS_VERSION_MOJO_JS);
20 // . Override BindUIHandler() to create and bind the implementation of the 19 // . Override BindUIHandler() to create and bind the implementation of the
21 // bindings. 20 // bindings.
22 template <typename Interface> 21 template <typename Interface>
(...skipping 15 matching lines...) Expand all
38 void Create(const service_manager::Identity& remote_identity, 37 void Create(const service_manager::Identity& remote_identity,
39 mojo::InterfaceRequest<Interface> request) override { 38 mojo::InterfaceRequest<Interface> request) override {
40 BindUIHandler(std::move(request)); 39 BindUIHandler(std::move(request));
41 } 40 }
42 41
43 private: 42 private:
44 DISALLOW_COPY_AND_ASSIGN(MojoWebUIIOSController); 43 DISALLOW_COPY_AND_ASSIGN(MojoWebUIIOSController);
45 }; 44 };
46 45
47 #endif // IOS_CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_IOS_CONTROLLER_H_ 46 #endif // IOS_CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_IOS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « headless/lib/browser/headless_web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698