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

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

Issue 1735583002: Rename WeakBindingSet/WeakInterfacePtrSet to BindingSet/InterfacePtrSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/gpu/gpu_child_thread.h ('k') | content/utility/utility_thread_impl.h » ('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"
11 #include "components/mus/public/interfaces/window_tree.mojom.h" 11 #include "components/mus/public/interfaces/window_tree.mojom.h"
12 #include "content/common/render_widget_window_tree_client_factory.mojom.h" 12 #include "content/common/render_widget_window_tree_client_factory.mojom.h"
13 #include "content/public/common/mojo_shell_connection.h" 13 #include "content/public/common/mojo_shell_connection.h"
14 #include "content/renderer/mus/render_widget_mus_connection.h" 14 #include "content/renderer/mus/render_widget_mus_connection.h"
15 #include "mojo/public/cpp/bindings/weak_binding_set.h" 15 #include "mojo/public/cpp/bindings/binding_set.h"
16 #include "mojo/shell/public/cpp/connection.h" 16 #include "mojo/shell/public/cpp/connection.h"
17 #include "mojo/shell/public/cpp/interface_factory.h" 17 #include "mojo/shell/public/cpp/interface_factory.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 namespace { 22 namespace {
23 23
24 // This object's lifetime is managed by MojoShellConnection because it's a 24 // This object's lifetime is managed by MojoShellConnection because it's a
25 // MojoShellConnection::Listener. 25 // MojoShellConnection::Listener.
(...skipping 25 matching lines...) Expand all
51 51
52 // mojom::RenderWidgetWindowTreeClientFactory implementation. 52 // mojom::RenderWidgetWindowTreeClientFactory implementation.
53 void CreateWindowTreeClientForRenderWidget( 53 void CreateWindowTreeClientForRenderWidget(
54 uint32_t routing_id, 54 uint32_t routing_id,
55 mojo::InterfaceRequest<mus::mojom::WindowTreeClient> request) override { 55 mojo::InterfaceRequest<mus::mojom::WindowTreeClient> request) override {
56 RenderWidgetMusConnection* connection = 56 RenderWidgetMusConnection* connection =
57 RenderWidgetMusConnection::GetOrCreate(routing_id); 57 RenderWidgetMusConnection::GetOrCreate(routing_id);
58 connection->Bind(std::move(request)); 58 connection->Bind(std::move(request));
59 } 59 }
60 60
61 mojo::WeakBindingSet<mojom::RenderWidgetWindowTreeClientFactory> bindings_; 61 mojo::BindingSet<mojom::RenderWidgetWindowTreeClientFactory> bindings_;
62 62
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/gpu/gpu_child_thread.h ('k') | content/utility/utility_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698