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

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

Issue 6833002: Implemented PPB_Broker_Proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced, changed enum after syncing, and really fixed the Windows build. Created 9 years, 8 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_shared_proxy.gypi ('k') | ppapi/proxy/interface_id.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
(...skipping 29 matching lines...) Expand all
40 #include "ppapi/c/private/ppb_flash.h" 40 #include "ppapi/c/private/ppb_flash.h"
41 #include "ppapi/c/private/ppb_flash_clipboard.h" 41 #include "ppapi/c/private/ppb_flash_clipboard.h"
42 #include "ppapi/c/private/ppb_flash_file.h" 42 #include "ppapi/c/private/ppb_flash_file.h"
43 #include "ppapi/c/private/ppb_flash_menu.h" 43 #include "ppapi/c/private/ppb_flash_menu.h"
44 #include "ppapi/c/private/ppb_flash_net_connector.h" 44 #include "ppapi/c/private/ppb_flash_net_connector.h"
45 #include "ppapi/c/private/ppb_pdf.h" 45 #include "ppapi/c/private/ppb_pdf.h"
46 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" 46 #include "ppapi/c/trusted/ppb_url_loader_trusted.h"
47 #include "ppapi/proxy/ppapi_messages.h" 47 #include "ppapi/proxy/ppapi_messages.h"
48 #include "ppapi/proxy/ppb_audio_config_proxy.h" 48 #include "ppapi/proxy/ppb_audio_config_proxy.h"
49 #include "ppapi/proxy/ppb_audio_proxy.h" 49 #include "ppapi/proxy/ppb_audio_proxy.h"
50 #include "ppapi/proxy/ppb_broker_proxy.h"
50 #include "ppapi/proxy/ppb_buffer_proxy.h" 51 #include "ppapi/proxy/ppb_buffer_proxy.h"
51 #include "ppapi/proxy/ppb_char_set_proxy.h" 52 #include "ppapi/proxy/ppb_char_set_proxy.h"
52 #include "ppapi/proxy/ppb_console_proxy.h" 53 #include "ppapi/proxy/ppb_console_proxy.h"
53 #include "ppapi/proxy/ppb_context_3d_proxy.h" 54 #include "ppapi/proxy/ppb_context_3d_proxy.h"
54 #include "ppapi/proxy/ppb_core_proxy.h" 55 #include "ppapi/proxy/ppb_core_proxy.h"
55 #include "ppapi/proxy/ppb_cursor_control_proxy.h" 56 #include "ppapi/proxy/ppb_cursor_control_proxy.h"
56 #include "ppapi/proxy/ppb_file_chooser_proxy.h" 57 #include "ppapi/proxy/ppb_file_chooser_proxy.h"
57 #include "ppapi/proxy/ppb_file_ref_proxy.h" 58 #include "ppapi/proxy/ppb_file_ref_proxy.h"
58 #include "ppapi/proxy/ppb_file_system_proxy.h" 59 #include "ppapi/proxy/ppb_file_system_proxy.h"
59 #include "ppapi/proxy/ppb_flash_clipboard_proxy.h" 60 #include "ppapi/proxy/ppb_flash_clipboard_proxy.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 const InterfaceProxy::Info* id_to_browser_info_[INTERFACE_ID_COUNT]; 103 const InterfaceProxy::Info* id_to_browser_info_[INTERFACE_ID_COUNT];
103 }; 104 };
104 105
105 InterfaceList::InterfaceList() { 106 InterfaceList::InterfaceList() {
106 memset(id_to_plugin_info_, 0, sizeof(id_to_plugin_info_)); 107 memset(id_to_plugin_info_, 0, sizeof(id_to_plugin_info_));
107 memset(id_to_browser_info_, 0, sizeof(id_to_browser_info_)); 108 memset(id_to_browser_info_, 0, sizeof(id_to_browser_info_));
108 109
109 // PPB (browser) interfaces. 110 // PPB (browser) interfaces.
110 AddPPB(PPB_AudioConfig_Proxy::GetInfo()); 111 AddPPB(PPB_AudioConfig_Proxy::GetInfo());
111 AddPPB(PPB_Audio_Proxy::GetInfo()); 112 AddPPB(PPB_Audio_Proxy::GetInfo());
113 AddPPB(PPB_Broker_Proxy::GetInfo());
112 AddPPB(PPB_Buffer_Proxy::GetInfo()); 114 AddPPB(PPB_Buffer_Proxy::GetInfo());
113 AddPPB(PPB_CharSet_Proxy::GetInfo()); 115 AddPPB(PPB_CharSet_Proxy::GetInfo());
114 AddPPB(PPB_Console_Proxy::GetInfo()); 116 AddPPB(PPB_Console_Proxy::GetInfo());
115 AddPPB(PPB_Context3D_Proxy::GetInfo()); 117 AddPPB(PPB_Context3D_Proxy::GetInfo());
116 AddPPB(PPB_Core_Proxy::GetInfo()); 118 AddPPB(PPB_Core_Proxy::GetInfo());
117 AddPPB(PPB_CursorControl_Proxy::GetInfo()); 119 AddPPB(PPB_CursorControl_Proxy::GetInfo());
118 AddPPB(PPB_FileChooser_Proxy::GetInfo()); 120 AddPPB(PPB_FileChooser_Proxy::GetInfo());
119 AddPPB(PPB_FileRef_Proxy::GetInfo()); 121 AddPPB(PPB_FileRef_Proxy::GetInfo());
120 AddPPB(PPB_FileSystem_Proxy::GetInfo()); 122 AddPPB(PPB_FileSystem_Proxy::GetInfo());
121 AddPPB(PPB_Flash_Clipboard_Proxy::GetInfo()); 123 AddPPB(PPB_Flash_Clipboard_Proxy::GetInfo());
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 return channel_->Send(msg); 306 return channel_->Send(msg);
305 307
306 // Remote side crashed, drop this message. 308 // Remote side crashed, drop this message.
307 delete msg; 309 delete msg;
308 return false; 310 return false;
309 } 311 }
310 312
311 } // namespace proxy 313 } // namespace proxy
312 } // namespace pp 314 } // namespace pp
313 315
OLDNEW
« no previous file with comments | « ppapi/ppapi_shared_proxy.gypi ('k') | ppapi/proxy/interface_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698