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

Side by Side Diff: content/child/weburlresponse_extradata_impl.h

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_ 5 #ifndef CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_
6 #define CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_ 6 #define CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 83 }
84 84
85 bool is_ftp_directory_listing() const { return is_ftp_directory_listing_; } 85 bool is_ftp_directory_listing() const { return is_ftp_directory_listing_; }
86 void set_is_ftp_directory_listing(bool is_ftp_directory_listing) { 86 void set_is_ftp_directory_listing(bool is_ftp_directory_listing) {
87 is_ftp_directory_listing_ = is_ftp_directory_listing; 87 is_ftp_directory_listing_ = is_ftp_directory_listing;
88 } 88 }
89 89
90 bool is_using_lofi() const { return is_using_lofi_; } 90 bool is_using_lofi() const { return is_using_lofi_; }
91 void set_is_using_lofi(bool is_using_lofi) { is_using_lofi_ = is_using_lofi; } 91 void set_is_using_lofi(bool is_using_lofi) { is_using_lofi_ = is_using_lofi; }
92 92
93 bool was_fetched_via_data_reduction_proxy() const {
94 return was_fetched_via_data_reduction_proxy_;
95 }
96 void set_was_fetched_via_data_reduction_proxy(
97 bool was_fetched_via_data_reduction_proxy) {
98 was_fetched_via_data_reduction_proxy_ =
99 was_fetched_via_data_reduction_proxy;
100 }
101
93 private: 102 private:
94 std::string npn_negotiated_protocol_; 103 std::string npn_negotiated_protocol_;
95 bool is_ftp_directory_listing_; 104 bool is_ftp_directory_listing_;
96 bool was_fetched_via_proxy_; 105 bool was_fetched_via_proxy_;
97 net::HostPortPair proxy_server_; 106 net::HostPortPair proxy_server_;
98 bool was_fetched_via_spdy_; 107 bool was_fetched_via_spdy_;
99 bool was_npn_negotiated_; 108 bool was_npn_negotiated_;
100 net::HttpResponseInfo::ConnectionInfo connection_info_; 109 net::HttpResponseInfo::ConnectionInfo connection_info_;
101 bool was_alternate_protocol_available_; 110 bool was_alternate_protocol_available_;
102 bool is_using_lofi_; 111 bool is_using_lofi_;
112 bool was_fetched_via_data_reduction_proxy_;
103 113
104 DISALLOW_COPY_AND_ASSIGN(WebURLResponseExtraDataImpl); 114 DISALLOW_COPY_AND_ASSIGN(WebURLResponseExtraDataImpl);
105 }; 115 };
106 116
107 } // namespace content 117 } // namespace content
108 118
109 #endif // CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_ 119 #endif // CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698