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: Source/platform/network/ResourceRequest.cpp

Issue 316353004: Remove the report load timing field in ResourceRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removing the reportLoadTiming field from ResourceRequest Created 6 years, 6 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
« no previous file with comments | « Source/platform/network/ResourceRequest.h ('k') | public/platform/WebURLRequest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 } 352 }
353 353
354 void ResourceRequest::initialize(const KURL& url, ResourceRequestCachePolicy cac hePolicy) 354 void ResourceRequest::initialize(const KURL& url, ResourceRequestCachePolicy cac hePolicy)
355 { 355 {
356 m_url = url; 356 m_url = url;
357 m_cachePolicy = cachePolicy; 357 m_cachePolicy = cachePolicy;
358 m_timeoutInterval = s_defaultTimeoutInterval; 358 m_timeoutInterval = s_defaultTimeoutInterval;
359 m_httpMethod = "GET"; 359 m_httpMethod = "GET";
360 m_allowStoredCredentials = true; 360 m_allowStoredCredentials = true;
361 m_reportUploadProgress = false; 361 m_reportUploadProgress = false;
362 m_reportLoadTiming = false;
363 m_reportRawHeaders = false; 362 m_reportRawHeaders = false;
364 m_hasUserGesture = false; 363 m_hasUserGesture = false;
365 m_downloadToFile = false; 364 m_downloadToFile = false;
366 m_priority = ResourceLoadPriorityLow; 365 m_priority = ResourceLoadPriorityLow;
367 m_intraPriorityValue = 0; 366 m_intraPriorityValue = 0;
368 m_requestorID = 0; 367 m_requestorID = 0;
369 m_requestorProcessID = 0; 368 m_requestorProcessID = 0;
370 m_appCacheHostID = 0; 369 m_appCacheHostID = 0;
371 m_targetType = TargetIsUnspecified; 370 m_targetType = TargetIsUnspecified;
372 m_referrerPolicy = ReferrerPolicyDefault; 371 m_referrerPolicy = ReferrerPolicyDefault;
373 } 372 }
374 373
375 // This is used by the loader to control the number of issued parallel load requ ests. 374 // This is used by the loader to control the number of issued parallel load requ ests.
376 unsigned initializeMaximumHTTPConnectionCountPerHost() 375 unsigned initializeMaximumHTTPConnectionCountPerHost()
377 { 376 {
378 // The chromium network stack already handles limiting the number of 377 // The chromium network stack already handles limiting the number of
379 // parallel requests per host, so there's no need to do it here. Therefore, 378 // parallel requests per host, so there's no need to do it here. Therefore,
380 // this is set to a high value that should never be hit in practice. 379 // this is set to a high value that should never be hit in practice.
381 return 10000; 380 return 10000;
382 } 381 }
383 382
384 } 383 }
OLDNEW
« no previous file with comments | « Source/platform/network/ResourceRequest.h ('k') | public/platform/WebURLRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698