Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: ppapi/proxy/ppb_audio_config_proxy.h

Issue 4985001: Initial audio implementation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppapi_messages_internal.h ('k') | ppapi/proxy/ppb_audio_config_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_PROXY_PPB_AUDIO_CONFIG_PROXY_H_
6 #define PPAPI_PROXY_PPB_AUDIO_CONFIG_PROXY_H_
7
8 #include "base/basictypes.h"
9 #include "ppapi/c/pp_module.h"
10 #include "ppapi/c/pp_resource.h"
11 #include "ppapi/proxy/interface_proxy.h"
12
13 struct PPB_AudioConfig_Dev;
14
15 namespace pp {
16 namespace proxy {
17
18 class PPB_AudioConfig_Proxy : public InterfaceProxy {
19 public:
20 PPB_AudioConfig_Proxy(Dispatcher* dispatcher, const void* target_interface);
21 virtual ~PPB_AudioConfig_Proxy();
22
23 const PPB_AudioConfig_Dev* ppb_audio_config_target() const {
24 return static_cast<const PPB_AudioConfig_Dev*>(target_interface());
25 }
26
27 // InterfaceProxy implementation.
28 virtual const void* GetSourceInterface() const;
29 virtual InterfaceID GetInterfaceId() const;
30 virtual void OnMessageReceived(const IPC::Message& msg);
31
32 private:
33 // Message handlers.
34 void OnMsgCreateStereo16Bit(PP_Module module,
35 int32_t sample_rate,
36 uint32_t sample_frame_count,
37 PP_Resource* result);
38 void OnMsgRecommendSampleFrameCount(uint32_t requested, uint32_t* result);
39
40 DISALLOW_COPY_AND_ASSIGN(PPB_AudioConfig_Proxy);
41 };
42
43 } // namespace proxy
44 } // namespace pp
45
46 #endif // PPAPI_PROXY_PPB_AUDIO_CONFIG_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages_internal.h ('k') | ppapi/proxy/ppb_audio_config_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698