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

Side by Side Diff: third_party/WebKit/Source/platform/network/ResourceResponse.h

Issue 2654663004: [Not for review] record detailed time breakdown of SW related requests.
Patch Set: add stream uma Created 3 years, 10 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) 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 333
334 const Vector<String>& corsExposedHeaderNames() const { 334 const Vector<String>& corsExposedHeaderNames() const {
335 return m_corsExposedHeaderNames; 335 return m_corsExposedHeaderNames;
336 } 336 }
337 void setCorsExposedHeaderNames(const Vector<String>& headerNames) { 337 void setCorsExposedHeaderNames(const Vector<String>& headerNames) {
338 m_corsExposedHeaderNames = headerNames; 338 m_corsExposedHeaderNames = headerNames;
339 } 339 }
340 340
341 int64_t responseTime() const { return m_responseTime; } 341 int64_t responseTime() const { return m_responseTime; }
342 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; } 342 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; }
343 int64_t responseStart() const { return m_responseStart; }
344 void setResponseStart(int64_t responseStart) {
345 m_responseStart = responseStart;
346 }
343 347
344 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; } 348 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; }
345 void setRemoteIPAddress(const AtomicString& value) { 349 void setRemoteIPAddress(const AtomicString& value) {
346 m_remoteIPAddress = value; 350 m_remoteIPAddress = value;
347 } 351 }
348 352
349 unsigned short remotePort() const { return m_remotePort; } 353 unsigned short remotePort() const { return m_remotePort; }
350 void setRemotePort(unsigned short value) { m_remotePort = value; } 354 void setRemotePort(unsigned short value) { m_remotePort = value; }
351 355
352 long long encodedDataLength() const { return m_encodedDataLength; } 356 long long encodedDataLength() const { return m_encodedDataLength; }
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 // the ServiceWorker. Null if the response isn't from the CacheStorage. 482 // the ServiceWorker. Null if the response isn't from the CacheStorage.
479 String m_cacheStorageCacheName; 483 String m_cacheStorageCacheName;
480 484
481 // The headers that should be exposed according to CORS. Only guaranteed 485 // The headers that should be exposed according to CORS. Only guaranteed
482 // to be set if the response was fetched by a ServiceWorker. 486 // to be set if the response was fetched by a ServiceWorker.
483 Vector<String> m_corsExposedHeaderNames; 487 Vector<String> m_corsExposedHeaderNames;
484 488
485 // The time at which the response headers were received. For cached 489 // The time at which the response headers were received. For cached
486 // responses, this time could be "far" in the past. 490 // responses, this time could be "far" in the past.
487 int64_t m_responseTime; 491 int64_t m_responseTime;
492 int64_t m_responseStart;
488 493
489 // Remote IP address of the socket which fetched this resource. 494 // Remote IP address of the socket which fetched this resource.
490 AtomicString m_remoteIPAddress; 495 AtomicString m_remoteIPAddress;
491 496
492 // Remote port number of the socket which fetched this resource. 497 // Remote port number of the socket which fetched this resource.
493 unsigned short m_remotePort; 498 unsigned short m_remotePort;
494 499
495 // Size of the response in bytes prior to decompression. 500 // Size of the response in bytes prior to decompression.
496 long long m_encodedDataLength; 501 long long m_encodedDataLength;
497 502
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 bool m_wasNpnNegotiated; 559 bool m_wasNpnNegotiated;
555 bool m_wasAlternateProtocolAvailable; 560 bool m_wasAlternateProtocolAvailable;
556 bool m_wasFetchedViaProxy; 561 bool m_wasFetchedViaProxy;
557 bool m_wasFetchedViaServiceWorker; 562 bool m_wasFetchedViaServiceWorker;
558 bool m_wasFetchedViaForeignFetch; 563 bool m_wasFetchedViaForeignFetch;
559 bool m_wasFallbackRequiredByServiceWorker; 564 bool m_wasFallbackRequiredByServiceWorker;
560 WebServiceWorkerResponseType m_serviceWorkerResponseType; 565 WebServiceWorkerResponseType m_serviceWorkerResponseType;
561 Vector<KURL> m_urlListViaServiceWorker; 566 Vector<KURL> m_urlListViaServiceWorker;
562 String m_cacheStorageCacheName; 567 String m_cacheStorageCacheName;
563 int64_t m_responseTime; 568 int64_t m_responseTime;
569 int64_t m_responseStart;
564 String m_remoteIPAddress; 570 String m_remoteIPAddress;
565 unsigned short m_remotePort; 571 unsigned short m_remotePort;
566 long long m_encodedDataLength; 572 long long m_encodedDataLength;
567 long long m_encodedBodyLength; 573 long long m_encodedBodyLength;
568 long long m_decodedBodyLength; 574 long long m_decodedBodyLength;
569 String m_downloadedFilePath; 575 String m_downloadedFilePath;
570 RefPtr<BlobDataHandle> m_downloadedFileHandle; 576 RefPtr<BlobDataHandle> m_downloadedFileHandle;
571 }; 577 };
572 578
573 } // namespace blink 579 } // namespace blink
574 580
575 #endif // ResourceResponse_h 581 #endif // ResourceResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698