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

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

Issue 7105013: Convert more interfaces to the new thunk system. This goes up to and including (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months 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/plugin_resource_tracker.cc ('k') | ppapi/proxy/ppb_audio_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "ppapi/proxy/ppb_audio_config_proxy.h" 5 #include "ppapi/proxy/ppb_audio_config_proxy.h"
6 6
7 #include "ppapi/c/ppb_audio_config.h" 7 #include "ppapi/c/ppb_audio_config.h"
8 #include "ppapi/proxy/plugin_dispatcher.h" 8 #include "ppapi/proxy/plugin_dispatcher.h"
9 #include "ppapi/proxy/plugin_resource.h" 9 #include "ppapi/proxy/plugin_resource.h"
10 #include "ppapi/proxy/ppapi_messages.h" 10 #include "ppapi/proxy/ppapi_messages.h"
11 #include "ppapi/shared_impl/audio_config_impl.h" 11 #include "ppapi/shared_impl/audio_config_impl.h"
12 #include "ppapi/thunk/thunk.h" 12 #include "ppapi/thunk/thunk.h"
13 13
14 namespace pp { 14 namespace pp {
15 namespace proxy { 15 namespace proxy {
16 16
17 // The implementation is actually in AudioConfigImpl. 17 // The implementation is actually in AudioConfigImpl.
18 class AudioConfig : public PluginResource, 18 class AudioConfig : public PluginResource,
19 public ppapi::AudioConfigImpl { 19 public ppapi::AudioConfigImpl {
20 public: 20 public:
21 // Note that you must call Init (on AudioConfigImpl) before using this class. 21 // Note that you must call Init (on AudioConfigImpl) before using this class.
22 AudioConfig(const HostResource& resource); 22 AudioConfig(const HostResource& resource);
23 virtual ~AudioConfig(); 23 virtual ~AudioConfig();
24 24
25 // ResourceObjectBase overrides. 25 // ResourceObjectBase overrides.
26 virtual ::ppapi::thunk::PPB_AudioConfig_API* AsAudioConfig_API() OVERRIDE; 26 virtual ::ppapi::thunk::PPB_AudioConfig_API* AsPPB_AudioConfig_API() OVERRIDE;
27 27
28 private: 28 private:
29 DISALLOW_COPY_AND_ASSIGN(AudioConfig); 29 DISALLOW_COPY_AND_ASSIGN(AudioConfig);
30 }; 30 };
31 31
32 AudioConfig::AudioConfig(const HostResource& resource) 32 AudioConfig::AudioConfig(const HostResource& resource)
33 : PluginResource(resource) { 33 : PluginResource(resource) {
34 } 34 }
35 35
36 AudioConfig::~AudioConfig() { 36 AudioConfig::~AudioConfig() {
37 } 37 }
38 38
39 ::ppapi::thunk::PPB_AudioConfig_API* AudioConfig::AsAudioConfig_API() { 39 ::ppapi::thunk::PPB_AudioConfig_API* AudioConfig::AsPPB_AudioConfig_API() {
40 return this; 40 return this;
41 } 41 }
42 42
43 namespace { 43 namespace {
44 44
45 InterfaceProxy* CreateAudioConfigProxy(Dispatcher* dispatcher, 45 InterfaceProxy* CreateAudioConfigProxy(Dispatcher* dispatcher,
46 const void* target_interface) { 46 const void* target_interface) {
47 return new PPB_AudioConfig_Proxy(dispatcher, target_interface); 47 return new PPB_AudioConfig_Proxy(dispatcher, target_interface);
48 } 48 }
49 49
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 83
84 bool PPB_AudioConfig_Proxy::OnMessageReceived(const IPC::Message& msg) { 84 bool PPB_AudioConfig_Proxy::OnMessageReceived(const IPC::Message& msg) {
85 // There are no IPC messages for this interface. 85 // There are no IPC messages for this interface.
86 NOTREACHED(); 86 NOTREACHED();
87 return false; 87 return false;
88 } 88 }
89 89
90 } // namespace proxy 90 } // namespace proxy
91 } // namespace pp 91 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_resource_tracker.cc ('k') | ppapi/proxy/ppb_audio_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698