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

Unified Diff: content/renderer/pepper/renderer_ppapi_host_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/renderer_ppapi_host_impl.h
diff --git a/content/renderer/pepper/renderer_ppapi_host_impl.h b/content/renderer/pepper/renderer_ppapi_host_impl.h
index f73100b8297cad096be7da8007965ca4982c3104..8cb6a5d8d4e0e9582fa347cf310d8a9ecc075182 100644
--- a/content/renderer/pepper/renderer_ppapi_host_impl.h
+++ b/content/renderer/pepper/renderer_ppapi_host_impl.h
@@ -5,8 +5,9 @@
#ifndef CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_
#define CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "content/public/renderer/renderer_ppapi_host.h"
#include "content/renderer/pepper/content_renderer_pepper_host_factory.h"
#include "ppapi/host/ppapi_host.h"
@@ -68,8 +69,8 @@ class RendererPpapiHostImpl : public RendererPpapiHost {
// host impl should outlive the returned pointer. Since the resource
// creation object is associated with the instance, this will generally
// happen automatically.
- scoped_ptr<ppapi::thunk::ResourceCreationAPI>
- CreateInProcessResourceCreationAPI(PepperPluginInstanceImpl* instance);
+ std::unique_ptr<ppapi::thunk::ResourceCreationAPI>
+ CreateInProcessResourceCreationAPI(PepperPluginInstanceImpl* instance);
PepperPluginInstanceImpl* GetPluginInstanceImpl(PP_Instance instance) const;
@@ -124,10 +125,10 @@ class RendererPpapiHostImpl : public RendererPpapiHost {
// Will be null when running in-process. Non-owning pointer.
ppapi::proxy::HostDispatcher* dispatcher_;
- scoped_ptr<ppapi::host::PpapiHost> ppapi_host_;
+ std::unique_ptr<ppapi::host::PpapiHost> ppapi_host_;
// Null when running out-of-process.
- scoped_ptr<PepperInProcessRouter> in_process_router_;
+ std::unique_ptr<PepperInProcessRouter> in_process_router_;
// Whether the plugin is running in process.
bool is_running_in_process_;
« no previous file with comments | « content/renderer/pepper/ppb_video_decoder_impl.h ('k') | content/renderer/pepper/renderer_ppapi_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698