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

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

Issue 8951014: Change the DidChangeView update to take a new ViewChanged resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New patch Created 9 years 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
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/interface_list.h" 5 #include "ppapi/proxy/interface_list.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "ppapi/c/dev/ppb_audio_input_dev.h" 8 #include "ppapi/c/dev/ppb_audio_input_dev.h"
9 #include "ppapi/c/dev/ppb_buffer_dev.h" 9 #include "ppapi/c/dev/ppb_buffer_dev.h"
10 #include "ppapi/c/dev/ppb_char_set_dev.h" 10 #include "ppapi/c/dev/ppb_char_set_dev.h"
(...skipping 21 matching lines...) Expand all
32 #include "ppapi/c/ppb_image_data.h" 32 #include "ppapi/c/ppb_image_data.h"
33 #include "ppapi/c/ppb_input_event.h" 33 #include "ppapi/c/ppb_input_event.h"
34 #include "ppapi/c/ppb_instance.h" 34 #include "ppapi/c/ppb_instance.h"
35 #include "ppapi/c/ppb_messaging.h" 35 #include "ppapi/c/ppb_messaging.h"
36 #include "ppapi/c/ppb_mouse_lock.h" 36 #include "ppapi/c/ppb_mouse_lock.h"
37 #include "ppapi/c/ppb_opengles2.h" 37 #include "ppapi/c/ppb_opengles2.h"
38 #include "ppapi/c/ppb_url_loader.h" 38 #include "ppapi/c/ppb_url_loader.h"
39 #include "ppapi/c/ppb_url_request_info.h" 39 #include "ppapi/c/ppb_url_request_info.h"
40 #include "ppapi/c/ppb_url_response_info.h" 40 #include "ppapi/c/ppb_url_response_info.h"
41 #include "ppapi/c/ppb_var.h" 41 #include "ppapi/c/ppb_var.h"
42 #include "ppapi/c/ppb_view.h"
42 #include "ppapi/c/pp_errors.h" 43 #include "ppapi/c/pp_errors.h"
43 #include "ppapi/c/ppp_instance.h" 44 #include "ppapi/c/ppp_instance.h"
44 #include "ppapi/c/private/ppb_file_ref_private.h" 45 #include "ppapi/c/private/ppb_file_ref_private.h"
45 #include "ppapi/c/private/ppb_flash_clipboard.h" 46 #include "ppapi/c/private/ppb_flash_clipboard.h"
46 #include "ppapi/c/private/ppb_flash_file.h" 47 #include "ppapi/c/private/ppb_flash_file.h"
47 #include "ppapi/c/private/ppb_flash_fullscreen.h" 48 #include "ppapi/c/private/ppb_flash_fullscreen.h"
48 #include "ppapi/c/private/ppb_flash.h" 49 #include "ppapi/c/private/ppb_flash.h"
49 #include "ppapi/c/private/ppb_flash_menu.h" 50 #include "ppapi/c/private/ppb_flash_menu.h"
50 #include "ppapi/c/private/ppb_flash_net_connector.h" 51 #include "ppapi/c/private/ppb_flash_net_connector.h"
51 #include "ppapi/c/private/ppb_flash_tcp_socket.h" 52 #include "ppapi/c/private/ppb_flash_tcp_socket.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // Do not add more stuff here, they should be added to interface_list*.h 180 // Do not add more stuff here, they should be added to interface_list*.h
180 // TODO(brettw) remove these. 181 // TODO(brettw) remove these.
181 AddPPB(PPB_FileChooser_Proxy::GetTrustedInfo()); 182 AddPPB(PPB_FileChooser_Proxy::GetTrustedInfo());
182 AddPPB(PPB_Instance_Proxy::GetInfoPrivate()); 183 AddPPB(PPB_Instance_Proxy::GetInfoPrivate());
183 AddPPB(PPB_PDF_Proxy::GetInfo()); 184 AddPPB(PPB_PDF_Proxy::GetInfo());
184 AddPPB(PPB_Testing_Proxy::GetInfo()); 185 AddPPB(PPB_Testing_Proxy::GetInfo());
185 AddPPB(PPB_URLLoader_Proxy::GetTrustedInfo()); 186 AddPPB(PPB_URLLoader_Proxy::GetTrustedInfo());
186 AddPPB(PPB_Var_Deprecated_Proxy::GetInfo()); 187 AddPPB(PPB_Var_Deprecated_Proxy::GetInfo());
187 188
188 // PPP (plugin) interfaces. 189 // PPP (plugin) interfaces.
190 // TODO(brettw) move these to interface_list*.h
191 AddProxy(API_ID_PPP_INSTANCE, &ProxyFactory<PPP_Instance_Proxy>);
192 AddPPP(PPP_INSTANCE_INTERFACE_1_1, API_ID_PPP_INSTANCE,
193 PPP_Instance_Proxy::GetInstanceInterface());
194
195 // Old-style GetInfo PPP interfaces.
189 // Do not add more stuff here, they should be added to interface_list*.h 196 // Do not add more stuff here, they should be added to interface_list*.h
190 // TODO(brettw) remove these. 197 // TODO(brettw) remove these.
191 AddPPP(PPP_Graphics3D_Proxy::GetInfo()); 198 AddPPP(PPP_Graphics3D_Proxy::GetInfo());
192 AddPPP(PPP_InputEvent_Proxy::GetInfo()); 199 AddPPP(PPP_InputEvent_Proxy::GetInfo());
193 AddPPP(PPP_Instance_Private_Proxy::GetInfo()); 200 AddPPP(PPP_Instance_Private_Proxy::GetInfo());
194 AddPPP(PPP_Instance_Proxy::GetInfo1_0());
195 AddPPP(PPP_Messaging_Proxy::GetInfo()); 201 AddPPP(PPP_Messaging_Proxy::GetInfo());
196 AddPPP(PPP_MouseLock_Proxy::GetInfo()); 202 AddPPP(PPP_MouseLock_Proxy::GetInfo());
197 AddPPP(PPP_VideoCapture_Proxy::GetInfo()); 203 AddPPP(PPP_VideoCapture_Proxy::GetInfo());
198 AddPPP(PPP_VideoDecoder_Proxy::GetInfo()); 204 AddPPP(PPP_VideoDecoder_Proxy::GetInfo());
199 } 205 }
200 206
201 InterfaceList::~InterfaceList() { 207 InterfaceList::~InterfaceList() {
202 } 208 }
203 209
204 // static 210 // static
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 AddPPB(info->name, info->id, info->interface_ptr); 328 AddPPB(info->name, info->id, info->interface_ptr);
323 } 329 }
324 330
325 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { 331 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) {
326 AddProxy(info->id, info->create_proxy); 332 AddProxy(info->id, info->create_proxy);
327 AddPPP(info->name, info->id, info->interface_ptr); 333 AddPPP(info->name, info->id, info->interface_ptr);
328 } 334 }
329 335
330 } // namespace proxy 336 } // namespace proxy
331 } // namespace ppapi 337 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698