| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 bool* send_referrer); | 241 bool* send_referrer); |
| 242 | 242 |
| 243 // Notifies the embedder that the given frame is requesting the resource at | 243 // Notifies the embedder that the given frame is requesting the resource at |
| 244 // |url|. If the function returns true, the url is changed to |new_url|. | 244 // |url|. If the function returns true, the url is changed to |new_url|. |
| 245 virtual bool WillSendRequest(blink::WebFrame* frame, | 245 virtual bool WillSendRequest(blink::WebFrame* frame, |
| 246 ui::PageTransition transition_type, | 246 ui::PageTransition transition_type, |
| 247 const GURL& url, | 247 const GURL& url, |
| 248 const GURL& first_party_for_cookies, | 248 const GURL& first_party_for_cookies, |
| 249 GURL* new_url); | 249 GURL* new_url); |
| 250 | 250 |
| 251 // Returns true if the request is associated with a document that is in |
| 252 // ""prefetch only" mode, and will not be rendered. |
| 253 virtual bool IsPrefetchOnly(RenderFrame* render_frame, |
| 254 const blink::WebURLRequest& request); |
| 255 |
| 251 // See blink::Platform. | 256 // See blink::Platform. |
| 252 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 257 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
| 253 size_t length); | 258 size_t length); |
| 254 virtual bool IsLinkVisited(unsigned long long link_hash); | 259 virtual bool IsLinkVisited(unsigned long long link_hash); |
| 255 virtual blink::WebPrescientNetworking* GetPrescientNetworking(); | 260 virtual blink::WebPrescientNetworking* GetPrescientNetworking(); |
| 256 virtual bool ShouldOverridePageVisibilityState( | 261 virtual bool ShouldOverridePageVisibilityState( |
| 257 const RenderFrame* render_frame, | 262 const RenderFrame* render_frame, |
| 258 blink::WebPageVisibilityState* override_state); | 263 blink::WebPageVisibilityState* override_state); |
| 259 | 264 |
| 260 // Returns true if the given Pepper plugin is external (requiring special | 265 // Returns true if the given Pepper plugin is external (requiring special |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 shell::InterfaceRegistry* interface_registry) {} | 373 shell::InterfaceRegistry* interface_registry) {} |
| 369 | 374 |
| 370 // Overwrites the given URL to use an HTML5 embed if possible. | 375 // Overwrites the given URL to use an HTML5 embed if possible. |
| 371 // An empty URL is returned if the URL is not overriden. | 376 // An empty URL is returned if the URL is not overriden. |
| 372 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); | 377 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); |
| 373 }; | 378 }; |
| 374 | 379 |
| 375 } // namespace content | 380 } // namespace content |
| 376 | 381 |
| 377 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 382 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |