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

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

Issue 2429063002: Implement nextHopProtocol in PerformanceResourceTiming and PerformanceNavigationTiming.
Patch Set: included changes for navigation timing 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) 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 } 323 }
324 324
325 int64_t responseTime() const { return m_responseTime; } 325 int64_t responseTime() const { return m_responseTime; }
326 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; } 326 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; }
327 327
328 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; } 328 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; }
329 void setRemoteIPAddress(const AtomicString& value) { 329 void setRemoteIPAddress(const AtomicString& value) {
330 m_remoteIPAddress = value; 330 m_remoteIPAddress = value;
331 } 331 }
332 332
333 const AtomicString& alpnNegotiatedProtocol() const;
334 void setALPNNegotiatedProtocol(const AtomicString& value);
335
336 const AtomicString& connectionInfo() const;
337 void setConnectionInfo(const AtomicString& value);
338
333 unsigned short remotePort() const { return m_remotePort; } 339 unsigned short remotePort() const { return m_remotePort; }
334 void setRemotePort(unsigned short value) { m_remotePort = value; } 340 void setRemotePort(unsigned short value) { m_remotePort = value; }
335 341
336 long long encodedDataLength() const { return m_encodedDataLength; } 342 long long encodedDataLength() const { return m_encodedDataLength; }
337 void setEncodedDataLength(long long value); 343 void setEncodedDataLength(long long value);
338 344
339 long long encodedBodyLength() const { return m_encodedBodyLength; } 345 long long encodedBodyLength() const { return m_encodedBodyLength; }
340 void addToEncodedBodyLength(long long value); 346 void addToEncodedBodyLength(long long value);
341 347
342 long long decodedBodyLength() const { return m_decodedBodyLength; } 348 long long decodedBodyLength() const { return m_decodedBodyLength; }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 // the request for this resource. 465 // the request for this resource.
460 bool m_didServiceWorkerNavigationPreload; 466 bool m_didServiceWorkerNavigationPreload;
461 467
462 // The time at which the response headers were received. For cached 468 // The time at which the response headers were received. For cached
463 // responses, this time could be "far" in the past. 469 // responses, this time could be "far" in the past.
464 int64_t m_responseTime; 470 int64_t m_responseTime;
465 471
466 // Remote IP address of the socket which fetched this resource. 472 // Remote IP address of the socket which fetched this resource.
467 AtomicString m_remoteIPAddress; 473 AtomicString m_remoteIPAddress;
468 474
475 // ALPN negotiated protocol of the socket which fetched this resource.
476 AtomicString m_alpnNegotiatedProtocol;
477
478 // Information about the type of connection used to fetch this resource.
479 AtomicString m_connectionInfo;
480
469 // Remote port number of the socket which fetched this resource. 481 // Remote port number of the socket which fetched this resource.
470 unsigned short m_remotePort; 482 unsigned short m_remotePort;
471 483
472 // Size of the response in bytes prior to decompression. 484 // Size of the response in bytes prior to decompression.
473 long long m_encodedDataLength; 485 long long m_encodedDataLength;
474 486
475 // Size of the response body in bytes prior to decompression. 487 // Size of the response body in bytes prior to decompression.
476 long long m_encodedBodyLength; 488 long long m_encodedBodyLength;
477 489
478 // Sizes of the response body in bytes after any content-encoding is 490 // Sizes of the response body in bytes after any content-encoding is
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 bool m_wasFetchedViaProxy; 541 bool m_wasFetchedViaProxy;
530 bool m_wasFetchedViaServiceWorker; 542 bool m_wasFetchedViaServiceWorker;
531 bool m_wasFetchedViaForeignFetch; 543 bool m_wasFetchedViaForeignFetch;
532 bool m_wasFallbackRequiredByServiceWorker; 544 bool m_wasFallbackRequiredByServiceWorker;
533 WebServiceWorkerResponseType m_serviceWorkerResponseType; 545 WebServiceWorkerResponseType m_serviceWorkerResponseType;
534 Vector<KURL> m_urlListViaServiceWorker; 546 Vector<KURL> m_urlListViaServiceWorker;
535 String m_cacheStorageCacheName; 547 String m_cacheStorageCacheName;
536 bool m_didServiceWorkerNavigationPreload; 548 bool m_didServiceWorkerNavigationPreload;
537 int64_t m_responseTime; 549 int64_t m_responseTime;
538 String m_remoteIPAddress; 550 String m_remoteIPAddress;
551 String m_alpnNegotiatedProtocol;
552 String m_connectionInfo;
539 unsigned short m_remotePort; 553 unsigned short m_remotePort;
540 long long m_encodedDataLength; 554 long long m_encodedDataLength;
541 long long m_encodedBodyLength; 555 long long m_encodedBodyLength;
542 long long m_decodedBodyLength; 556 long long m_decodedBodyLength;
543 String m_downloadedFilePath; 557 String m_downloadedFilePath;
544 RefPtr<BlobDataHandle> m_downloadedFileHandle; 558 RefPtr<BlobDataHandle> m_downloadedFileHandle;
545 }; 559 };
546 560
547 } // namespace blink 561 } // namespace blink
548 562
549 #endif // ResourceResponse_h 563 #endif // ResourceResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698