OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "native_client/src/shared/ppapi_proxy/browser_globals.h" | 5 #include "native_client/src/shared/ppapi_proxy/browser_globals.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 #include <string.h> | 10 #include <string.h> |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 return ppb; | 314 return ppb; |
315 } | 315 } |
316 | 316 |
317 const PPB_NetAddress_Private* PPBNetAddressPrivateInterface() { | 317 const PPB_NetAddress_Private* PPBNetAddressPrivateInterface() { |
318 static const PPB_NetAddress_Private* ppb = | 318 static const PPB_NetAddress_Private* ppb = |
319 static_cast<const PPB_NetAddress_Private*>( | 319 static_cast<const PPB_NetAddress_Private*>( |
320 GetBrowserInterfaceSafe(PPB_NETADDRESS_PRIVATE_INTERFACE)); | 320 GetBrowserInterfaceSafe(PPB_NETADDRESS_PRIVATE_INTERFACE)); |
321 return ppb; | 321 return ppb; |
322 } | 322 } |
323 | 323 |
| 324 const PPB_NetworkList_Private* PPBNetworkListPrivateInterface() { |
| 325 static const PPB_NetworkList_Private* ppb = |
| 326 static_cast<const PPB_NetworkList_Private*>( |
| 327 GetBrowserInterfaceSafe(PPB_NETWORKLIST_PRIVATE_INTERFACE)); |
| 328 return ppb; |
| 329 } |
| 330 |
| 331 const PPB_NetworkMonitor_Private* PPBNetworkMonitorPrivateInterface() { |
| 332 static const PPB_NetworkMonitor_Private* ppb = |
| 333 static_cast<const PPB_NetworkMonitor_Private*>( |
| 334 GetBrowserInterfaceSafe(PPB_NETWORKMONITOR_PRIVATE_INTERFACE)); |
| 335 return ppb; |
| 336 } |
| 337 |
324 const PPB_URLLoader* PPBURLLoaderInterface() { | 338 const PPB_URLLoader* PPBURLLoaderInterface() { |
325 static const PPB_URLLoader* ppb = | 339 static const PPB_URLLoader* ppb = |
326 static_cast<const PPB_URLLoader*>( | 340 static_cast<const PPB_URLLoader*>( |
327 GetBrowserInterfaceSafe(PPB_URLLOADER_INTERFACE)); | 341 GetBrowserInterfaceSafe(PPB_URLLOADER_INTERFACE)); |
328 return ppb; | 342 return ppb; |
329 } | 343 } |
330 | 344 |
331 const PPB_URLRequestInfo* PPBURLRequestInfoInterface() { | 345 const PPB_URLRequestInfo* PPBURLRequestInfoInterface() { |
332 static const PPB_URLRequestInfo* ppb = | 346 static const PPB_URLRequestInfo* ppb = |
333 static_cast<const PPB_URLRequestInfo*>( | 347 static_cast<const PPB_URLRequestInfo*>( |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 } | 505 } |
492 | 506 |
493 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { | 507 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { |
494 static const PPB_UDPSocket_Private* ppb = | 508 static const PPB_UDPSocket_Private* ppb = |
495 static_cast<const PPB_UDPSocket_Private*>( | 509 static_cast<const PPB_UDPSocket_Private*>( |
496 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); | 510 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); |
497 return ppb; | 511 return ppb; |
498 } | 512 } |
499 | 513 |
500 } // namespace ppapi_proxy | 514 } // namespace ppapi_proxy |
OLD | NEW |