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

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

Issue 2932003002: Implement nextHopProtocol in PerformanceResourceTiming and PerformanceNavigationTiming. (Closed)
Patch Set: Make ConnectionInfoString() return AtomicString Created 3 years, 5 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 } 334 }
335 335
336 const AtomicString& RemoteIPAddress() const { return remote_ip_address_; } 336 const AtomicString& RemoteIPAddress() const { return remote_ip_address_; }
337 void SetRemoteIPAddress(const AtomicString& value) { 337 void SetRemoteIPAddress(const AtomicString& value) {
338 remote_ip_address_ = value; 338 remote_ip_address_ = value;
339 } 339 }
340 340
341 unsigned short RemotePort() const { return remote_port_; } 341 unsigned short RemotePort() const { return remote_port_; }
342 void SetRemotePort(unsigned short value) { remote_port_ = value; } 342 void SetRemotePort(unsigned short value) { remote_port_ = value; }
343 343
344 const AtomicString& AlpnNegotiatedProtocol() const {
345 return alpn_negotiated_protocol_;
346 }
347 void SetAlpnNegotiatedProtocol(const AtomicString& value) {
348 alpn_negotiated_protocol_ = value;
349 }
350
351 net::HttpResponseInfo::ConnectionInfo ConnectionInfo() const {
352 return connection_info_;
353 }
354 void SetConnectionInfo(net::HttpResponseInfo::ConnectionInfo value) {
355 connection_info_ = value;
356 }
357
358 AtomicString ConnectionInfoString() const;
359
344 long long EncodedDataLength() const { return encoded_data_length_; } 360 long long EncodedDataLength() const { return encoded_data_length_; }
345 void SetEncodedDataLength(long long value); 361 void SetEncodedDataLength(long long value);
346 362
347 long long EncodedBodyLength() const { return encoded_body_length_; } 363 long long EncodedBodyLength() const { return encoded_body_length_; }
348 void SetEncodedBodyLength(long long value); 364 void SetEncodedBodyLength(long long value);
349 365
350 long long DecodedBodyLength() const { return decoded_body_length_; } 366 long long DecodedBodyLength() const { return decoded_body_length_; }
351 void SetDecodedBodyLength(long long value); 367 void SetDecodedBodyLength(long long value);
352 368
353 const String& DownloadedFilePath() const { return downloaded_file_path_; } 369 const String& DownloadedFilePath() const { return downloaded_file_path_; }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 String cache_storage_cache_name_; 486 String cache_storage_cache_name_;
471 487
472 // The headers that should be exposed according to CORS. Only guaranteed 488 // The headers that should be exposed according to CORS. Only guaranteed
473 // to be set if the response was fetched by a ServiceWorker. 489 // to be set if the response was fetched by a ServiceWorker.
474 Vector<String> cors_exposed_header_names_; 490 Vector<String> cors_exposed_header_names_;
475 491
476 // The time at which the response headers were received. For cached 492 // The time at which the response headers were received. For cached
477 // responses, this time could be "far" in the past. 493 // responses, this time could be "far" in the past.
478 int64_t response_time_; 494 int64_t response_time_;
479 495
496 // ALPN negotiated protocol of the socket which fetched this resource.
497 AtomicString alpn_negotiated_protocol_;
498
499 // Information about the type of connection used to fetch this resource.
500 net::HttpResponseInfo::ConnectionInfo connection_info_;
501
480 // Size of the response in bytes prior to decompression. 502 // Size of the response in bytes prior to decompression.
481 long long encoded_data_length_; 503 long long encoded_data_length_;
482 504
483 // Size of the response body in bytes prior to decompression. 505 // Size of the response body in bytes prior to decompression.
484 long long encoded_body_length_; 506 long long encoded_body_length_;
485 507
486 // Sizes of the response body in bytes after any content-encoding is 508 // Sizes of the response body in bytes after any content-encoding is
487 // removed. 509 // removed.
488 long long decoded_body_length_; 510 long long decoded_body_length_;
489 511
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 long long encoded_data_length_; 570 long long encoded_data_length_;
549 long long encoded_body_length_; 571 long long encoded_body_length_;
550 long long decoded_body_length_; 572 long long decoded_body_length_;
551 String downloaded_file_path_; 573 String downloaded_file_path_;
552 RefPtr<BlobDataHandle> downloaded_file_handle_; 574 RefPtr<BlobDataHandle> downloaded_file_handle_;
553 }; 575 };
554 576
555 } // namespace blink 577 } // namespace blink
556 578
557 #endif // ResourceResponse_h 579 #endif // ResourceResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698