Chromium Code Reviews| 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 "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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 409 } | 409 } |
| 410 | 410 |
| 411 // Private interfaces. | 411 // Private interfaces. |
| 412 const PPB_PDF* PPBPDFInterface() { | 412 const PPB_PDF* PPBPDFInterface() { |
| 413 static const PPB_PDF* ppb = | 413 static const PPB_PDF* ppb = |
| 414 static_cast<const PPB_PDF*>( | 414 static_cast<const PPB_PDF*>( |
| 415 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE)); | 415 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE)); |
| 416 return ppb; | 416 return ppb; |
| 417 } | 417 } |
| 418 | 418 |
| 419 const PPB_TCPSocket_Private* PPBTCPSocketPrivateInterface() { | |
| 420 static const PPB_TCPSocket_Private *ppb = | |
|
polina
2011/11/18 09:52:10
consistency: PPB_TCPSocket_Private* ppb
ygorshenin
2011/11/21 14:13:33
Done.
| |
| 421 static_cast<const PPB_TCPSocket_Private*>( | |
| 422 GetBrowserInterfaceSafe(PPB_TCPSOCKET_PRIVATE_INTERFACE)); | |
| 423 return ppb; | |
| 424 } | |
| 425 | |
| 426 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { | |
| 427 static const PPB_UDPSocket_Private *ppb = | |
|
polina
2011/11/18 09:52:10
ditto
ygorshenin
2011/11/21 14:13:33
Done.
| |
| 428 static_cast<const PPB_UDPSocket_Private*>( | |
| 429 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); | |
| 430 return ppb; | |
| 431 } | |
| 432 | |
| 419 } // namespace ppapi_proxy | 433 } // namespace ppapi_proxy |
| OLD | NEW |