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

Side by Side Diff: ppapi/proxy/device_enumeration_resource_helper.h

Issue 1864293002: Convert //ppapi to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more nullptr 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 #ifndef PPAPI_PROXY_DEVICE_ENUMERATION_RESOURCE_HELPER_H_ 5 #ifndef PPAPI_PROXY_DEVICE_ENUMERATION_RESOURCE_HELPER_H_
6 #define PPAPI_PROXY_DEVICE_ENUMERATION_RESOURCE_HELPER_H_ 6 #define PPAPI_PROXY_DEVICE_ENUMERATION_RESOURCE_HELPER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory>
10 #include <vector> 11 #include <vector>
11 12
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
15 #include "ppapi/c/dev/ppb_device_ref_dev.h" 16 #include "ppapi/c/dev/ppb_device_ref_dev.h"
16 #include "ppapi/proxy/ppapi_proxy_export.h" 17 #include "ppapi/proxy/ppapi_proxy_export.h"
17 #include "ppapi/shared_impl/thread_aware_callback.h" 18 #include "ppapi/shared_impl/thread_aware_callback.h"
18 19
19 namespace IPC { 20 namespace IPC {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 64
64 int32_t WriteToArrayOutput(const std::vector<DeviceRefData>& devices, 65 int32_t WriteToArrayOutput(const std::vector<DeviceRefData>& devices,
65 const PP_ArrayOutput& output); 66 const PP_ArrayOutput& output);
66 67
67 // Not owned by this object. 68 // Not owned by this object.
68 PluginResource* owner_; 69 PluginResource* owner_;
69 70
70 bool pending_enumerate_devices_; 71 bool pending_enumerate_devices_;
71 72
72 uint32_t monitor_callback_id_; 73 uint32_t monitor_callback_id_;
73 scoped_ptr<ThreadAwareCallback<PP_MonitorDeviceChangeCallback> > 74 std::unique_ptr<ThreadAwareCallback<PP_MonitorDeviceChangeCallback>>
74 monitor_callback_; 75 monitor_callback_;
75 void* monitor_user_data_; 76 void* monitor_user_data_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(DeviceEnumerationResourceHelper); 78 DISALLOW_COPY_AND_ASSIGN(DeviceEnumerationResourceHelper);
78 }; 79 };
79 80
80 } // namespace proxy 81 } // namespace proxy
81 } // namespace ppapi 82 } // namespace ppapi
82 83
83 #endif // PPAPI_PROXY_DEVICE_ENUMERATION_RESOURCE_HELPER_H_ 84 #endif // PPAPI_PROXY_DEVICE_ENUMERATION_RESOURCE_HELPER_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/camera_capabilities_resource.h ('k') | ppapi/proxy/device_enumeration_resource_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698