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 <memory> |
7 #include <utility> | 8 #include <utility> |
8 | 9 |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "content/common/mojo/service_registry_impl.h" | 10 #include "content/common/mojo/service_registry_impl.h" |
11 #include "content/public/common/service_registry.h" | 11 #include "content/public/common/service_registry.h" |
12 #include "mojo/edk/js/handle.h" | 12 #include "mojo/edk/js/handle.h" |
13 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 13 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 gin::WrapperInfo ServiceRegistryJsWrapper::kWrapperInfo = { | 17 gin::WrapperInfo ServiceRegistryJsWrapper::kWrapperInfo = { |
18 gin::kEmbedderNativeGin}; | 18 gin::kEmbedderNativeGin}; |
19 const char ServiceRegistryJsWrapper::kPerFrameModuleName[] = | 19 const char ServiceRegistryJsWrapper::kPerFrameModuleName[] = |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 } | 106 } |
107 | 107 |
108 // static | 108 // static |
109 void ServiceRegistryJsWrapper::ClearContext( | 109 void ServiceRegistryJsWrapper::ClearContext( |
110 const v8::WeakCallbackInfo<ServiceRegistryJsWrapper>& data) { | 110 const v8::WeakCallbackInfo<ServiceRegistryJsWrapper>& data) { |
111 ServiceRegistryJsWrapper* service_registry = data.GetParameter(); | 111 ServiceRegistryJsWrapper* service_registry = data.GetParameter(); |
112 service_registry->context_.Reset(); | 112 service_registry->context_.Reset(); |
113 } | 113 } |
114 | 114 |
115 } // namespace content | 115 } // namespace content |
OLD | NEW |