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

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

Issue 6177007: ppapi_proxy: Support loading and reading urls. Proxy URLLoader.... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 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) 2010 The Native Client Authors. All rights reserved. 1 // Copyright (c) 2010 The Native Client 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 #include <stdio.h> 6 #include <stdio.h>
7 #include <map> 7 #include <map>
8 #include "native_client/src/include/nacl_macros.h" 8 #include "native_client/src/include/nacl_macros.h"
9 #include "native_client/src/shared/platform/nacl_check.h" 9 #include "native_client/src/shared/platform/nacl_check.h"
10 #include "native_client/src/shared/ppapi_proxy/browser_ppp.h" 10 #include "native_client/src/shared/ppapi_proxy/browser_ppp.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 GetBrowserInterfaceSafe(PPB_IMAGEDATA_TRUSTED_INTERFACE)); 145 GetBrowserInterfaceSafe(PPB_IMAGEDATA_TRUSTED_INTERFACE));
146 return ppb; 146 return ppb;
147 } 147 }
148 148
149 const PPB_Instance* PPBInstanceInterface() { 149 const PPB_Instance* PPBInstanceInterface() {
150 static const PPB_Instance* ppb = reinterpret_cast<const PPB_Instance*>( 150 static const PPB_Instance* ppb = reinterpret_cast<const PPB_Instance*>(
151 GetBrowserInterfaceSafe(PPB_INSTANCE_INTERFACE)); 151 GetBrowserInterfaceSafe(PPB_INSTANCE_INTERFACE));
152 return ppb; 152 return ppb;
153 } 153 }
154 154
155 const PPB_URLLoader* PPBURLLoaderInterface() {
156 static const PPB_URLLoader* ppb =
157 reinterpret_cast<const PPB_URLLoader*>(
158 GetBrowserInterfaceSafe(PPB_URLLOADER_INTERFACE));
159 return ppb;
160 }
161
155 const PPB_URLRequestInfo* PPBURLRequestInfoInterface() { 162 const PPB_URLRequestInfo* PPBURLRequestInfoInterface() {
156 static const PPB_URLRequestInfo* ppb = 163 static const PPB_URLRequestInfo* ppb =
157 reinterpret_cast<const PPB_URLRequestInfo*>( 164 reinterpret_cast<const PPB_URLRequestInfo*>(
158 GetBrowserInterfaceSafe(PPB_URLREQUESTINFO_INTERFACE)); 165 GetBrowserInterfaceSafe(PPB_URLREQUESTINFO_INTERFACE));
159 return ppb; 166 return ppb;
160 } 167 }
161 168
162 const PPB_URLResponseInfo* PPBURLResponseInfoInterface() { 169 const PPB_URLResponseInfo* PPBURLResponseInfoInterface() {
163 static const PPB_URLResponseInfo* ppb = 170 static const PPB_URLResponseInfo* ppb =
164 reinterpret_cast<const PPB_URLResponseInfo*>( 171 reinterpret_cast<const PPB_URLResponseInfo*>(
165 GetBrowserInterfaceSafe(PPB_URLRESPONSEINFO_INTERFACE)); 172 GetBrowserInterfaceSafe(PPB_URLRESPONSEINFO_INTERFACE));
166 return ppb; 173 return ppb;
167 } 174 }
168 175
169 const PPB_Var_Deprecated* PPBVarInterface() { 176 const PPB_Var_Deprecated* PPBVarInterface() {
170 static const PPB_Var_Deprecated* ppb = 177 static const PPB_Var_Deprecated* ppb =
171 reinterpret_cast<const PPB_Var_Deprecated*>( 178 reinterpret_cast<const PPB_Var_Deprecated*>(
172 GetBrowserInterfaceSafe(PPB_VAR_DEPRECATED_INTERFACE)); 179 GetBrowserInterfaceSafe(PPB_VAR_DEPRECATED_INTERFACE));
173 return ppb; 180 return ppb;
174 } 181 }
175 182
176 } // namespace ppapi_proxy 183 } // namespace ppapi_proxy
177 184
OLDNEW
« no previous file with comments | « src/shared/ppapi_proxy/browser_globals.h ('k') | src/shared/ppapi_proxy/browser_ppb_instance_rpc_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698