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

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

Issue 6279003: Move ppapi audio interface out of dev, but... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/ppapi.gyp ('k') | ppapi/proxy/ppapi_messages_internal.h » ('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/dispatcher.h" 5 #include "ppapi/proxy/dispatcher.h"
6 6
7 #include <string.h> // For memset. 7 #include <string.h> // For memset.
8 8
9 #include <map> 9 #include <map>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "ipc/ipc_message.h" 13 #include "ipc/ipc_message.h"
14 #include "ipc/ipc_sync_channel.h" 14 #include "ipc/ipc_sync_channel.h"
15 #include "ppapi/c/dev/ppb_audio_config_dev.h"
16 #include "ppapi/c/dev/ppb_audio_dev.h"
17 #include "ppapi/c/dev/ppb_buffer_dev.h" 15 #include "ppapi/c/dev/ppb_buffer_dev.h"
18 #include "ppapi/c/dev/ppb_char_set_dev.h" 16 #include "ppapi/c/dev/ppb_char_set_dev.h"
19 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 17 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
20 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 18 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
21 #include "ppapi/c/dev/ppb_font_dev.h" 19 #include "ppapi/c/dev/ppb_font_dev.h"
22 #include "ppapi/c/dev/ppb_fullscreen_dev.h" 20 #include "ppapi/c/dev/ppb_fullscreen_dev.h"
23 #include "ppapi/c/dev/ppb_fullscreen_dev.h" 21 #include "ppapi/c/dev/ppb_fullscreen_dev.h"
24 #include "ppapi/c/dev/ppb_testing_dev.h" 22 #include "ppapi/c/dev/ppb_testing_dev.h"
25 #include "ppapi/c/dev/ppb_var_deprecated.h" 23 #include "ppapi/c/dev/ppb_var_deprecated.h"
26 #include "ppapi/c/pp_errors.h" 24 #include "ppapi/c/pp_errors.h"
25 #include "ppapi/c/ppb_audio.h"
26 #include "ppapi/c/ppb_audio_config.h"
27 #include "ppapi/c/ppb_core.h" 27 #include "ppapi/c/ppb_core.h"
28 #include "ppapi/c/ppb_graphics_2d.h" 28 #include "ppapi/c/ppb_graphics_2d.h"
29 #include "ppapi/c/ppb_image_data.h" 29 #include "ppapi/c/ppb_image_data.h"
30 #include "ppapi/c/ppb_instance.h" 30 #include "ppapi/c/ppb_instance.h"
31 #include "ppapi/c/ppb_url_loader.h" 31 #include "ppapi/c/ppb_url_loader.h"
32 #include "ppapi/c/ppb_url_request_info.h" 32 #include "ppapi/c/ppb_url_request_info.h"
33 #include "ppapi/c/ppb_url_response_info.h" 33 #include "ppapi/c/ppb_url_response_info.h"
34 #include "ppapi/c/ppp_instance.h" 34 #include "ppapi/c/ppp_instance.h"
35 #include "ppapi/c/private/ppb_flash.h" 35 #include "ppapi/c/private/ppb_flash.h"
36 #include "ppapi/c/private/ppb_pdf.h" 36 #include "ppapi/c/private/ppb_pdf.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 continue; 222 continue;
223 } 223 }
224 proxies_[interfaces[i]] = proxy; 224 proxies_[interfaces[i]] = proxy;
225 id_to_proxy_[proxy->GetInterfaceId()] = proxy.get(); 225 id_to_proxy_[proxy->GetInterfaceId()] = proxy.get();
226 } 226 }
227 } 227 }
228 228
229 InterfaceProxy* Dispatcher::CreateProxyForInterface( 229 InterfaceProxy* Dispatcher::CreateProxyForInterface(
230 const std::string& interface_name, 230 const std::string& interface_name,
231 const void* interface_functions) { 231 const void* interface_functions) {
232 if (interface_name == PPB_AUDIO_CONFIG_DEV_INTERFACE) 232 if (interface_name == PPB_AUDIO_CONFIG_INTERFACE)
233 return new PPB_AudioConfig_Proxy(this, interface_functions); 233 return new PPB_AudioConfig_Proxy(this, interface_functions);
234 if (interface_name == PPB_AUDIO_DEV_INTERFACE) 234 if (interface_name == PPB_AUDIO_INTERFACE)
235 return new PPB_Audio_Proxy(this, interface_functions); 235 return new PPB_Audio_Proxy(this, interface_functions);
236 if (interface_name == PPB_BUFFER_DEV_INTERFACE) 236 if (interface_name == PPB_BUFFER_DEV_INTERFACE)
237 return new PPB_Buffer_Proxy(this, interface_functions); 237 return new PPB_Buffer_Proxy(this, interface_functions);
238 if (interface_name == PPB_CHAR_SET_DEV_INTERFACE) 238 if (interface_name == PPB_CHAR_SET_DEV_INTERFACE)
239 return new PPB_CharSet_Proxy(this, interface_functions); 239 return new PPB_CharSet_Proxy(this, interface_functions);
240 if (interface_name == PPB_CORE_INTERFACE) 240 if (interface_name == PPB_CORE_INTERFACE)
241 return new PPB_Core_Proxy(this, interface_functions); 241 return new PPB_Core_Proxy(this, interface_functions);
242 if (interface_name == PPB_CURSOR_CONTROL_DEV_INTERFACE) 242 if (interface_name == PPB_CURSOR_CONTROL_DEV_INTERFACE)
243 return new PPB_CursorControl_Proxy(this, interface_functions); 243 return new PPB_CursorControl_Proxy(this, interface_functions);
244 if (interface_name == PPB_FONT_DEV_INTERFACE) 244 if (interface_name == PPB_FONT_DEV_INTERFACE)
(...skipping 28 matching lines...) Expand all
273 if (interface_name == PPB_URLLOADERTRUSTED_INTERFACE) 273 if (interface_name == PPB_URLLOADERTRUSTED_INTERFACE)
274 return new PPB_URLLoaderTrusted_Proxy(this, interface_functions); 274 return new PPB_URLLoaderTrusted_Proxy(this, interface_functions);
275 } 275 }
276 276
277 return NULL; 277 return NULL;
278 } 278 }
279 279
280 } // namespace proxy 280 } // namespace proxy
281 } // namespace pp 281 } // namespace pp
282 282
OLDNEW
« no previous file with comments | « ppapi/ppapi.gyp ('k') | ppapi/proxy/ppapi_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698