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

Side by Side Diff: content/renderer/pepper/host_resource_var.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_RESOURCE_VAR_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_HOST_RESOURCE_VAR_H_
6 #define CONTENT_RENDERER_PEPPER_HOST_RESOURCE_VAR_H_ 6 #define CONTENT_RENDERER_PEPPER_HOST_RESOURCE_VAR_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ipc/ipc_message.h" 11 #include "ipc/ipc_message.h"
11 #include "ppapi/c/pp_resource.h" 12 #include "ppapi/c/pp_resource.h"
12 #include "ppapi/shared_impl/resource_var.h" 13 #include "ppapi/shared_impl/resource_var.h"
13 #include "ppapi/shared_impl/var.h" 14 #include "ppapi/shared_impl/var.h"
14 15
15 namespace content { 16 namespace content {
16 17
17 // Represents a resource var, usable on the host side. Can either have a 18 // Represents a resource var, usable on the host side. Can either have a
18 // plugin-side resource or a pending resource host. 19 // plugin-side resource or a pending resource host.
19 class HostResourceVar : public ppapi::ResourceVar { 20 class HostResourceVar : public ppapi::ResourceVar {
(...skipping 30 matching lines...) Expand all
50 PP_Resource pp_resource_; 51 PP_Resource pp_resource_;
51 52
52 // Pending resource host ID in the renderer. 53 // Pending resource host ID in the renderer.
53 int pending_renderer_host_id_; 54 int pending_renderer_host_id_;
54 55
55 // Pending resource host ID in the browser. 56 // Pending resource host ID in the browser.
56 int pending_browser_host_id_; 57 int pending_browser_host_id_;
57 58
58 // If the plugin-side resource has not yet been created, carries a message to 59 // If the plugin-side resource has not yet been created, carries a message to
59 // create a resource of the specific type on the plugin side. Otherwise, NULL. 60 // create a resource of the specific type on the plugin side. Otherwise, NULL.
60 scoped_ptr<IPC::Message> creation_message_; 61 std::unique_ptr<IPC::Message> creation_message_;
61 62
62 DISALLOW_COPY_AND_ASSIGN(HostResourceVar); 63 DISALLOW_COPY_AND_ASSIGN(HostResourceVar);
63 }; 64 };
64 65
65 } // namespace content 66 } // namespace content
66 67
67 #endif // CONTENT_RENDERER_PEPPER_HOST_RESOURCE_VAR_H_ 68 #endif // CONTENT_RENDERER_PEPPER_HOST_RESOURCE_VAR_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/host_dispatcher_wrapper.h ('k') | content/renderer/pepper/host_var_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698