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

Side by Side Diff: content/renderer/web_ui_setup_impl.h

Issue 265793015: Mojo: Replace RemotePtr with InterfacePtr and InterfaceImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
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 CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_ 5 #ifndef CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_
6 #define CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_ 6 #define CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/web_ui_setup.mojom.h" 9 #include "content/common/web_ui_setup.mojom.h"
10 #include "mojo/public/cpp/bindings/error_handler.h" 10 #include "mojo/public/cpp/bindings/error_handler.h"
11 #include "mojo/public/cpp/bindings/remote_ptr.h"
12 11
13 namespace content { 12 namespace content {
14 13
15 class WebUISetupImpl : public WebUISetup, 14 class WebUISetupImpl : public WebUISetup {
16 public mojo::ErrorHandler {
17 public: 15 public:
18 static void Bind(mojo::ScopedMessagePipeHandle handle); 16 static void Bind(mojo::ScopedMessagePipeHandle handle);
19 17
20 private: 18 private:
21 explicit WebUISetupImpl(mojo::ScopedMessagePipeHandle handle); 19 WebUISetupImpl() {}
22 virtual ~WebUISetupImpl();
23 20
24 // WebUISetup methods: 21 // WebUISetup methods:
25 virtual void SetWebUIHandle( 22 virtual void SetWebUIHandle(
26 int32_t view_routing_id, 23 int32_t view_routing_id,
27 mojo::ScopedMessagePipeHandle web_ui_handle) OVERRIDE; 24 mojo::ScopedMessagePipeHandle web_ui_handle) OVERRIDE;
28 25
29 // mojo::ErrorHandler methods:
30 virtual void OnError() OVERRIDE;
31
32 mojo::RemotePtr<WebUISetupClient> client_;
33
34 DISALLOW_COPY_AND_ASSIGN(WebUISetupImpl); 26 DISALLOW_COPY_AND_ASSIGN(WebUISetupImpl);
35 }; 27 };
36 28
37 } // namespace content 29 } // namespace content
38 30
39 #endif // CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_ 31 #endif // CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698