| 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 #include "content/renderer/mojo/service_registry_js_wrapper.h" | 5 #include "content/renderer/mojo/service_registry_js_wrapper.h" |
| 6 | 6 |
| 7 #include "content/common/mojo/service_registry_impl.h" | 7 #include "content/common/mojo/service_registry_impl.h" |
| 8 #include "content/public/common/service_registry.h" | 8 #include "content/public/common/service_registry.h" |
| 9 #include "mojo/bindings/js/handle.h" | 9 #include "mojo/edk/js/handle.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 | 12 |
| 13 gin::WrapperInfo ServiceRegistryJsWrapper::kWrapperInfo = { | 13 gin::WrapperInfo ServiceRegistryJsWrapper::kWrapperInfo = { |
| 14 gin::kEmbedderNativeGin}; | 14 gin::kEmbedderNativeGin}; |
| 15 const char ServiceRegistryJsWrapper::kModuleName[] = | 15 const char ServiceRegistryJsWrapper::kModuleName[] = |
| 16 "content/public/renderer/service_provider"; | 16 "content/public/renderer/service_provider"; |
| 17 | 17 |
| 18 ServiceRegistryJsWrapper::~ServiceRegistryJsWrapper() { | 18 ServiceRegistryJsWrapper::~ServiceRegistryJsWrapper() { |
| 19 } | 19 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 43 pipe.handle0.Pass()); | 43 pipe.handle0.Pass()); |
| 44 return pipe.handle1.release(); | 44 return pipe.handle1.release(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 ServiceRegistryJsWrapper::ServiceRegistryJsWrapper( | 47 ServiceRegistryJsWrapper::ServiceRegistryJsWrapper( |
| 48 base::WeakPtr<ServiceRegistry> service_registry) | 48 base::WeakPtr<ServiceRegistry> service_registry) |
| 49 : service_registry_(service_registry) { | 49 : service_registry_(service_registry) { |
| 50 } | 50 } |
| 51 | 51 |
| 52 } // namespace content | 52 } // namespace content |
| OLD | NEW |