Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc

Issue 9227008: WebSocket Pepper API: SRPC proxy implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase because two ppapi_proxy related CLs are landed Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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() {
420 static const PPB_WebSocket_Dev* ppb =
421 static_cast<const PPB_WebSocket_Dev*>(
422 GetBrowserInterfaceSafe(PPB_WEBSOCKET_DEV_INTERFACE));
423 return ppb;
424 }
425
419 const PPB_Widget_Dev* PPBWidgetInterface() { 426 const PPB_Widget_Dev* PPBWidgetInterface() {
420 static const PPB_Widget_Dev* ppb = 427 static const PPB_Widget_Dev* ppb =
421 static_cast<const PPB_Widget_Dev*>( 428 static_cast<const PPB_Widget_Dev*>(
422 GetBrowserInterfaceSafe(PPB_WIDGET_DEV_INTERFACE)); 429 GetBrowserInterfaceSafe(PPB_WIDGET_DEV_INTERFACE));
423 return ppb; 430 return ppb;
424 } 431 }
425 432
426 const PPB_Zoom_Dev* PPBZoomInterface() { 433 const PPB_Zoom_Dev* PPBZoomInterface() {
427 static const PPB_Zoom_Dev* ppb = 434 static const PPB_Zoom_Dev* ppb =
428 static_cast<const PPB_Zoom_Dev*>( 435 static_cast<const PPB_Zoom_Dev*>(
(...skipping 17 matching lines...) Expand all
446 } 453 }
447 454
448 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { 455 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() {
449 static const PPB_UDPSocket_Private* ppb = 456 static const PPB_UDPSocket_Private* ppb =
450 static_cast<const PPB_UDPSocket_Private*>( 457 static_cast<const PPB_UDPSocket_Private*>(
451 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); 458 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE));
452 return ppb; 459 return ppb;
453 } 460 }
454 461
455 } // namespace ppapi_proxy 462 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698