| 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 return ppb; | 409 return ppb; |
| 410 } | 410 } |
| 411 | 411 |
| 412 const PPB_View* PPBViewInterface() { | 412 const PPB_View* PPBViewInterface() { |
| 413 static const PPB_View* ppb = | 413 static const PPB_View* ppb = |
| 414 static_cast<const PPB_View*>( | 414 static_cast<const PPB_View*>( |
| 415 GetBrowserInterfaceSafe(PPB_VIEW_INTERFACE)); | 415 GetBrowserInterfaceSafe(PPB_VIEW_INTERFACE)); |
| 416 return ppb; | 416 return ppb; |
| 417 } | 417 } |
| 418 | 418 |
| 419 const PPB_WebSocket_Dev* PPBWebSocketInterface() { | 419 const PPB_WebSocket* PPBWebSocketInterface() { |
| 420 static const PPB_WebSocket_Dev* ppb = | 420 static const PPB_WebSocket* ppb = |
| 421 static_cast<const PPB_WebSocket_Dev*>( | 421 static_cast<const PPB_WebSocket*>( |
| 422 GetBrowserInterfaceSafe(PPB_WEBSOCKET_DEV_INTERFACE)); | 422 GetBrowserInterfaceSafe(PPB_WEBSOCKET_INTERFACE)); |
| 423 return ppb; | 423 return ppb; |
| 424 } | 424 } |
| 425 | 425 |
| 426 const PPB_Widget_Dev* PPBWidgetInterface() { | 426 const PPB_Widget_Dev* PPBWidgetInterface() { |
| 427 static const PPB_Widget_Dev* ppb = | 427 static const PPB_Widget_Dev* ppb = |
| 428 static_cast<const PPB_Widget_Dev*>( | 428 static_cast<const PPB_Widget_Dev*>( |
| 429 GetBrowserInterfaceSafe(PPB_WIDGET_DEV_INTERFACE)); | 429 GetBrowserInterfaceSafe(PPB_WIDGET_DEV_INTERFACE)); |
| 430 return ppb; | 430 return ppb; |
| 431 } | 431 } |
| 432 | 432 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 453 } | 453 } |
| 454 | 454 |
| 455 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { | 455 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { |
| 456 static const PPB_UDPSocket_Private* ppb = | 456 static const PPB_UDPSocket_Private* ppb = |
| 457 static_cast<const PPB_UDPSocket_Private*>( | 457 static_cast<const PPB_UDPSocket_Private*>( |
| 458 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); | 458 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); |
| 459 return ppb; | 459 return ppb; |
| 460 } | 460 } |
| 461 | 461 |
| 462 } // namespace ppapi_proxy | 462 } // namespace ppapi_proxy |
| OLD | NEW |