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

Side by Side Diff: content/renderer/pepper/pepper_webplugin_impl.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/pepper_webplugin_impl.h" 5 #include "content/renderer/pepper/pepper_webplugin_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <cmath> 8 #include <cmath>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 RenderFrameImpl* render_frame; 53 RenderFrameImpl* render_frame;
54 std::vector<std::string> arg_names; 54 std::vector<std::string> arg_names;
55 std::vector<std::string> arg_values; 55 std::vector<std::string> arg_values;
56 GURL url; 56 GURL url;
57 }; 57 };
58 58
59 PepperWebPluginImpl::PepperWebPluginImpl( 59 PepperWebPluginImpl::PepperWebPluginImpl(
60 PluginModule* plugin_module, 60 PluginModule* plugin_module,
61 const WebPluginParams& params, 61 const WebPluginParams& params,
62 RenderFrameImpl* render_frame, 62 RenderFrameImpl* render_frame,
63 scoped_ptr<PluginInstanceThrottlerImpl> throttler) 63 std::unique_ptr<PluginInstanceThrottlerImpl> throttler)
64 : init_data_(new InitData()), 64 : init_data_(new InitData()),
65 full_frame_(params.loadManually), 65 full_frame_(params.loadManually),
66 throttler_(std::move(throttler)), 66 throttler_(std::move(throttler)),
67 instance_object_(PP_MakeUndefined()), 67 instance_object_(PP_MakeUndefined()),
68 container_(nullptr), 68 container_(nullptr),
69 destroyed_(false) { 69 destroyed_(false) {
70 DCHECK(plugin_module); 70 DCHECK(plugin_module);
71 init_data_->module = plugin_module; 71 init_data_->module = plugin_module;
72 init_data_->render_frame = render_frame; 72 init_data_->render_frame = render_frame;
73 for (size_t i = 0; i < params.attributeNames.size(); ++i) { 73 for (size_t i = 0; i < params.attributeNames.size(); ++i) {
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 302
303 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } 303 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); }
304 304
305 void PepperWebPluginImpl::rotateView(RotationType type) { 305 void PepperWebPluginImpl::rotateView(RotationType type) {
306 instance_->RotateView(type); 306 instance_->RotateView(type);
307 } 307 }
308 308
309 bool PepperWebPluginImpl::isPlaceholder() { return false; } 309 bool PepperWebPluginImpl::isPlaceholder() { return false; }
310 310
311 } // namespace content 311 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_webplugin_impl.h ('k') | content/renderer/pepper/pepper_webplugin_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698