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

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 102763005: Remove the ChromeFrame specific cookie code between the renderer and browser process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years 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
« no previous file with comments | « chrome_frame/urlmon_url_request.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 bool* send_referrer); 201 bool* send_referrer);
202 202
203 // Notifies the embedder that the given frame is requesting the resource at 203 // Notifies the embedder that the given frame is requesting the resource at
204 // |url|. If the function returns true, the url is changed to |new_url|. 204 // |url|. If the function returns true, the url is changed to |new_url|.
205 virtual bool WillSendRequest(blink::WebFrame* frame, 205 virtual bool WillSendRequest(blink::WebFrame* frame,
206 PageTransition transition_type, 206 PageTransition transition_type,
207 const GURL& url, 207 const GURL& url,
208 const GURL& first_party_for_cookies, 208 const GURL& first_party_for_cookies,
209 GURL* new_url); 209 GURL* new_url);
210 210
211 // Whether to pump events when sending sync cookie messages. Needed if the
212 // embedder can potentiall put up a modal dialog on the UI thread as a result.
213 virtual bool ShouldPumpEventsDuringCookieMessage();
214
215 // See the corresponding functions in blink::WebFrameClient. 211 // See the corresponding functions in blink::WebFrameClient.
216 virtual void DidCreateScriptContext(blink::WebFrame* frame, 212 virtual void DidCreateScriptContext(blink::WebFrame* frame,
217 v8::Handle<v8::Context> context, 213 v8::Handle<v8::Context> context,
218 int extension_group, 214 int extension_group,
219 int world_id) {} 215 int world_id) {}
220 virtual void WillReleaseScriptContext(blink::WebFrame* frame, 216 virtual void WillReleaseScriptContext(blink::WebFrame* frame,
221 v8::Handle<v8::Context>, 217 v8::Handle<v8::Context>,
222 int world_id) {} 218 int world_id) {}
223 219
224 // See blink::Platform. 220 // See blink::Platform.
225 virtual unsigned long long VisitedLinkHash(const char* canonical_url, 221 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
226 size_t length); 222 size_t length);
227 virtual bool IsLinkVisited(unsigned long long link_hash); 223 virtual bool IsLinkVisited(unsigned long long link_hash);
228 virtual blink::WebPrescientNetworking* GetPrescientNetworking(); 224 virtual blink::WebPrescientNetworking* GetPrescientNetworking();
229 virtual bool ShouldOverridePageVisibilityState( 225 virtual bool ShouldOverridePageVisibilityState(
230 const RenderFrame* render_frame, 226 const RenderFrame* render_frame,
231 blink::WebPageVisibilityState* override_state); 227 blink::WebPageVisibilityState* override_state);
232 228
233 // Return true if the GetCookie request will be handled by the embedder.
234 // Cookies are returned in the cookie parameter.
235 virtual bool HandleGetCookieRequest(RenderView* sender,
236 const GURL& url,
237 const GURL& first_party_for_cookies,
238 std::string* cookies);
239
240 // Return true if the SetCookie request will be handled by the embedder.
241 // Cookies to be set are passed in the value parameter.
242 virtual bool HandleSetCookieRequest(RenderView* sender,
243 const GURL& url,
244 const GURL& first_party_for_cookies,
245 const std::string& value);
246
247 // Allows an embedder to return custom PPAPI interfaces. 229 // Allows an embedder to return custom PPAPI interfaces.
248 virtual const void* CreatePPAPIInterface( 230 virtual const void* CreatePPAPIInterface(
249 const std::string& interface_name); 231 const std::string& interface_name);
250 232
251 // Returns true if the given Pepper plugin is external (requiring special 233 // Returns true if the given Pepper plugin is external (requiring special
252 // startup steps). 234 // startup steps).
253 virtual bool IsExternalPepperPlugin(const std::string& module_name); 235 virtual bool IsExternalPepperPlugin(const std::string& module_name);
254 236
255 // Returns whether BrowserPlugin should be allowed within the |container|. 237 // Returns whether BrowserPlugin should be allowed within the |container|.
256 virtual bool AllowBrowserPlugin(blink::WebPluginContainer* container); 238 virtual bool AllowBrowserPlugin(blink::WebPluginContainer* container);
(...skipping 19 matching lines...) Expand all
276 258
277 // Creates a permission client proxy for in-renderer worker. 259 // Creates a permission client proxy for in-renderer worker.
278 virtual blink::WebWorkerPermissionClientProxy* 260 virtual blink::WebWorkerPermissionClientProxy*
279 CreateWorkerPermissionClientProxy(RenderView* render_view, 261 CreateWorkerPermissionClientProxy(RenderView* render_view,
280 blink::WebFrame* frame); 262 blink::WebFrame* frame);
281 }; 263 };
282 264
283 } // namespace content 265 } // namespace content
284 266
285 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 267 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome_frame/urlmon_url_request.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698