| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ppapi/proxy/ppb_audio_config_proxy.h" | |
| 6 | |
| 7 #include "ppapi/c/ppb_audio_config.h" | |
| 8 #include "ppapi/proxy/plugin_dispatcher.h" | |
| 9 #include "ppapi/proxy/ppapi_messages.h" | |
| 10 #include "ppapi/shared_impl/audio_config_impl.h" | |
| 11 #include "ppapi/thunk/thunk.h" | |
| 12 | |
| 13 namespace ppapi { | |
| 14 namespace proxy { | |
| 15 | |
| 16 namespace { | |
| 17 | |
| 18 InterfaceProxy* CreateAudioConfigProxy(Dispatcher* dispatcher, | |
| 19 const void* target_interface) { | |
| 20 return new PPB_AudioConfig_Proxy(dispatcher, target_interface); | |
| 21 } | |
| 22 | |
| 23 } // namespace | |
| 24 | |
| 25 PPB_AudioConfig_Proxy::PPB_AudioConfig_Proxy(Dispatcher* dispatcher, | |
| 26 const void* target_interface) | |
| 27 : InterfaceProxy(dispatcher, target_interface) { | |
| 28 } | |
| 29 | |
| 30 PPB_AudioConfig_Proxy::~PPB_AudioConfig_Proxy() { | |
| 31 } | |
| 32 | |
| 33 // static | |
| 34 const InterfaceProxy::Info* PPB_AudioConfig_Proxy::GetInfo() { | |
| 35 static const Info info = { | |
| 36 thunk::GetPPB_AudioConfig_Thunk(), | |
| 37 PPB_AUDIO_CONFIG_INTERFACE, | |
| 38 INTERFACE_ID_PPB_AUDIO_CONFIG, | |
| 39 false, | |
| 40 &CreateAudioConfigProxy, | |
| 41 }; | |
| 42 return &info; | |
| 43 } | |
| 44 | |
| 45 bool PPB_AudioConfig_Proxy::OnMessageReceived(const IPC::Message& msg) { | |
| 46 // There are no IPC messages for this interface. | |
| 47 NOTREACHED(); | |
| 48 return false; | |
| 49 } | |
| 50 | |
| 51 } // namespace proxy | |
| 52 } // namespace ppapi | |
| OLD | NEW |