OLD | NEW |
---|---|
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 void set_was_alternate_protocol_available( | 61 void set_was_alternate_protocol_available( |
62 bool was_alternate_protocol_available) { | 62 bool was_alternate_protocol_available) { |
63 was_alternate_protocol_available_ = was_alternate_protocol_available; | 63 was_alternate_protocol_available_ = was_alternate_protocol_available; |
64 } | 64 } |
65 | 65 |
66 bool is_ftp_directory_listing() const { return is_ftp_directory_listing_; } | 66 bool is_ftp_directory_listing() const { return is_ftp_directory_listing_; } |
67 void set_is_ftp_directory_listing(bool is_ftp_directory_listing) { | 67 void set_is_ftp_directory_listing(bool is_ftp_directory_listing) { |
68 is_ftp_directory_listing_ = is_ftp_directory_listing; | 68 is_ftp_directory_listing_ = is_ftp_directory_listing; |
69 } | 69 } |
70 | 70 |
71 bool is_using_lofi() const { return is_using_lofi_; } | 71 int previews_state() const { return previews_state_; } |
nasko
2016/12/08 22:19:33
PreviewsState
megjablon
2016/12/09 20:35:54
Done.
| |
72 void set_is_using_lofi(bool is_using_lofi) { is_using_lofi_ = is_using_lofi; } | 72 void set_previews_state(int previews_state) { |
nasko
2016/12/08 22:19:33
PreviewsState
megjablon
2016/12/09 20:35:54
Done.
| |
73 previews_state_ = previews_state; | |
74 } | |
73 | 75 |
74 net::EffectiveConnectionType effective_connection_type() const { | 76 net::EffectiveConnectionType effective_connection_type() const { |
75 return effective_connection_type_; | 77 return effective_connection_type_; |
76 } | 78 } |
77 void set_effective_connection_type( | 79 void set_effective_connection_type( |
78 net::EffectiveConnectionType effective_connection_type) { | 80 net::EffectiveConnectionType effective_connection_type) { |
79 effective_connection_type_ = effective_connection_type; | 81 effective_connection_type_ = effective_connection_type; |
80 } | 82 } |
81 | 83 |
82 private: | 84 private: |
83 std::string alpn_negotiated_protocol_; | 85 std::string alpn_negotiated_protocol_; |
84 bool is_ftp_directory_listing_; | 86 bool is_ftp_directory_listing_; |
85 bool was_fetched_via_spdy_; | 87 bool was_fetched_via_spdy_; |
86 bool was_alpn_negotiated_; | 88 bool was_alpn_negotiated_; |
87 net::HttpResponseInfo::ConnectionInfo connection_info_; | 89 net::HttpResponseInfo::ConnectionInfo connection_info_; |
88 bool was_alternate_protocol_available_; | 90 bool was_alternate_protocol_available_; |
89 bool is_using_lofi_; | 91 int previews_state_; |
nasko
2016/12/08 22:19:33
PreviewsState
megjablon
2016/12/09 20:35:54
Done.
| |
90 net::EffectiveConnectionType effective_connection_type_; | 92 net::EffectiveConnectionType effective_connection_type_; |
91 | 93 |
92 DISALLOW_COPY_AND_ASSIGN(WebURLResponseExtraDataImpl); | 94 DISALLOW_COPY_AND_ASSIGN(WebURLResponseExtraDataImpl); |
93 }; | 95 }; |
94 | 96 |
95 } // namespace content | 97 } // namespace content |
96 | 98 |
97 #endif // CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_ | 99 #endif // CONTENT_CHILD_WEBURLRESPONSE_EXTRADATA_IMPL_H_ |
OLD | NEW |