OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_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 pp { |
17 namespace proxy { | 17 namespace proxy { |
18 | 18 |
19 class HostResource; | |
20 | |
21 class PPB_AudioConfig_Proxy : public InterfaceProxy { | 19 class PPB_AudioConfig_Proxy : public InterfaceProxy { |
22 public: | 20 public: |
23 PPB_AudioConfig_Proxy(Dispatcher* dispatcher, const void* target_interface); | 21 PPB_AudioConfig_Proxy(Dispatcher* dispatcher, const void* target_interface); |
24 virtual ~PPB_AudioConfig_Proxy(); | 22 virtual ~PPB_AudioConfig_Proxy(); |
25 | 23 |
26 static const Info* GetInfo(); | 24 static const Info* GetInfo(); |
27 | 25 |
28 static PP_Resource CreateProxyResource(PP_Instance instance, | 26 static PP_Resource CreateProxyResource(PP_Instance instance, |
29 PP_AudioSampleRate sample_rate, | 27 PP_AudioSampleRate sample_rate, |
30 uint32_t sample_frame_count); | 28 uint32_t sample_frame_count); |
31 | 29 |
32 // InterfaceProxy implementation. | 30 // InterfaceProxy implementation. |
33 virtual bool OnMessageReceived(const IPC::Message& msg); | 31 virtual bool OnMessageReceived(const IPC::Message& msg); |
34 | 32 |
35 private: | 33 private: |
36 DISALLOW_COPY_AND_ASSIGN(PPB_AudioConfig_Proxy); | 34 DISALLOW_COPY_AND_ASSIGN(PPB_AudioConfig_Proxy); |
37 }; | 35 }; |
38 | 36 |
39 } // namespace proxy | 37 } // namespace proxy |
40 } // namespace pp | 38 } // namespace pp |
41 | 39 |
42 #endif // PPAPI_PROXY_PPB_AUDIO_CONFIG_PROXY_H_ | 40 #endif // PPAPI_PROXY_PPB_AUDIO_CONFIG_PROXY_H_ |
OLD | NEW |