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

Side by Side Diff: content/public/renderer/document_state.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_
6 #define CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ 6 #define CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 alpn_negotiated_protocol_ = value; 47 alpn_negotiated_protocol_ = value;
48 } 48 }
49 49
50 bool was_alternate_protocol_available() const { 50 bool was_alternate_protocol_available() const {
51 return was_alternate_protocol_available_; 51 return was_alternate_protocol_available_;
52 } 52 }
53 void set_was_alternate_protocol_available(bool value) { 53 void set_was_alternate_protocol_available(bool value) {
54 was_alternate_protocol_available_ = value; 54 was_alternate_protocol_available_ = value;
55 } 55 }
56 56
57 net::HttpResponseInfo::ConnectionInfo connection_info() const { 57 std::string connection_info() const { return connection_info_; }
kinuko 2017/04/18 05:46:25 const std::string&
58 return connection_info_; 58 void set_connection_info(const std::string& connection_info) {
59 }
60 void set_connection_info(
61 net::HttpResponseInfo::ConnectionInfo connection_info) {
62 connection_info_ = connection_info; 59 connection_info_ = connection_info;
63 } 60 }
64 61
65 // For LoadDataWithBaseURL navigations, |was_load_data_with_base_url_request_| 62 // For LoadDataWithBaseURL navigations, |was_load_data_with_base_url_request_|
66 // is set to true and |data_url_| is set to the data URL of the navigation. 63 // is set to true and |data_url_| is set to the data URL of the navigation.
67 // Otherwise, |was_load_data_with_base_url_request_| is false and |data_url_| 64 // Otherwise, |was_load_data_with_base_url_request_| is false and |data_url_|
68 // is empty. 65 // is empty.
69 void set_was_load_data_with_base_url_request(bool value) { 66 void set_was_load_data_with_base_url_request(bool value) {
70 was_load_data_with_base_url_request_ = value; 67 was_load_data_with_base_url_request_ = value;
71 } 68 }
(...skipping 13 matching lines...) Expand all
85 bool can_load_local_resources() const { return can_load_local_resources_; } 82 bool can_load_local_resources() const { return can_load_local_resources_; }
86 void set_can_load_local_resources(bool can_load) { 83 void set_can_load_local_resources(bool can_load) {
87 can_load_local_resources_ = can_load; 84 can_load_local_resources_ = can_load;
88 } 85 }
89 86
90 private: 87 private:
91 bool was_fetched_via_spdy_; 88 bool was_fetched_via_spdy_;
92 bool was_alpn_negotiated_; 89 bool was_alpn_negotiated_;
93 std::string alpn_negotiated_protocol_; 90 std::string alpn_negotiated_protocol_;
94 bool was_alternate_protocol_available_; 91 bool was_alternate_protocol_available_;
95 net::HttpResponseInfo::ConnectionInfo connection_info_; 92 std::string connection_info_;
96 93
97 bool was_load_data_with_base_url_request_; 94 bool was_load_data_with_base_url_request_;
98 GURL data_url_; 95 GURL data_url_;
99 96
100 std::unique_ptr<NavigationState> navigation_state_; 97 std::unique_ptr<NavigationState> navigation_state_;
101 98
102 bool can_load_local_resources_; 99 bool can_load_local_resources_;
103 }; 100 };
104 101
105 } // namespace content 102 } // namespace content
106 103
107 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ 104 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698