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

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

Issue 8555002: Added NaCl proxy for TCP/UDP (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added PPAPI NaCl tests. Created 9 years 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
OLDNEW
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
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 =
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 =
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698