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

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

Issue 801173002: Fix message routing for BrowserPlugin in iframe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests that don't have a RenderThreadImpl Created 6 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
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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // If |send_referrer| is set to false (which is the default), no referrer 216 // If |send_referrer| is set to false (which is the default), no referrer
217 // header will be send for the navigation. Otherwise, the referrer header is 217 // header will be send for the navigation. Otherwise, the referrer header is
218 // set according to the frame's referrer policy. 218 // set according to the frame's referrer policy.
219 virtual bool ShouldFork(blink::WebFrame* frame, 219 virtual bool ShouldFork(blink::WebFrame* frame,
220 const GURL& url, 220 const GURL& url,
221 const std::string& http_method, 221 const std::string& http_method,
222 bool is_initial_navigation, 222 bool is_initial_navigation,
223 bool is_server_redirect, 223 bool is_server_redirect,
224 bool* send_referrer); 224 bool* send_referrer);
225 225
226 // Returns true if this IPC message belongs to a guest container. Currently,
227 // BrowserPlugin is a guest container.
228 virtual bool ShouldForwardToGuestContainer(const IPC::Message& msg);
229
226 // Notifies the embedder that the given frame is requesting the resource at 230 // Notifies the embedder that the given frame is requesting the resource at
227 // |url|. If the function returns true, the url is changed to |new_url|. 231 // |url|. If the function returns true, the url is changed to |new_url|.
228 virtual bool WillSendRequest(blink::WebFrame* frame, 232 virtual bool WillSendRequest(blink::WebFrame* frame,
229 ui::PageTransition transition_type, 233 ui::PageTransition transition_type,
230 const GURL& url, 234 const GURL& url,
231 const GURL& first_party_for_cookies, 235 const GURL& first_party_for_cookies,
232 GURL* new_url); 236 GURL* new_url);
233 237
234 // See the corresponding functions in blink::WebFrameClient. 238 // See the corresponding functions in blink::WebFrameClient.
235 virtual void DidCreateScriptContext(blink::WebFrame* frame, 239 virtual void DidCreateScriptContext(blink::WebFrame* frame,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 virtual bool IsPluginAllowedToUseDevChannelAPIs(); 296 virtual bool IsPluginAllowedToUseDevChannelAPIs();
293 297
294 // Returns a user agent override specific for |url|, or empty string if 298 // Returns a user agent override specific for |url|, or empty string if
295 // default user agent should be used. 299 // default user agent should be used.
296 virtual std::string GetUserAgentOverrideForURL(const GURL& url); 300 virtual std::string GetUserAgentOverrideForURL(const GURL& url);
297 }; 301 };
298 302
299 } // namespace content 303 } // namespace content
300 304
301 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 305 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/renderer/browser_plugin_delegate.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698