| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 // set according to the frame's referrer policy. | 232 // set according to the frame's referrer policy. |
| 233 virtual bool ShouldFork(blink::WebLocalFrame* frame, | 233 virtual bool ShouldFork(blink::WebLocalFrame* frame, |
| 234 const GURL& url, | 234 const GURL& url, |
| 235 const std::string& http_method, | 235 const std::string& http_method, |
| 236 bool is_initial_navigation, | 236 bool is_initial_navigation, |
| 237 bool is_server_redirect, | 237 bool is_server_redirect, |
| 238 bool* send_referrer); | 238 bool* send_referrer); |
| 239 | 239 |
| 240 // Notifies the embedder that the given frame is requesting the resource at | 240 // Notifies the embedder that the given frame is requesting the resource at |
| 241 // |url|. If the function returns true, the url is changed to |new_url|. | 241 // |url|. If the function returns true, the url is changed to |new_url|. |
| 242 virtual bool WillSendRequest(blink::WebFrame* frame, | 242 virtual bool WillSendRequest(blink::WebLocalFrame* frame, |
| 243 ui::PageTransition transition_type, | 243 ui::PageTransition transition_type, |
| 244 const blink::WebURL& url, | 244 const blink::WebURL& url, |
| 245 GURL* new_url); | 245 GURL* new_url); |
| 246 | 246 |
| 247 // Returns true if the request is associated with a document that is in | 247 // Returns true if the request is associated with a document that is in |
| 248 // ""prefetch only" mode, and will not be rendered. | 248 // ""prefetch only" mode, and will not be rendered. |
| 249 virtual bool IsPrefetchOnly(RenderFrame* render_frame, | 249 virtual bool IsPrefetchOnly(RenderFrame* render_frame, |
| 250 const blink::WebURLRequest& request); | 250 const blink::WebURLRequest& request); |
| 251 | 251 |
| 252 // See blink::Platform. | 252 // See blink::Platform. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 // |params_vector| is left empty, default parameters are used. | 378 // |params_vector| is left empty, default parameters are used. |
| 379 virtual void GetTaskSchedulerInitializationParams( | 379 virtual void GetTaskSchedulerInitializationParams( |
| 380 std::vector<base::SchedulerWorkerPoolParams>* params_vector, | 380 std::vector<base::SchedulerWorkerPoolParams>* params_vector, |
| 381 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* | 381 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* |
| 382 index_to_traits_callback) {} | 382 index_to_traits_callback) {} |
| 383 }; | 383 }; |
| 384 | 384 |
| 385 } // namespace content | 385 } // namespace content |
| 386 | 386 |
| 387 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 387 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |