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

Side by Side Diff: content/renderer/pepper/host_dispatcher_wrapper.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_
6 #define CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_ 6 #define CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "content/renderer/pepper/pepper_hung_plugin_filter.h" 10 #include "content/renderer/pepper/pepper_hung_plugin_filter.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 base::ProcessId peer_pid_; 62 base::ProcessId peer_pid_;
63 63
64 // ID that the browser process uses to idetify the child process for the 64 // ID that the browser process uses to idetify the child process for the
65 // plugin. This isn't directly useful from our process (the renderer) except 65 // plugin. This isn't directly useful from our process (the renderer) except
66 // in messages to the browser to disambiguate plugins. 66 // in messages to the browser to disambiguate plugins.
67 int plugin_child_id_; 67 int plugin_child_id_;
68 68
69 ppapi::PpapiPermissions permissions_; 69 ppapi::PpapiPermissions permissions_;
70 bool is_external_; 70 bool is_external_;
71 71
72 scoped_ptr<ppapi::proxy::HostDispatcher> dispatcher_; 72 std::unique_ptr<ppapi::proxy::HostDispatcher> dispatcher_;
73 scoped_ptr<ppapi::proxy::ProxyChannel::Delegate> dispatcher_delegate_; 73 std::unique_ptr<ppapi::proxy::ProxyChannel::Delegate> dispatcher_delegate_;
74 // We hold the hung_plugin_filter_ to guarantee it outlives |dispatcher_|, 74 // We hold the hung_plugin_filter_ to guarantee it outlives |dispatcher_|,
75 // since it is an observer of |dispatcher_| for sync calls. 75 // since it is an observer of |dispatcher_| for sync calls.
76 scoped_refptr<PepperHungPluginFilter> hung_plugin_filter_; 76 scoped_refptr<PepperHungPluginFilter> hung_plugin_filter_;
77 }; 77 };
78 78
79 } // namespace content 79 } // namespace content
80 80
81 #endif // CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_ 81 #endif // CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/host_array_buffer_var.cc ('k') | content/renderer/pepper/host_resource_var.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698