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

Side by Side Diff: content/renderer/pepper/plugin_object.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
« no previous file with comments | « content/renderer/pepper/plugin_module.cc ('k') | content/renderer/pepper/ppb_buffer_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/pepper/plugin_object.h" 5 #include "content/renderer/pepper/plugin_object.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory>
10
9 #include "base/bind.h" 11 #include "base/bind.h"
10 #include "base/logging.h" 12 #include "base/logging.h"
11 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
14 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
15 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" 16 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
16 #include "content/renderer/pepper/pepper_try_catch.h" 17 #include "content/renderer/pepper/pepper_try_catch.h"
17 #include "content/renderer/pepper/plugin_module.h" 18 #include "content/renderer/pepper/plugin_module.h"
18 #include "content/renderer/pepper/v8_var_converter.h" 19 #include "content/renderer/pepper/v8_var_converter.h"
19 #include "gin/arguments.h" 20 #include "gin/arguments.h"
20 #include "gin/converter.h" 21 #include "gin/converter.h"
21 #include "gin/function_template.h" 22 #include "gin/function_template.h"
22 #include "gin/handle.h" 23 #include "gin/handle.h"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 return function_template; 298 return function_template;
298 function_template = 299 function_template =
299 gin::CreateFunctionTemplate( 300 gin::CreateFunctionTemplate(
300 isolate, base::Bind(&PluginObject::Call, weak_factory_.GetWeakPtr(), 301 isolate, base::Bind(&PluginObject::Call, weak_factory_.GetWeakPtr(),
301 name)); 302 name));
302 template_cache_.Set(name, function_template); 303 template_cache_.Set(name, function_template);
303 return function_template; 304 return function_template;
304 } 305 }
305 306
306 } // namespace content 307 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/plugin_module.cc ('k') | content/renderer/pepper/ppb_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698