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

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

Issue 9704080: HostResolver is exposed to Native Client. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync. Created 8 years, 9 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
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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 return ppb; 231 return ppb;
232 } 232 }
233 233
234 const PPB_Graphics3DTrusted* PPBGraphics3DTrustedInterface() { 234 const PPB_Graphics3DTrusted* PPBGraphics3DTrustedInterface() {
235 static const PPB_Graphics3DTrusted* ppb = 235 static const PPB_Graphics3DTrusted* ppb =
236 static_cast<const PPB_Graphics3DTrusted*>( 236 static_cast<const PPB_Graphics3DTrusted*>(
237 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_TRUSTED_INTERFACE)); 237 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_TRUSTED_INTERFACE));
238 return ppb; 238 return ppb;
239 } 239 }
240 240
241 const PPB_HostResolver_Private* PPBHostResolverPrivateInterface() {
242 static const PPB_HostResolver_Private* ppb =
243 static_cast<const PPB_HostResolver_Private*>(
244 GetBrowserInterfaceSafe(PPB_HOSTRESOLVER_PRIVATE_INTERFACE));
245 return ppb;
246 }
247
241 const PPB_ImageData* PPBImageDataInterface() { 248 const PPB_ImageData* PPBImageDataInterface() {
242 static const PPB_ImageData* ppb = static_cast<const PPB_ImageData*>( 249 static const PPB_ImageData* ppb = static_cast<const PPB_ImageData*>(
243 GetBrowserInterfaceSafe(PPB_IMAGEDATA_INTERFACE)); 250 GetBrowserInterfaceSafe(PPB_IMAGEDATA_INTERFACE));
244 return ppb; 251 return ppb;
245 } 252 }
246 253
247 const PPB_ImageDataTrusted* PPBImageDataTrustedInterface() { 254 const PPB_ImageDataTrusted* PPBImageDataTrustedInterface() {
248 static const PPB_ImageDataTrusted* ppb = 255 static const PPB_ImageDataTrusted* ppb =
249 static_cast<const PPB_ImageDataTrusted*>( 256 static_cast<const PPB_ImageDataTrusted*>(
250 GetBrowserInterfaceSafe(PPB_IMAGEDATA_TRUSTED_INTERFACE)); 257 GetBrowserInterfaceSafe(PPB_IMAGEDATA_TRUSTED_INTERFACE));
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 } 474 }
468 475
469 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { 476 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() {
470 static const PPB_UDPSocket_Private* ppb = 477 static const PPB_UDPSocket_Private* ppb =
471 static_cast<const PPB_UDPSocket_Private*>( 478 static_cast<const PPB_UDPSocket_Private*>(
472 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); 479 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE));
473 return ppb; 480 return ppb;
474 } 481 }
475 482
476 } // namespace ppapi_proxy 483 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698