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

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: 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 return ppb; 230 return ppb;
231 } 231 }
232 232
233 const PPB_Graphics3DTrusted* PPBGraphics3DTrustedInterface() { 233 const PPB_Graphics3DTrusted* PPBGraphics3DTrustedInterface() {
234 static const PPB_Graphics3DTrusted* ppb = 234 static const PPB_Graphics3DTrusted* ppb =
235 static_cast<const PPB_Graphics3DTrusted*>( 235 static_cast<const PPB_Graphics3DTrusted*>(
236 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_TRUSTED_INTERFACE)); 236 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_TRUSTED_INTERFACE));
237 return ppb; 237 return ppb;
238 } 238 }
239 239
240 const PPB_HostResolver_Private* PPBHostResolverPrivateInterface() {
241 static const PPB_HostResolver_Private* ppb =
242 static_cast<const PPB_HostResolver_Private*>(
243 GetBrowserInterfaceSafe(PPB_HOSTRESOLVER_PRIVATE_INTERFACE));
244 return ppb;
245 }
246
240 const PPB_ImageData* PPBImageDataInterface() { 247 const PPB_ImageData* PPBImageDataInterface() {
241 static const PPB_ImageData* ppb = static_cast<const PPB_ImageData*>( 248 static const PPB_ImageData* ppb = static_cast<const PPB_ImageData*>(
242 GetBrowserInterfaceSafe(PPB_IMAGEDATA_INTERFACE)); 249 GetBrowserInterfaceSafe(PPB_IMAGEDATA_INTERFACE));
243 return ppb; 250 return ppb;
244 } 251 }
245 252
246 const PPB_ImageDataTrusted* PPBImageDataTrustedInterface() { 253 const PPB_ImageDataTrusted* PPBImageDataTrustedInterface() {
247 static const PPB_ImageDataTrusted* ppb = 254 static const PPB_ImageDataTrusted* ppb =
248 static_cast<const PPB_ImageDataTrusted*>( 255 static_cast<const PPB_ImageDataTrusted*>(
249 GetBrowserInterfaceSafe(PPB_IMAGEDATA_TRUSTED_INTERFACE)); 256 GetBrowserInterfaceSafe(PPB_IMAGEDATA_TRUSTED_INTERFACE));
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 } 473 }
467 474
468 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { 475 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() {
469 static const PPB_UDPSocket_Private* ppb = 476 static const PPB_UDPSocket_Private* ppb =
470 static_cast<const PPB_UDPSocket_Private*>( 477 static_cast<const PPB_UDPSocket_Private*>(
471 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); 478 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE));
472 return ppb; 479 return ppb;
473 } 480 }
474 481
475 } // namespace ppapi_proxy 482 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698