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

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

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (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 | « content/public/test/test_service.cc ('k') | content/renderer/render_frame_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"
(...skipping 30 matching lines...) Expand all
41 public mojom::RenderWidgetWindowTreeClientFactory { 41 public mojom::RenderWidgetWindowTreeClientFactory {
42 public: 42 public:
43 RenderWidgetWindowTreeClientFactoryImpl() { 43 RenderWidgetWindowTreeClientFactoryImpl() {
44 main_thread_task_runner_ = base::ThreadTaskRunnerHandle::Get(); 44 main_thread_task_runner_ = base::ThreadTaskRunnerHandle::Get();
45 } 45 }
46 46
47 ~RenderWidgetWindowTreeClientFactoryImpl() override {} 47 ~RenderWidgetWindowTreeClientFactoryImpl() override {}
48 48
49 private: 49 private:
50 // ConnectionFilter implementation: 50 // ConnectionFilter implementation:
51 void OnBindInterface(const service_manager::ServiceInfo& source_info, 51 void OnBindInterface(const service_manager::BindSourceInfo& source_info,
52 const std::string& interface_name, 52 const std::string& interface_name,
53 mojo::ScopedMessagePipeHandle* interface_pipe, 53 mojo::ScopedMessagePipeHandle* interface_pipe,
54 service_manager::Connector* connector) override { 54 service_manager::Connector* connector) override {
55 if (interface_name == mojom::RenderWidgetWindowTreeClientFactory::Name_) { 55 if (interface_name == mojom::RenderWidgetWindowTreeClientFactory::Name_) {
56 bindings_.AddBinding( 56 bindings_.AddBinding(
57 this, mojo::MakeRequest<mojom::RenderWidgetWindowTreeClientFactory>( 57 this, mojo::MakeRequest<mojom::RenderWidgetWindowTreeClientFactory>(
58 std::move(*interface_pipe))); 58 std::move(*interface_pipe)));
59 } 59 }
60 } 60 }
61 61
(...skipping 14 matching lines...) Expand all
76 76
77 } // namespace 77 } // namespace
78 78
79 void CreateRenderWidgetWindowTreeClientFactory( 79 void CreateRenderWidgetWindowTreeClientFactory(
80 ServiceManagerConnection* connection) { 80 ServiceManagerConnection* connection) {
81 connection->AddConnectionFilter( 81 connection->AddConnectionFilter(
82 base::MakeUnique<RenderWidgetWindowTreeClientFactoryImpl>()); 82 base::MakeUnique<RenderWidgetWindowTreeClientFactoryImpl>());
83 } 83 }
84 84
85 } // namespace content 85 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/test_service.cc ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698