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

Unified Diff: content/renderer/pepper/pepper_webplugin_impl.h

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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper/pepper_webplugin_impl.h
diff --git a/content/renderer/pepper/pepper_webplugin_impl.h b/content/renderer/pepper/pepper_webplugin_impl.h
index 3ec6ea20a2966df44985a429b3eae1a3c0e5a8ef..49a0832c5ae481ffcdc3aa38859d5dc0ea4f2d48 100644
--- a/content/renderer/pepper/pepper_webplugin_impl.h
+++ b/content/renderer/pepper/pepper_webplugin_impl.h
@@ -5,11 +5,11 @@
#ifndef CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_
#define CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_
+#include <memory>
#include <string>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/sequenced_task_runner_helpers.h"
#include "ppapi/c/pp_var.h"
@@ -36,7 +36,7 @@ class PepperWebPluginImpl : public blink::WebPlugin {
PepperWebPluginImpl(PluginModule* module,
const blink::WebPluginParams& params,
RenderFrameImpl* render_frame,
- scoped_ptr<PluginInstanceThrottlerImpl> throttler);
+ std::unique_ptr<PluginInstanceThrottlerImpl> throttler);
PepperPluginInstanceImpl* instance() { return instance_.get(); }
@@ -89,11 +89,12 @@ class PepperWebPluginImpl : public blink::WebPlugin {
virtual ~PepperWebPluginImpl();
struct InitData;
- scoped_ptr<InitData> init_data_; // Cleared upon successful initialization.
+ std::unique_ptr<InitData>
+ init_data_; // Cleared upon successful initialization.
// True if the instance represents the entire document in a frame instead of
// being an embedded resource.
bool full_frame_;
- scoped_ptr<PluginInstanceThrottlerImpl> throttler_;
+ std::unique_ptr<PluginInstanceThrottlerImpl> throttler_;
scoped_refptr<PepperPluginInstanceImpl> instance_;
gfx::Rect plugin_rect_;
PP_Var instance_object_;
« no previous file with comments | « content/renderer/pepper/pepper_video_source_host.h ('k') | content/renderer/pepper/pepper_webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698