Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: content/renderer/mojo/service_registry_js_wrapper.cc

Issue 1873783003: Convert //content/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/renderer/manifest/manifest_manager.cc ('k') | content/renderer/mojo_bindings_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698