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 PPAPI_SHARED_IMPL_AUDIO_CONFIG_IMPL_H_ | 5 #ifndef PPAPI_SHARED_IMPL_AUDIO_CONFIG_IMPL_H_ |
6 #define PPAPI_SHARED_IMPL_AUDIO_CONFIG_IMPL_H_ | 6 #define PPAPI_SHARED_IMPL_AUDIO_CONFIG_IMPL_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 "ppapi/shared_impl/resource.h" | 10 #include "ppapi/shared_impl/resource.h" |
11 #include "ppapi/thunk/ppb_audio_config_api.h" | 11 #include "ppapi/thunk/ppb_audio_config_api.h" |
12 | 12 |
13 namespace ppapi { | 13 namespace ppapi { |
14 | 14 |
15 class AudioConfigImpl : public Resource, | 15 class PPAPI_SHARED_EXPORT AudioConfigImpl |
16 public thunk::PPB_AudioConfig_API { | 16 : public Resource, |
| 17 public thunk::PPB_AudioConfig_API { |
17 public: | 18 public: |
18 virtual ~AudioConfigImpl(); | 19 virtual ~AudioConfigImpl(); |
19 | 20 |
20 static PP_Resource CreateAsImpl(PP_Instance instance, | 21 static PP_Resource CreateAsImpl(PP_Instance instance, |
21 PP_AudioSampleRate sample_rate, | 22 PP_AudioSampleRate sample_rate, |
22 uint32_t sample_frame_count); | 23 uint32_t sample_frame_count); |
23 static PP_Resource CreateAsProxy(PP_Instance instance, | 24 static PP_Resource CreateAsProxy(PP_Instance instance, |
24 PP_AudioSampleRate sample_rate, | 25 PP_AudioSampleRate sample_rate, |
25 uint32_t sample_frame_count); | 26 uint32_t sample_frame_count); |
26 | 27 |
(...skipping 15 matching lines...) Expand all Loading... |
42 | 43 |
43 PP_AudioSampleRate sample_rate_; | 44 PP_AudioSampleRate sample_rate_; |
44 uint32_t sample_frame_count_; | 45 uint32_t sample_frame_count_; |
45 | 46 |
46 DISALLOW_COPY_AND_ASSIGN(AudioConfigImpl); | 47 DISALLOW_COPY_AND_ASSIGN(AudioConfigImpl); |
47 }; | 48 }; |
48 | 49 |
49 } // namespace ppapi | 50 } // namespace ppapi |
50 | 51 |
51 #endif // PPAPI_SHARED_IMPL_AUDIO_CONFIG_IMPL_H_ | 52 #endif // PPAPI_SHARED_IMPL_AUDIO_CONFIG_IMPL_H_ |
OLD | NEW |