| OLD | NEW |
| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "ppapi/c/dev/ppb_device_ref_dev.h" | 13 #include "ppapi/c/dev/ppb_device_ref_dev.h" |
| 14 #include "ppapi/proxy/ppapi_proxy_export.h" | 14 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 15 #include "ppapi/shared_impl/thread_aware_callback.h" |
| 15 | 16 |
| 16 namespace IPC { | 17 namespace IPC { |
| 17 class Message; | 18 class Message; |
| 18 } | 19 } |
| 19 | 20 |
| 20 struct PP_ArrayOutput; | 21 struct PP_ArrayOutput; |
| 21 | 22 |
| 22 namespace ppapi { | 23 namespace ppapi { |
| 23 | 24 |
| 24 struct DeviceRefData; | 25 struct DeviceRefData; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 68 |
| 68 int32_t WriteToArrayOutput(const std::vector<DeviceRefData>& devices, | 69 int32_t WriteToArrayOutput(const std::vector<DeviceRefData>& devices, |
| 69 const PP_ArrayOutput& output); | 70 const PP_ArrayOutput& output); |
| 70 | 71 |
| 71 // Not owned by this object. | 72 // Not owned by this object. |
| 72 PluginResource* owner_; | 73 PluginResource* owner_; |
| 73 | 74 |
| 74 bool pending_enumerate_devices_; | 75 bool pending_enumerate_devices_; |
| 75 | 76 |
| 76 uint32_t monitor_callback_id_; | 77 uint32_t monitor_callback_id_; |
| 77 PP_MonitorDeviceChangeCallback monitor_callback_; | 78 scoped_ptr<ThreadAwareCallback<PP_MonitorDeviceChangeCallback> > |
| 79 monitor_callback_; |
| 78 void* monitor_user_data_; | 80 void* monitor_user_data_; |
| 79 | 81 |
| 80 DISALLOW_COPY_AND_ASSIGN(DeviceEnumerationResourceHelper); | 82 DISALLOW_COPY_AND_ASSIGN(DeviceEnumerationResourceHelper); |
| 81 }; | 83 }; |
| 82 | 84 |
| 83 } // namespace proxy | 85 } // namespace proxy |
| 84 } // namespace ppapi | 86 } // namespace ppapi |
| 85 | 87 |
| 86 #endif // PPAPI_PROXY_DEVICE_ENUMERATION_RESOURCE_HELPER_H_ | 88 #endif // PPAPI_PROXY_DEVICE_ENUMERATION_RESOURCE_HELPER_H_ |
| OLD | NEW |