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

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

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove log statement and fix ResponseInfo::DeepCopy Created 5 years, 3 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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void set_was_alternate_protocol_available( 80 void set_was_alternate_protocol_available(
81 bool was_alternate_protocol_available) { 81 bool was_alternate_protocol_available) {
82 was_alternate_protocol_available_ = was_alternate_protocol_available; 82 was_alternate_protocol_available_ = was_alternate_protocol_available;
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_lofi() const { return is_lofi_; }
91 void set_is_lofi(bool is_lofi) { is_lofi_ = is_lofi; }
92
90 private: 93 private:
91 std::string npn_negotiated_protocol_; 94 std::string npn_negotiated_protocol_;
92 bool is_ftp_directory_listing_; 95 bool is_ftp_directory_listing_;
93 bool was_fetched_via_proxy_; 96 bool was_fetched_via_proxy_;
94 net::HostPortPair proxy_server_; 97 net::HostPortPair proxy_server_;
95 bool was_fetched_via_spdy_; 98 bool was_fetched_via_spdy_;
96 bool was_npn_negotiated_; 99 bool was_npn_negotiated_;
97 net::HttpResponseInfo::ConnectionInfo connection_info_; 100 net::HttpResponseInfo::ConnectionInfo connection_info_;
98 bool was_alternate_protocol_available_; 101 bool was_alternate_protocol_available_;
102 bool is_lofi_;
99 103
100 DISALLOW_COPY_AND_ASSIGN(WebURLResponseExtraDataImpl); 104 DISALLOW_COPY_AND_ASSIGN(WebURLResponseExtraDataImpl);
101 }; 105 };
102 106
103 } // namespace content 107 } // namespace content
104 108
105 #endif // CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_ 109 #endif // CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698