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

Side by Side Diff: ppapi/proxy/ppb_instance_proxy.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_PROXY_PPB_INSTANCE_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 virtual PP_Var ResolveRelativeToDocument( 107 virtual PP_Var ResolveRelativeToDocument(
108 PP_Instance instance, 108 PP_Instance instance,
109 PP_Var relative, 109 PP_Var relative,
110 PP_URLComponents_Dev* components) OVERRIDE; 110 PP_URLComponents_Dev* components) OVERRIDE;
111 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) OVERRIDE; 111 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) OVERRIDE;
112 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, 112 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance,
113 PP_Instance target) OVERRIDE; 113 PP_Instance target) OVERRIDE;
114 virtual PP_Var GetPluginInstanceURL( 114 virtual PP_Var GetPluginInstanceURL(
115 PP_Instance instance, 115 PP_Instance instance,
116 PP_URLComponents_Dev* components) OVERRIDE; 116 PP_URLComponents_Dev* components) OVERRIDE;
117 virtual PP_Var GetPluginRefererURL(
118 PP_Instance instance,
119 PP_URLComponents_Dev* components) OVERRIDE;
117 virtual void NeedKey(PP_Instance instance, 120 virtual void NeedKey(PP_Instance instance,
118 PP_Var key_system, 121 PP_Var key_system,
119 PP_Var session_id, 122 PP_Var session_id,
120 PP_Var init_data) OVERRIDE; 123 PP_Var init_data) OVERRIDE;
121 virtual void KeyAdded(PP_Instance instance, 124 virtual void KeyAdded(PP_Instance instance,
122 PP_Var key_system, 125 PP_Var key_system,
123 PP_Var session_id) OVERRIDE; 126 PP_Var session_id) OVERRIDE;
124 virtual void KeyMessage(PP_Instance instance, 127 virtual void KeyMessage(PP_Instance instance,
125 PP_Var key_system, 128 PP_Var key_system,
126 PP_Var session_id, 129 PP_Var session_id,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 SerializedVarReceiveInput relative, 214 SerializedVarReceiveInput relative,
212 SerializedVarReturnValue result); 215 SerializedVarReturnValue result);
213 void OnHostMsgDocumentCanRequest(PP_Instance instance, 216 void OnHostMsgDocumentCanRequest(PP_Instance instance,
214 SerializedVarReceiveInput url, 217 SerializedVarReceiveInput url,
215 PP_Bool* result); 218 PP_Bool* result);
216 void OnHostMsgDocumentCanAccessDocument(PP_Instance active, 219 void OnHostMsgDocumentCanAccessDocument(PP_Instance active,
217 PP_Instance target, 220 PP_Instance target,
218 PP_Bool* result); 221 PP_Bool* result);
219 void OnHostMsgGetPluginInstanceURL(PP_Instance instance, 222 void OnHostMsgGetPluginInstanceURL(PP_Instance instance,
220 SerializedVarReturnValue result); 223 SerializedVarReturnValue result);
224 void OnHostMsgGetPluginRefererURL(PP_Instance instance,
225 SerializedVarReturnValue result);
221 virtual void OnHostMsgNeedKey(PP_Instance instance, 226 virtual void OnHostMsgNeedKey(PP_Instance instance,
222 SerializedVarReceiveInput key_system, 227 SerializedVarReceiveInput key_system,
223 SerializedVarReceiveInput session_id, 228 SerializedVarReceiveInput session_id,
224 SerializedVarReceiveInput init_data); 229 SerializedVarReceiveInput init_data);
225 virtual void OnHostMsgKeyAdded(PP_Instance instance, 230 virtual void OnHostMsgKeyAdded(PP_Instance instance,
226 SerializedVarReceiveInput key_system, 231 SerializedVarReceiveInput key_system,
227 SerializedVarReceiveInput session_id); 232 SerializedVarReceiveInput session_id);
228 virtual void OnHostMsgKeyMessage(PP_Instance instance, 233 virtual void OnHostMsgKeyMessage(PP_Instance instance,
229 SerializedVarReceiveInput key_system, 234 SerializedVarReceiveInput key_system,
230 SerializedVarReceiveInput session_id, 235 SerializedVarReceiveInput session_id,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // Other helpers. 272 // Other helpers.
268 void CancelAnyPendingRequestSurroundingText(PP_Instance instance); 273 void CancelAnyPendingRequestSurroundingText(PP_Instance instance);
269 274
270 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; 275 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_;
271 }; 276 };
272 277
273 } // namespace proxy 278 } // namespace proxy
274 } // namespace ppapi 279 } // namespace ppapi
275 280
276 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ 281 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698