OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
bbudge
2011/08/16 22:40:49
2011
| |
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_PPB_AUDIO_CONFIG_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_AUDIO_CONFIG_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_AUDIO_CONFIG_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_AUDIO_CONFIG_PROXY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/c/pp_resource.h" | 10 #include "ppapi/c/pp_resource.h" |
11 #include "ppapi/c/ppb_audio_config.h" | 11 #include "ppapi/c/ppb_audio_config.h" |
12 #include "ppapi/proxy/interface_proxy.h" | 12 #include "ppapi/proxy/interface_proxy.h" |
13 | 13 |
14 struct PPB_AudioConfig; | 14 struct PPB_AudioConfig; |
15 | 15 |
16 namespace pp { | 16 namespace ppapi { |
17 namespace proxy { | 17 namespace proxy { |
18 | 18 |
19 class PPB_AudioConfig_Proxy : public InterfaceProxy { | 19 class PPB_AudioConfig_Proxy : public InterfaceProxy { |
20 public: | 20 public: |
21 PPB_AudioConfig_Proxy(Dispatcher* dispatcher, const void* target_interface); | 21 PPB_AudioConfig_Proxy(Dispatcher* dispatcher, const void* target_interface); |
22 virtual ~PPB_AudioConfig_Proxy(); | 22 virtual ~PPB_AudioConfig_Proxy(); |
23 | 23 |
24 static const Info* GetInfo(); | 24 static const Info* GetInfo(); |
25 | 25 |
26 static PP_Resource CreateProxyResource(PP_Instance instance, | 26 static PP_Resource CreateProxyResource(PP_Instance instance, |
27 PP_AudioSampleRate sample_rate, | 27 PP_AudioSampleRate sample_rate, |
28 uint32_t sample_frame_count); | 28 uint32_t sample_frame_count); |
29 | 29 |
30 // InterfaceProxy implementation. | 30 // InterfaceProxy implementation. |
31 virtual bool OnMessageReceived(const IPC::Message& msg); | 31 virtual bool OnMessageReceived(const IPC::Message& msg); |
32 | 32 |
33 private: | 33 private: |
34 DISALLOW_COPY_AND_ASSIGN(PPB_AudioConfig_Proxy); | 34 DISALLOW_COPY_AND_ASSIGN(PPB_AudioConfig_Proxy); |
35 }; | 35 }; |
36 | 36 |
37 } // namespace proxy | 37 } // namespace proxy |
38 } // namespace pp | 38 } // namespace ppapi |
39 | 39 |
40 #endif // PPAPI_PROXY_PPB_AUDIO_CONFIG_PROXY_H_ | 40 #endif // PPAPI_PROXY_PPB_AUDIO_CONFIG_PROXY_H_ |
OLD | NEW |