OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_INPUT_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_INPUT_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_INPUT_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_INPUT_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
11 #include "base/sync_socket.h" | 11 #include "base/sync_socket.h" |
12 #include "ppapi/c/dev/ppb_audio_input_dev.h" | 12 #include "ppapi/c/dev/ppb_audio_input_dev.h" |
13 #include "ppapi/c/pp_completion_callback.h" | 13 #include "ppapi/c/pp_completion_callback.h" |
14 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h" | 14 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h" |
15 #include "ppapi/shared_impl/audio_config_impl.h" | 15 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
16 #include "ppapi/shared_impl/audio_input_impl.h" | 16 #include "ppapi/shared_impl/ppb_audio_input_shared.h" |
17 #include "ppapi/shared_impl/resource.h" | 17 #include "ppapi/shared_impl/resource.h" |
18 #include "ppapi/shared_impl/scoped_pp_resource.h" | 18 #include "ppapi/shared_impl/scoped_pp_resource.h" |
19 #include "webkit/plugins/ppapi/audio_helper.h" | 19 #include "webkit/plugins/ppapi/audio_helper.h" |
20 #include "webkit/plugins/ppapi/plugin_delegate.h" | 20 #include "webkit/plugins/ppapi/plugin_delegate.h" |
21 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 21 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
22 | 22 |
23 namespace webkit { | 23 namespace webkit { |
24 namespace ppapi { | 24 namespace ppapi { |
25 | 25 |
26 // Some of the backend functionality of this class is implemented by the | 26 // Some of the backend functionality of this class is implemented by the |
27 // AudioInputImpl so it can be shared with the proxy. | 27 // AudioInputImpl so it can be shared with the proxy. |
28 class PPB_AudioInput_Impl : public ::ppapi::Resource, | 28 class PPB_AudioInput_Impl : public ::ppapi::Resource, |
29 public ::ppapi::AudioInputImpl, | 29 public ::ppapi::PPB_AudioInput_Shared, |
30 public AudioHelper { | 30 public AudioHelper { |
31 public: | 31 public: |
32 // Trusted initialization. You must call Init after this. | 32 // Trusted initialization. You must call Init after this. |
33 // | 33 // |
34 // Untrusted initialization should just call the static Create() function | 34 // Untrusted initialization should just call the static Create() function |
35 // to properly create & initialize this class. | 35 // to properly create & initialize this class. |
36 explicit PPB_AudioInput_Impl(PP_Instance instance); | 36 explicit PPB_AudioInput_Impl(PP_Instance instance); |
37 | 37 |
38 virtual ~PPB_AudioInput_Impl(); | 38 virtual ~PPB_AudioInput_Impl(); |
39 | 39 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // We don't own this pointer but are responsible for calling Shutdown on it. | 75 // We don't own this pointer but are responsible for calling Shutdown on it. |
76 PluginDelegate::PlatformAudioInput* audio_input_; | 76 PluginDelegate::PlatformAudioInput* audio_input_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(PPB_AudioInput_Impl); | 78 DISALLOW_COPY_AND_ASSIGN(PPB_AudioInput_Impl); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace ppapi | 81 } // namespace ppapi |
82 } // namespace webkit | 82 } // namespace webkit |
83 | 83 |
84 #endif // WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_INPUT_IMPL_H_ | 84 #endif // WEBKIT_PLUGINS_PPAPI_PPB_AUDIO_INPUT_IMPL_H_ |
OLD | NEW |