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_audio_input_host.h" | 5 #include "content/renderer/pepper/pepper_audio_input_host.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/renderer/pepper/ppapi_plugin_instance_impl.h" |
9 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" | 10 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" |
10 #include "ipc/ipc_message.h" | 11 #include "ipc/ipc_message.h" |
11 #include "media/audio/shared_memory_util.h" | 12 #include "media/audio/shared_memory_util.h" |
12 #include "ppapi/c/pp_errors.h" | 13 #include "ppapi/c/pp_errors.h" |
13 #include "ppapi/host/dispatch_host_message.h" | 14 #include "ppapi/host/dispatch_host_message.h" |
14 #include "ppapi/host/ppapi_host.h" | 15 #include "ppapi/host/ppapi_host.h" |
15 #include "ppapi/proxy/ppapi_messages.h" | 16 #include "ppapi/proxy/ppapi_messages.h" |
16 #include "ppapi/proxy/serialized_structs.h" | 17 #include "ppapi/proxy/serialized_structs.h" |
17 #include "third_party/WebKit/public/web/WebDocument.h" | 18 #include "third_party/WebKit/public/web/WebDocument.h" |
18 #include "third_party/WebKit/public/web/WebElement.h" | 19 #include "third_party/WebKit/public/web/WebElement.h" |
19 #include "third_party/WebKit/public/web/WebPluginContainer.h" | 20 #include "third_party/WebKit/public/web/WebPluginContainer.h" |
20 #include "webkit/plugins/ppapi/ppapi_plugin_instance_impl.h" | |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 base::PlatformFile ConvertSyncSocketHandle(const base::SyncSocket& socket) { | 26 base::PlatformFile ConvertSyncSocketHandle(const base::SyncSocket& socket) { |
27 return socket.handle(); | 27 return socket.handle(); |
28 } | 28 } |
29 | 29 |
30 base::PlatformFile ConvertSharedMemoryHandle( | 30 base::PlatformFile ConvertSharedMemoryHandle( |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 if (open_context_) { | 219 if (open_context_) { |
220 open_context_->params.set_result(PP_ERROR_ABORTED); | 220 open_context_->params.set_result(PP_ERROR_ABORTED); |
221 host()->SendReply(*open_context_, PpapiPluginMsg_AudioInput_OpenReply()); | 221 host()->SendReply(*open_context_, PpapiPluginMsg_AudioInput_OpenReply()); |
222 open_context_.reset(); | 222 open_context_.reset(); |
223 } | 223 } |
224 } | 224 } |
225 | 225 |
226 } // namespace content | 226 } // namespace content |
227 | 227 |
OLD | NEW |