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 #include "content/renderer/pepper/pepper_device_enumeration_host_helper.h" | 5 #include "content/renderer/pepper/pepper_device_enumeration_host_helper.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "ipc/ipc_message.h" | 11 #include "ipc/ipc_message.h" |
12 #include "ppapi/c/pp_errors.h" | 12 #include "ppapi/c/pp_errors.h" |
13 #include "ppapi/host/dispatch_host_message.h" | 13 #include "ppapi/host/dispatch_host_message.h" |
14 #include "ppapi/host/host_message_context.h" | 14 #include "ppapi/host/host_message_context.h" |
15 #include "ppapi/host/ppapi_host.h" | 15 #include "ppapi/host/ppapi_host.h" |
16 #include "ppapi/host/resource_host.h" | 16 #include "ppapi/host/resource_host.h" |
17 #include "ppapi/proxy/ppapi_messages.h" | 17 #include "ppapi/proxy/ppapi_messages.h" |
18 #include "ppapi/shared_impl/ppb_device_ref_shared.h" | 18 #include "ppapi/shared_impl/ppb_device_ref_shared.h" |
19 #include "webkit/plugins/ppapi/plugin_delegate.h" | 19 #include "webkit/plugins/ppapi/plugin_delegate.h" |
20 | 20 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 bool succeeded, | 191 bool succeeded, |
192 const std::vector<ppapi::DeviceRefData>& devices) { | 192 const std::vector<ppapi::DeviceRefData>& devices) { |
193 resource_host_->host()->SendUnsolicitedReply( | 193 resource_host_->host()->SendUnsolicitedReply( |
194 resource_host_->pp_resource(), | 194 resource_host_->pp_resource(), |
195 PpapiPluginMsg_DeviceEnumeration_NotifyDeviceChange( | 195 PpapiPluginMsg_DeviceEnumeration_NotifyDeviceChange( |
196 callback_id, | 196 callback_id, |
197 succeeded ? devices : std::vector<ppapi::DeviceRefData>())); | 197 succeeded ? devices : std::vector<ppapi::DeviceRefData>())); |
198 } | 198 } |
199 | 199 |
200 } // namespace content | 200 } // namespace content |
OLD | NEW |