| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |