| 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_AUDIO_INPUT_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_AUDIO_INPUT_RESOURCE_H_ |
| 6 #define PPAPI_PROXY_AUDIO_INPUT_RESOURCE_H_ | 6 #define PPAPI_PROXY_AUDIO_INPUT_RESOURCE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/shared_memory.h" | 12 #include "base/shared_memory.h" |
| 13 #include "base/sync_socket.h" | 13 #include "base/sync_socket.h" |
| 14 #include "base/threading/simple_thread.h" | 14 #include "base/threading/simple_thread.h" |
| 15 #include "ppapi/proxy/device_enumeration_resource_helper.h" | 15 #include "ppapi/proxy/device_enumeration_resource_helper.h" |
| 16 #include "ppapi/proxy/plugin_resource.h" | 16 #include "ppapi/proxy/plugin_resource.h" |
| 17 #include "ppapi/shared_impl/scoped_pp_resource.h" | 17 #include "ppapi/shared_impl/scoped_pp_resource.h" |
| 18 #include "ppapi/thunk/ppb_audio_input_api.h" | 18 #include "ppapi/thunk/ppb_audio_input_api.h" |
| 19 | 19 |
| 20 namespace ppapi { | 20 namespace ppapi { |
| 21 namespace proxy { | 21 namespace proxy { |
| 22 | 22 |
| 23 class ResourceMessageReplyParams; | 23 class ResourceMessageReplyParams; |
| 24 class SerializedHandle; | |
| 25 | 24 |
| 26 class AudioInputResource : public PluginResource, | 25 class AudioInputResource : public PluginResource, |
| 27 public thunk::PPB_AudioInput_API, | 26 public thunk::PPB_AudioInput_API, |
| 28 public base::DelegateSimpleThread::Delegate { | 27 public base::DelegateSimpleThread::Delegate { |
| 29 public: | 28 public: |
| 30 AudioInputResource(Connection connection, PP_Instance instance); | 29 AudioInputResource(Connection connection, PP_Instance instance); |
| 31 virtual ~AudioInputResource(); | 30 virtual ~AudioInputResource(); |
| 32 | 31 |
| 33 // Resource overrides. | 32 // Resource overrides. |
| 34 virtual thunk::PPB_AudioInput_API* AsPPB_AudioInput_API() OVERRIDE; | 33 virtual thunk::PPB_AudioInput_API* AsPPB_AudioInput_API() OVERRIDE; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 119 |
| 121 DeviceEnumerationResourceHelper enumeration_helper_; | 120 DeviceEnumerationResourceHelper enumeration_helper_; |
| 122 | 121 |
| 123 DISALLOW_COPY_AND_ASSIGN(AudioInputResource); | 122 DISALLOW_COPY_AND_ASSIGN(AudioInputResource); |
| 124 }; | 123 }; |
| 125 | 124 |
| 126 } // namespace proxy | 125 } // namespace proxy |
| 127 } // namespace ppapi | 126 } // namespace ppapi |
| 128 | 127 |
| 129 #endif // PPAPI_PROXY_AUDIO_INPUT_RESOURCE_H_ | 128 #endif // PPAPI_PROXY_AUDIO_INPUT_RESOURCE_H_ |
| OLD | NEW |