| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |