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

Side by Side Diff: Source/platform/exported/WebURLRequest.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 bool WebURLRequest::reportUploadProgress() const 207 bool WebURLRequest::reportUploadProgress() const
208 { 208 {
209 return m_private->m_resourceRequest->reportUploadProgress(); 209 return m_private->m_resourceRequest->reportUploadProgress();
210 } 210 }
211 211
212 void WebURLRequest::setReportUploadProgress(bool reportUploadProgress) 212 void WebURLRequest::setReportUploadProgress(bool reportUploadProgress)
213 { 213 {
214 m_private->m_resourceRequest->setReportUploadProgress(reportUploadProgress); 214 m_private->m_resourceRequest->setReportUploadProgress(reportUploadProgress);
215 } 215 }
216 216
217 bool WebURLRequest::reportLoadTiming() const
218 {
219 return m_private->m_resourceRequest->reportLoadTiming();
220 }
221
222 void WebURLRequest::setReportRawHeaders(bool reportRawHeaders) 217 void WebURLRequest::setReportRawHeaders(bool reportRawHeaders)
223 { 218 {
224 m_private->m_resourceRequest->setReportRawHeaders(reportRawHeaders); 219 m_private->m_resourceRequest->setReportRawHeaders(reportRawHeaders);
225 } 220 }
226 221
227 bool WebURLRequest::reportRawHeaders() const 222 bool WebURLRequest::reportRawHeaders() const
228 { 223 {
229 return m_private->m_resourceRequest->reportRawHeaders(); 224 return m_private->m_resourceRequest->reportRawHeaders();
230 } 225 }
231 226
232 void WebURLRequest::setReportLoadTiming(bool reportLoadTiming)
233 {
234 m_private->m_resourceRequest->setReportLoadTiming(reportLoadTiming);
235 }
236
237 WebURLRequest::TargetType WebURLRequest::targetType() const 227 WebURLRequest::TargetType WebURLRequest::targetType() const
238 { 228 {
239 // FIXME: Temporary special case until downstream chromium.org knows of the new TargetTypes. 229 // FIXME: Temporary special case until downstream chromium.org knows of the new TargetTypes.
240 TargetType targetType = static_cast<TargetType>(m_private->m_resourceRequest ->targetType()); 230 TargetType targetType = static_cast<TargetType>(m_private->m_resourceRequest ->targetType());
241 if (targetType == TargetIsTextTrack || targetType == TargetIsUnspecified) 231 if (targetType == TargetIsTextTrack || targetType == TargetIsUnspecified)
242 return TargetIsSubresource; 232 return TargetIsSubresource;
243 return targetType; 233 return targetType;
244 } 234 }
245 235
246 WebReferrerPolicy WebURLRequest::referrerPolicy() const 236 WebReferrerPolicy WebURLRequest::referrerPolicy() const
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // Subclasses may call this directly so a self-assignment check is needed 334 // Subclasses may call this directly so a self-assignment check is needed
345 // here as well as in the public assign method. 335 // here as well as in the public assign method.
346 if (m_private == p) 336 if (m_private == p)
347 return; 337 return;
348 if (m_private) 338 if (m_private)
349 m_private->dispose(); 339 m_private->dispose();
350 m_private = p; 340 m_private = p;
351 } 341 }
352 342
353 } // namespace blink 343 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorResourceAgent.cpp ('k') | Source/platform/network/ResourceRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698