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

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

Issue 7740038: Use macros to define pepper interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New patch Created 9 years, 3 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/ppb_audio_config_proxy.h ('k') | ppapi/proxy/ppb_audio_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_audio_config_proxy.h ('k') | ppapi/proxy/ppb_audio_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698