| 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 return ppb; | 402 return ppb; |
| 403 } | 403 } |
| 404 | 404 |
| 405 const PPB_View* PPBViewInterface() { | 405 const PPB_View* PPBViewInterface() { |
| 406 static const PPB_View* ppb = | 406 static const PPB_View* ppb = |
| 407 static_cast<const PPB_View*>( | 407 static_cast<const PPB_View*>( |
| 408 GetBrowserInterfaceSafe(PPB_VIEW_INTERFACE)); | 408 GetBrowserInterfaceSafe(PPB_VIEW_INTERFACE)); |
| 409 return ppb; | 409 return ppb; |
| 410 } | 410 } |
| 411 | 411 |
| 412 const PPB_WebSocket_Dev* PPBWebSocketInterface() { |
| 413 static const PPB_WebSocket_Dev* ppb = |
| 414 static_cast<const PPB_WebSocket_Dev*>( |
| 415 GetBrowserInterfaceSafe(PPB_WEBSOCKET_DEV_INTERFACE)); |
| 416 return ppb; |
| 417 } |
| 418 |
| 412 const PPB_Widget_Dev* PPBWidgetInterface() { | 419 const PPB_Widget_Dev* PPBWidgetInterface() { |
| 413 static const PPB_Widget_Dev* ppb = | 420 static const PPB_Widget_Dev* ppb = |
| 414 static_cast<const PPB_Widget_Dev*>( | 421 static_cast<const PPB_Widget_Dev*>( |
| 415 GetBrowserInterfaceSafe(PPB_WIDGET_DEV_INTERFACE)); | 422 GetBrowserInterfaceSafe(PPB_WIDGET_DEV_INTERFACE)); |
| 416 return ppb; | 423 return ppb; |
| 417 } | 424 } |
| 418 | 425 |
| 419 const PPB_Zoom_Dev* PPBZoomInterface() { | 426 const PPB_Zoom_Dev* PPBZoomInterface() { |
| 420 static const PPB_Zoom_Dev* ppb = | 427 static const PPB_Zoom_Dev* ppb = |
| 421 static_cast<const PPB_Zoom_Dev*>( | 428 static_cast<const PPB_Zoom_Dev*>( |
| (...skipping 17 matching lines...) Expand all Loading... |
| 439 } | 446 } |
| 440 | 447 |
| 441 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { | 448 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { |
| 442 static const PPB_UDPSocket_Private* ppb = | 449 static const PPB_UDPSocket_Private* ppb = |
| 443 static_cast<const PPB_UDPSocket_Private*>( | 450 static_cast<const PPB_UDPSocket_Private*>( |
| 444 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); | 451 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); |
| 445 return ppb; | 452 return ppb; |
| 446 } | 453 } |
| 447 | 454 |
| 448 } // namespace ppapi_proxy | 455 } // namespace ppapi_proxy |
| OLD | NEW |