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

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.cpp

Issue 2776523005: Plumbing devtools agent host id and request id between processes (Closed)
Patch Set: Rebased Created 3 years, 8 months 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 /* 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) 2009, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 fetch_redirect_mode_(WebURLRequest::kFetchRedirectModeFollow), 71 fetch_redirect_mode_(WebURLRequest::kFetchRedirectModeFollow),
72 previews_state_(WebURLRequest::kPreviewsUnspecified), 72 previews_state_(WebURLRequest::kPreviewsUnspecified),
73 referrer_policy_(kReferrerPolicyDefault), 73 referrer_policy_(kReferrerPolicyDefault),
74 did_set_http_referrer_(false), 74 did_set_http_referrer_(false),
75 check_for_browser_side_navigation_(true), 75 check_for_browser_side_navigation_(true),
76 ui_start_time_(0), 76 ui_start_time_(0),
77 is_external_request_(false), 77 is_external_request_(false),
78 is_same_document_navigation_(false), 78 is_same_document_navigation_(false),
79 input_perf_metric_report_policy_( 79 input_perf_metric_report_policy_(
80 InputToLoadPerfMetricReportPolicy::kNoReport), 80 InputToLoadPerfMetricReportPolicy::kNoReport),
81 browser_generated_request_id_(0),
81 redirect_status_(RedirectStatus::kNoRedirect) {} 82 redirect_status_(RedirectStatus::kNoRedirect) {}
82 83
83 ResourceRequest::ResourceRequest(CrossThreadResourceRequestData* data) 84 ResourceRequest::ResourceRequest(CrossThreadResourceRequestData* data)
84 : ResourceRequest(data->url_) { 85 : ResourceRequest(data->url_) {
85 SetCachePolicy(data->cache_policy_); 86 SetCachePolicy(data->cache_policy_);
86 SetTimeoutInterval(data->timeout_interval_); 87 SetTimeoutInterval(data->timeout_interval_);
87 SetFirstPartyForCookies(data->first_party_for_cookies_); 88 SetFirstPartyForCookies(data->first_party_for_cookies_);
88 SetRequestorOrigin(data->requestor_origin_); 89 SetRequestorOrigin(data->requestor_origin_);
89 SetHTTPMethod(AtomicString(data->http_method_)); 90 SetHTTPMethod(AtomicString(data->http_method_));
90 SetPriority(data->priority_, data->intra_priority_value_); 91 SetPriority(data->priority_, data->intra_priority_value_);
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 // layer. 419 // layer.
419 if (HttpMethod() == HTTPNames::GET || HttpMethod() == HTTPNames::HEAD) 420 if (HttpMethod() == HTTPNames::GET || HttpMethod() == HTTPNames::HEAD)
420 return false; 421 return false;
421 422
422 // For non-GET and non-HEAD methods, always send an Origin header so the 423 // For non-GET and non-HEAD methods, always send an Origin header so the
423 // server knows we support this feature. 424 // server knows we support this feature.
424 return true; 425 return true;
425 } 426 }
426 427
427 } // namespace blink 428 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h ('k') | third_party/WebKit/public/platform/WebURLRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698