| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ServiceConnector_h | 5 #ifndef ServiceConnector_h |
| 6 #define ServiceConnector_h | 6 #define ServiceConnector_h |
| 7 | 7 |
| 8 #include "mojo/public/cpp/bindings/binding.h" | 8 #include "mojo/public/cpp/bindings/binding.h" |
| 9 #include "platform/ServiceConnector.h" |
| 9 #include "public/platform/Platform.h" | 10 #include "public/platform/Platform.h" |
| 10 #include "services/service_manager/public/interfaces/connector.mojom-blink.h" | 11 #include "services/service_manager/public/interfaces/connector.mojom-blink.h" |
| 11 #include "wtf/StdLibExtras.h" | 12 #include "wtf/StdLibExtras.h" |
| 12 | 13 |
| 13 namespace blink { | 14 namespace blink { |
| 14 | 15 |
| 15 // ServiceConnector supports connecting to Mojo services by name. | 16 // ServiceConnector supports connecting to Mojo services by name. |
| 16 class ServiceConnector { | 17 class ServiceConnector { |
| 17 public: | 18 public: |
| 18 static ServiceConnector& instance() { | 19 static ServiceConnector& instance() { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 static void onConnectionCompleted( | 52 static void onConnectionCompleted( |
| 52 service_manager::mojom::ConnectResult result, | 53 service_manager::mojom::ConnectResult result, |
| 53 const WTF::String& targetUserID) {} | 54 const WTF::String& targetUserID) {} |
| 54 | 55 |
| 55 service_manager::mojom::blink::ConnectorPtr m_connector; | 56 service_manager::mojom::blink::ConnectorPtr m_connector; |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 } // namespace blink | 59 } // namespace blink |
| 59 | 60 |
| 60 #endif // ServiceConnector_h | 61 #endif // ServiceConnector_h |
| OLD | NEW |