OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 RedirectStatus GetRedirectStatus() const { return redirect_status_; } | 311 RedirectStatus GetRedirectStatus() const { return redirect_status_; } |
312 | 312 |
313 void SetNavigationStartTime(double); | 313 void SetNavigationStartTime(double); |
314 double NavigationStartTime() const { return navigation_start_; } | 314 double NavigationStartTime() const { return navigation_start_; } |
315 | 315 |
316 void SetIsSameDocumentNavigation(bool is_same_document) { | 316 void SetIsSameDocumentNavigation(bool is_same_document) { |
317 is_same_document_navigation_ = is_same_document; | 317 is_same_document_navigation_ = is_same_document; |
318 } | 318 } |
319 bool IsSameDocumentNavigation() const { return is_same_document_navigation_; } | 319 bool IsSameDocumentNavigation() const { return is_same_document_navigation_; } |
320 | 320 |
| 321 void SetDevToolsAgentHostId(const String& dev_tools_agent_host_id) { |
| 322 dev_tools_agent_host_id_ = dev_tools_agent_host_id; |
| 323 } |
| 324 const String& DevToolsAgentHostId() const { return dev_tools_agent_host_id_; } |
| 325 |
| 326 void SetDevToolsRequestId(const String& dev_tools_request_id) { |
| 327 dev_tools_request_id_ = dev_tools_request_id; |
| 328 } |
| 329 const String& DevToolsRequestId() const { return dev_tools_request_id_; } |
| 330 |
| 331 // Only expected to be set for resource requests due to a browser side |
| 332 // navigation. |
| 333 void SetBrowserGeneratedRequestId(unsigned browser_generated_request_id) { |
| 334 browser_generated_request_id_ = browser_generated_request_id; |
| 335 } |
| 336 unsigned BrowserGeneratedRequestId() const { |
| 337 return browser_generated_request_id_; |
| 338 } |
| 339 |
321 private: | 340 private: |
322 const CacheControlHeader& GetCacheControlHeader() const; | 341 const CacheControlHeader& GetCacheControlHeader() const; |
323 | 342 |
324 bool NeedsHTTPOrigin() const; | 343 bool NeedsHTTPOrigin() const; |
325 | 344 |
326 KURL url_; | 345 KURL url_; |
327 WebCachePolicy cache_policy_; | 346 WebCachePolicy cache_policy_; |
328 double timeout_interval_; // 0 is a magic value for platform default on | 347 double timeout_interval_; // 0 is a magic value for platform default on |
329 // platforms that have one. | 348 // platforms that have one. |
330 KURL first_party_for_cookies_; | 349 KURL first_party_for_cookies_; |
(...skipping 22 matching lines...) Expand all Loading... |
353 WebURLRequest::FetchCredentialsMode fetch_credentials_mode_; | 372 WebURLRequest::FetchCredentialsMode fetch_credentials_mode_; |
354 WebURLRequest::FetchRedirectMode fetch_redirect_mode_; | 373 WebURLRequest::FetchRedirectMode fetch_redirect_mode_; |
355 WebURLRequest::PreviewsState previews_state_; | 374 WebURLRequest::PreviewsState previews_state_; |
356 ReferrerPolicy referrer_policy_; | 375 ReferrerPolicy referrer_policy_; |
357 bool did_set_http_referrer_; | 376 bool did_set_http_referrer_; |
358 bool check_for_browser_side_navigation_; | 377 bool check_for_browser_side_navigation_; |
359 double ui_start_time_; | 378 double ui_start_time_; |
360 bool is_external_request_; | 379 bool is_external_request_; |
361 bool is_same_document_navigation_; | 380 bool is_same_document_navigation_; |
362 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_; | 381 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_; |
| 382 String dev_tools_agent_host_id_; |
| 383 String dev_tools_request_id_; |
| 384 unsigned browser_generated_request_id_; |
363 | 385 |
364 mutable CacheControlHeader cache_control_header_cache_; | 386 mutable CacheControlHeader cache_control_header_cache_; |
365 | 387 |
366 static double default_timeout_interval_; | 388 static double default_timeout_interval_; |
367 | 389 |
368 RedirectStatus redirect_status_; | 390 RedirectStatus redirect_status_; |
369 | 391 |
370 double navigation_start_ = 0; | 392 double navigation_start_ = 0; |
371 }; | 393 }; |
372 | 394 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 bool check_for_browser_side_navigation_; | 432 bool check_for_browser_side_navigation_; |
411 double ui_start_time_; | 433 double ui_start_time_; |
412 bool is_external_request_; | 434 bool is_external_request_; |
413 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_; | 435 InputToLoadPerfMetricReportPolicy input_perf_metric_report_policy_; |
414 ResourceRequest::RedirectStatus redirect_status_; | 436 ResourceRequest::RedirectStatus redirect_status_; |
415 }; | 437 }; |
416 | 438 |
417 } // namespace blink | 439 } // namespace blink |
418 | 440 |
419 #endif // ResourceRequest_h | 441 #endif // ResourceRequest_h |
OLD | NEW |