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

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: More cleanup 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 virtual bool ShouldForwardToGuestContainer(const IPC::Message& msg);
lazyboy 2014/12/16 23:57:30 Need comment.
Charlie Reis 2014/12/17 00:06:44 This is a public interface, so this requires a com
Fady Samuel 2014/12/17 19:30:35 Done.
Fady Samuel 2014/12/17 19:30:35 Done.
227
226 // Notifies the embedder that the given frame is requesting the resource at 228 // 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|. 229 // |url|. If the function returns true, the url is changed to |new_url|.
228 virtual bool WillSendRequest(blink::WebFrame* frame, 230 virtual bool WillSendRequest(blink::WebFrame* frame,
229 ui::PageTransition transition_type, 231 ui::PageTransition transition_type,
230 const GURL& url, 232 const GURL& url,
231 const GURL& first_party_for_cookies, 233 const GURL& first_party_for_cookies,
232 GURL* new_url); 234 GURL* new_url);
233 235
234 // See the corresponding functions in blink::WebFrameClient. 236 // See the corresponding functions in blink::WebFrameClient.
235 virtual void DidCreateScriptContext(blink::WebFrame* frame, 237 virtual void DidCreateScriptContext(blink::WebFrame* frame,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 virtual bool IsPluginAllowedToUseDevChannelAPIs(); 294 virtual bool IsPluginAllowedToUseDevChannelAPIs();
293 295
294 // Returns a user agent override specific for |url|, or empty string if 296 // Returns a user agent override specific for |url|, or empty string if
295 // default user agent should be used. 297 // default user agent should be used.
296 virtual std::string GetUserAgentOverrideForURL(const GURL& url); 298 virtual std::string GetUserAgentOverrideForURL(const GURL& url);
297 }; 299 };
298 300
299 } // namespace content 301 } // namespace content
300 302
301 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 303 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698