| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_COMMON_MOJO_SERVICE_REGISTRY_IMPL_H_ | 5 #ifndef CONTENT_COMMON_MOJO_SERVICE_REGISTRY_IMPL_H_ |
| 6 #define CONTENT_COMMON_MOJO_SERVICE_REGISTRY_IMPL_H_ | 6 #define CONTENT_COMMON_MOJO_SERVICE_REGISTRY_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "content/public/common/service_registry.h" | 15 #include "content/public/common/service_registry.h" |
| 16 #include "mojo/public/cpp/bindings/interface_impl.h" | 16 #include "mojo/public/cpp/bindings/interface_impl.h" |
| 17 #include "mojo/public/cpp/system/core.h" | 17 #include "mojo/public/cpp/system/core.h" |
| 18 #include "mojo/public/interfaces/service_provider/service_provider.mojom.h" | 18 #include "mojo/public/interfaces/application/service_provider.mojom.h" |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 | 21 |
| 22 class ServiceRegistryImpl : public ServiceRegistry, | 22 class ServiceRegistryImpl : public ServiceRegistry, |
| 23 public mojo::InterfaceImpl<mojo::ServiceProvider> { | 23 public mojo::InterfaceImpl<mojo::ServiceProvider> { |
| 24 public: | 24 public: |
| 25 ServiceRegistryImpl(); | 25 ServiceRegistryImpl(); |
| 26 explicit ServiceRegistryImpl(mojo::ScopedMessagePipeHandle handle); | 26 explicit ServiceRegistryImpl(mojo::ScopedMessagePipeHandle handle); |
| 27 virtual ~ServiceRegistryImpl(); | 27 virtual ~ServiceRegistryImpl(); |
| 28 | 28 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 56 std::queue<std::pair<std::string, mojo::MessagePipeHandle> > | 56 std::queue<std::pair<std::string, mojo::MessagePipeHandle> > |
| 57 pending_connects_; | 57 pending_connects_; |
| 58 bool bound_; | 58 bool bound_; |
| 59 | 59 |
| 60 base::WeakPtrFactory<ServiceRegistry> weak_factory_; | 60 base::WeakPtrFactory<ServiceRegistry> weak_factory_; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace content | 63 } // namespace content |
| 64 | 64 |
| 65 #endif // CONTENT_COMMON_MOJO_SERVICE_REGISTRY_IMPL_H_ | 65 #endif // CONTENT_COMMON_MOJO_SERVICE_REGISTRY_IMPL_H_ |
| OLD | NEW |