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

Side by Side Diff: ppapi/thunk/ppb_instance_api.h

Issue 23444004: Add GetPluginRefererURL to PPB_URLUtil_Dev interface to get the 'Referer' HTTP header value that wa… (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 3 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 #ifndef PPAPI_THUNK_INSTANCE_API_H_ 5 #ifndef PPAPI_THUNK_INSTANCE_API_H_
6 #define PPAPI_THUNK_INSTANCE_API_H_ 6 #define PPAPI_THUNK_INSTANCE_API_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ppapi/c/dev/ppb_url_util_dev.h" 10 #include "ppapi/c/dev/ppb_url_util_dev.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // URLUtil. 182 // URLUtil.
183 virtual PP_Var ResolveRelativeToDocument( 183 virtual PP_Var ResolveRelativeToDocument(
184 PP_Instance instance, 184 PP_Instance instance,
185 PP_Var relative, 185 PP_Var relative,
186 PP_URLComponents_Dev* components) = 0; 186 PP_URLComponents_Dev* components) = 0;
187 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0; 187 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0;
188 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, 188 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance,
189 PP_Instance target) = 0; 189 PP_Instance target) = 0;
190 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, 190 virtual PP_Var GetPluginInstanceURL(PP_Instance instance,
191 PP_URLComponents_Dev* components) = 0; 191 PP_URLComponents_Dev* components) = 0;
192 virtual PP_Var GetPluginRefererURL(PP_Instance instance,
193 PP_URLComponents_Dev* components) = 0;
192 #endif // !defined(OS_NACL) 194 #endif // !defined(OS_NACL)
193 195
194 static const ApiID kApiID = API_ID_PPB_INSTANCE; 196 static const ApiID kApiID = API_ID_PPB_INSTANCE;
195 }; 197 };
196 198
197 } // namespace thunk 199 } // namespace thunk
198 } // namespace ppapi 200 } // namespace ppapi
199 201
200 #endif // PPAPI_THUNK_INSTANCE_API_H_ 202 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698