| 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 } | 438 } |
| 439 | 439 |
| 440 // Private interfaces. | 440 // Private interfaces. |
| 441 const PPB_PDF* PPBPDFInterface() { | 441 const PPB_PDF* PPBPDFInterface() { |
| 442 static const PPB_PDF* ppb = | 442 static const PPB_PDF* ppb = |
| 443 static_cast<const PPB_PDF*>( | 443 static_cast<const PPB_PDF*>( |
| 444 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE)); | 444 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE)); |
| 445 return ppb; | 445 return ppb; |
| 446 } | 446 } |
| 447 | 447 |
| 448 const PPB_TCPServerSocket_Private* PPBTCPServerSocketPrivateInterface() { |
| 449 static const PPB_TCPServerSocket_Private* ppb = |
| 450 static_cast<const PPB_TCPServerSocket_Private*>( |
| 451 GetBrowserInterfaceSafe(PPB_TCPSERVERSOCKET_PRIVATE_INTERFACE)); |
| 452 return ppb; |
| 453 } |
| 454 |
| 448 const PPB_TCPSocket_Private* PPBTCPSocketPrivateInterface() { | 455 const PPB_TCPSocket_Private* PPBTCPSocketPrivateInterface() { |
| 449 static const PPB_TCPSocket_Private* ppb = | 456 static const PPB_TCPSocket_Private* ppb = |
| 450 static_cast<const PPB_TCPSocket_Private*>( | 457 static_cast<const PPB_TCPSocket_Private*>( |
| 451 GetBrowserInterfaceSafe(PPB_TCPSOCKET_PRIVATE_INTERFACE)); | 458 GetBrowserInterfaceSafe(PPB_TCPSOCKET_PRIVATE_INTERFACE)); |
| 452 return ppb; | 459 return ppb; |
| 453 } | 460 } |
| 454 | 461 |
| 455 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { | 462 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { |
| 456 static const PPB_UDPSocket_Private* ppb = | 463 static const PPB_UDPSocket_Private* ppb = |
| 457 static_cast<const PPB_UDPSocket_Private*>( | 464 static_cast<const PPB_UDPSocket_Private*>( |
| 458 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); | 465 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); |
| 459 return ppb; | 466 return ppb; |
| 460 } | 467 } |
| 461 | 468 |
| 462 } // namespace ppapi_proxy | 469 } // namespace ppapi_proxy |
| OLD | NEW |