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

Unified Diff: ppapi/proxy/ppb_audio_config_proxy.cc

Issue 7621070: Merge the plugin and impl side of the audio config and input event resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compile issues Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/ppb_audio_config_proxy.cc
diff --git a/ppapi/proxy/ppb_audio_config_proxy.cc b/ppapi/proxy/ppb_audio_config_proxy.cc
index 5f063e32d80bf1adaec7bffd11f304237a5e0981..d578fd529b4bc49ff17090bc97a98fc93735e0a5 100644
--- a/ppapi/proxy/ppb_audio_config_proxy.cc
+++ b/ppapi/proxy/ppb_audio_config_proxy.cc
@@ -13,30 +13,6 @@
namespace ppapi {
namespace proxy {
-// The implementation is actually in AudioConfigImpl.
-class AudioConfig : public Resource, public AudioConfigImpl {
- public:
- // Note that you must call Init (on AudioConfigImpl) before using this class.
- AudioConfig(const HostResource& resource);
- virtual ~AudioConfig();
-
- // Resource overrides.
- virtual thunk::PPB_AudioConfig_API* AsPPB_AudioConfig_API() OVERRIDE;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(AudioConfig);
-};
-
-AudioConfig::AudioConfig(const HostResource& resource) : Resource(resource) {
-}
-
-AudioConfig::~AudioConfig() {
-}
-
-thunk::PPB_AudioConfig_API* AudioConfig::AsPPB_AudioConfig_API() {
- return this;
-}
-
namespace {
InterfaceProxy* CreateAudioConfigProxy(Dispatcher* dispatcher,
@@ -66,18 +42,6 @@ const InterfaceProxy::Info* PPB_AudioConfig_Proxy::GetInfo() {
return &info;
}
-// static
-PP_Resource PPB_AudioConfig_Proxy::CreateProxyResource(
yzshen1 2011/08/22 17:37:00 You could also remove the declaration in the .h fi
- PP_Instance instance,
- PP_AudioSampleRate sample_rate,
- uint32_t sample_frame_count) {
- scoped_refptr<AudioConfig> object(new AudioConfig(
- HostResource::MakeInstanceOnly(instance)));
- if (!object->Init(sample_rate, sample_frame_count))
- return 0;
- return object->GetReference();
-}
-
bool PPB_AudioConfig_Proxy::OnMessageReceived(const IPC::Message& msg) {
// There are no IPC messages for this interface.
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698