| OLD | NEW |
| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 AddPPB(PPB_CORE_INTERFACE, API_ID_PPB_CORE, | 164 AddPPB(PPB_CORE_INTERFACE, API_ID_PPB_CORE, |
| 165 PPB_Core_Proxy::GetPPB_Core_Interface()); | 165 PPB_Core_Proxy::GetPPB_Core_Interface()); |
| 166 AddPPB(PPB_OPENGLES2_INTERFACE, API_ID_NONE, | 166 AddPPB(PPB_OPENGLES2_INTERFACE, API_ID_NONE, |
| 167 OpenGLES2Impl::GetInterface()); | 167 OpenGLES2Impl::GetInterface()); |
| 168 AddPPB(PPB_VAR_INTERFACE, API_ID_NONE, | 168 AddPPB(PPB_VAR_INTERFACE, API_ID_NONE, |
| 169 GetPPB_Var_Interface()); | 169 GetPPB_Var_Interface()); |
| 170 | 170 |
| 171 AddFlashInterfaces(); | 171 AddFlashInterfaces(); |
| 172 | 172 |
| 173 // PPB (browser) interfaces. | 173 // PPB (browser) interfaces. |
| 174 // Do not add more stuff here, they should be added to interface_list*.h |
| 175 // TODO(brettw) remove these. |
| 174 AddPPB(PPB_FileChooser_Proxy::GetTrustedInfo()); | 176 AddPPB(PPB_FileChooser_Proxy::GetTrustedInfo()); |
| 175 AddPPB(PPB_Instance_Proxy::GetInfoPrivate()); | 177 AddPPB(PPB_Instance_Proxy::GetInfoPrivate()); |
| 176 AddPPB(PPB_PDF_Proxy::GetInfo()); | 178 AddPPB(PPB_PDF_Proxy::GetInfo()); |
| 177 AddPPB(PPB_Testing_Proxy::GetInfo()); | 179 AddPPB(PPB_Testing_Proxy::GetInfo()); |
| 178 AddPPB(PPB_URLLoader_Proxy::GetTrustedInfo()); | 180 AddPPB(PPB_URLLoader_Proxy::GetTrustedInfo()); |
| 179 AddPPB(PPB_Var_Deprecated_Proxy::GetInfo()); | 181 AddPPB(PPB_Var_Deprecated_Proxy::GetInfo()); |
| 180 AddPPB(PPB_FileRef_Proxy::GetPrivateInfo()); | |
| 181 | 182 |
| 182 // PPP (plugin) interfaces. | 183 // PPP (plugin) interfaces. |
| 184 // Do not add more stuff here, they should be added to interface_list*.h |
| 185 // TODO(brettw) remove these. |
| 183 AddPPP(PPP_Graphics3D_Proxy::GetInfo()); | 186 AddPPP(PPP_Graphics3D_Proxy::GetInfo()); |
| 184 AddPPP(PPP_InputEvent_Proxy::GetInfo()); | 187 AddPPP(PPP_InputEvent_Proxy::GetInfo()); |
| 185 AddPPP(PPP_Instance_Private_Proxy::GetInfo()); | 188 AddPPP(PPP_Instance_Private_Proxy::GetInfo()); |
| 186 AddPPP(PPP_Instance_Proxy::GetInfo1_0()); | 189 AddPPP(PPP_Instance_Proxy::GetInfo1_0()); |
| 187 AddPPP(PPP_Messaging_Proxy::GetInfo()); | 190 AddPPP(PPP_Messaging_Proxy::GetInfo()); |
| 188 AddPPP(PPP_MouseLock_Proxy::GetInfo()); | 191 AddPPP(PPP_MouseLock_Proxy::GetInfo()); |
| 189 AddPPP(PPP_VideoCapture_Proxy::GetInfo()); | 192 AddPPP(PPP_VideoCapture_Proxy::GetInfo()); |
| 190 AddPPP(PPP_VideoDecoder_Proxy::GetInfo()); | 193 AddPPP(PPP_VideoDecoder_Proxy::GetInfo()); |
| 191 } | 194 } |
| 192 | 195 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 AddPPB(info->name, info->id, info->interface_ptr); | 315 AddPPB(info->name, info->id, info->interface_ptr); |
| 313 } | 316 } |
| 314 | 317 |
| 315 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { | 318 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { |
| 316 AddProxy(info->id, info->create_proxy); | 319 AddProxy(info->id, info->create_proxy); |
| 317 AddPPP(info->name, info->id, info->interface_ptr); | 320 AddPPP(info->name, info->id, info->interface_ptr); |
| 318 } | 321 } |
| 319 | 322 |
| 320 } // namespace proxy | 323 } // namespace proxy |
| 321 } // namespace ppapi | 324 } // namespace ppapi |
| OLD | NEW |