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

Side by Side Diff: content/renderer/mus/render_widget_window_tree_client_factory.cc

Issue 1681813002: Rename Connection::AddService/ConnectToService to Connection::AddInterface/GetInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@interface_binder
Patch Set: . Created 4 years, 10 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 | « content/public/test/test_mojo_app.cc ('k') | device/devices_app/devices_app.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "content/renderer/mus/render_widget_window_tree_client_factory.h" 5 #include "content/renderer/mus/render_widget_window_tree_client_factory.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 20 matching lines...) Expand all
31 RenderWidgetWindowTreeClientFactoryImpl() { 31 RenderWidgetWindowTreeClientFactoryImpl() {
32 DCHECK(MojoShellConnection::Get()); 32 DCHECK(MojoShellConnection::Get());
33 MojoShellConnection::Get()->AddListener(this); 33 MojoShellConnection::Get()->AddListener(this);
34 } 34 }
35 35
36 ~RenderWidgetWindowTreeClientFactoryImpl() override {} 36 ~RenderWidgetWindowTreeClientFactoryImpl() override {}
37 37
38 private: 38 private:
39 // MojoShellConnection::Listener implementation: 39 // MojoShellConnection::Listener implementation:
40 bool AcceptConnection(mojo::Connection* connection) override { 40 bool AcceptConnection(mojo::Connection* connection) override {
41 connection->AddService<mojom::RenderWidgetWindowTreeClientFactory>(this); 41 connection->AddInterface<mojom::RenderWidgetWindowTreeClientFactory>(this);
42 return true; 42 return true;
43 } 43 }
44 44
45 // mojo::InterfaceFactory<mojom::RenderWidgetWindowTreeClientFactory>: 45 // mojo::InterfaceFactory<mojom::RenderWidgetWindowTreeClientFactory>:
46 void Create(mojo::Connection* connection, 46 void Create(mojo::Connection* connection,
47 mojo::InterfaceRequest<mojom::RenderWidgetWindowTreeClientFactory> 47 mojo::InterfaceRequest<mojom::RenderWidgetWindowTreeClientFactory>
48 request) override { 48 request) override {
49 bindings_.AddBinding(this, std::move(request)); 49 bindings_.AddBinding(this, std::move(request));
50 } 50 }
51 51
(...skipping 11 matching lines...) Expand all
63 DISALLOW_COPY_AND_ASSIGN(RenderWidgetWindowTreeClientFactoryImpl); 63 DISALLOW_COPY_AND_ASSIGN(RenderWidgetWindowTreeClientFactoryImpl);
64 }; 64 };
65 65
66 } // namespace 66 } // namespace
67 67
68 void CreateRenderWidgetWindowTreeClientFactory() { 68 void CreateRenderWidgetWindowTreeClientFactory() {
69 new RenderWidgetWindowTreeClientFactoryImpl; 69 new RenderWidgetWindowTreeClientFactoryImpl;
70 } 70 }
71 71
72 } // namespace content 72 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/test_mojo_app.cc ('k') | device/devices_app/devices_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698