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

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

Issue 2183153002: NQE: Move ECT to net:: namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, also fixed comnpilation error Created 4 years, 4 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"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "net/http/http_response_info.h" 13 #include "net/http/http_response_info.h"
14 #include "net/nqe/network_quality_estimator.h" 14 #include "net/nqe/effective_connection_type.h"
15 #include "third_party/WebKit/public/platform/WebURLResponse.h" 15 #include "third_party/WebKit/public/platform/WebURLResponse.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 class CONTENT_EXPORT WebURLResponseExtraDataImpl : 19 class CONTENT_EXPORT WebURLResponseExtraDataImpl :
20 public NON_EXPORTED_BASE(blink::WebURLResponse::ExtraData) { 20 public NON_EXPORTED_BASE(blink::WebURLResponse::ExtraData) {
21 public: 21 public:
22 explicit WebURLResponseExtraDataImpl( 22 explicit WebURLResponseExtraDataImpl(
23 const std::string& npn_negotiated_protocol); 23 const std::string& npn_negotiated_protocol);
24 ~WebURLResponseExtraDataImpl() override; 24 ~WebURLResponseExtraDataImpl() override;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 84 }
85 85
86 bool is_ftp_directory_listing() const { return is_ftp_directory_listing_; } 86 bool is_ftp_directory_listing() const { return is_ftp_directory_listing_; }
87 void set_is_ftp_directory_listing(bool is_ftp_directory_listing) { 87 void set_is_ftp_directory_listing(bool is_ftp_directory_listing) {
88 is_ftp_directory_listing_ = is_ftp_directory_listing; 88 is_ftp_directory_listing_ = is_ftp_directory_listing;
89 } 89 }
90 90
91 bool is_using_lofi() const { return is_using_lofi_; } 91 bool is_using_lofi() const { return is_using_lofi_; }
92 void set_is_using_lofi(bool is_using_lofi) { is_using_lofi_ = is_using_lofi; } 92 void set_is_using_lofi(bool is_using_lofi) { is_using_lofi_ = is_using_lofi; }
93 93
94 net::NetworkQualityEstimator::EffectiveConnectionType 94 net::EffectiveConnectionType effective_connection_type() const {
95 effective_connection_type() const {
96 return effective_connection_type_; 95 return effective_connection_type_;
97 } 96 }
98 void set_effective_connection_type( 97 void set_effective_connection_type(
99 net::NetworkQualityEstimator::EffectiveConnectionType 98 net::EffectiveConnectionType effective_connection_type) {
100 effective_connection_type) {
101 effective_connection_type_ = effective_connection_type; 99 effective_connection_type_ = effective_connection_type;
102 } 100 }
103 101
104 private: 102 private:
105 std::string npn_negotiated_protocol_; 103 std::string npn_negotiated_protocol_;
106 bool is_ftp_directory_listing_; 104 bool is_ftp_directory_listing_;
107 bool was_fetched_via_proxy_; 105 bool was_fetched_via_proxy_;
108 net::HostPortPair proxy_server_; 106 net::HostPortPair proxy_server_;
109 bool was_fetched_via_spdy_; 107 bool was_fetched_via_spdy_;
110 bool was_npn_negotiated_; 108 bool was_npn_negotiated_;
111 net::HttpResponseInfo::ConnectionInfo connection_info_; 109 net::HttpResponseInfo::ConnectionInfo connection_info_;
112 bool was_alternate_protocol_available_; 110 bool was_alternate_protocol_available_;
113 bool is_using_lofi_; 111 bool is_using_lofi_;
114 net::NetworkQualityEstimator::EffectiveConnectionType 112 net::EffectiveConnectionType effective_connection_type_;
115 effective_connection_type_;
116 113
117 DISALLOW_COPY_AND_ASSIGN(WebURLResponseExtraDataImpl); 114 DISALLOW_COPY_AND_ASSIGN(WebURLResponseExtraDataImpl);
118 }; 115 };
119 116
120 } // namespace content 117 } // namespace content
121 118
122 #endif // CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_ 119 #endif // CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_loader_unittest.cc ('k') | content/child/weburlresponse_extradata_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698