OLD | NEW |
---|---|
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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
154 void set_connection_info( | 154 void set_connection_info( |
155 net::HttpResponseInfo::ConnectionInfo connection_info) { | 155 net::HttpResponseInfo::ConnectionInfo connection_info) { |
156 connection_info_ = connection_info; | 156 connection_info_ = connection_info; |
157 } | 157 } |
158 | 158 |
159 bool was_fetched_via_proxy() const { return was_fetched_via_proxy_; } | 159 bool was_fetched_via_proxy() const { return was_fetched_via_proxy_; } |
160 void set_was_fetched_via_proxy(bool value) { | 160 void set_was_fetched_via_proxy(bool value) { |
161 was_fetched_via_proxy_ = value; | 161 was_fetched_via_proxy_ = value; |
162 } | 162 } |
163 | 163 |
164 net::HostPortPair proxy_server() const { return proxy_server_; } | 164 const net::HostPortPair& proxy_server() const { return proxy_server_; } |
165 void set_proxy_server(net::HostPortPair proxy_server) { | 165 void set_proxy_server(const net::HostPortPair& proxy_server) { |
Charlie Reis
2015/02/27 23:35:31
I don't think you want to make this change on the
jeremyim
2015/02/27 23:37:42
Wouldn't we call the copy constructor, since it's
Charlie Reis
2015/02/27 23:58:39
Most classes in Chrome have DISALLOW_COPY_AND_ASSI
| |
166 proxy_server_ = proxy_server; | 166 proxy_server_ = proxy_server; |
167 } | 167 } |
168 | 168 |
169 void set_was_prefetcher(bool value) { was_prefetcher_ = value; } | 169 void set_was_prefetcher(bool value) { was_prefetcher_ = value; } |
170 bool was_prefetcher() const { return was_prefetcher_; } | 170 bool was_prefetcher() const { return was_prefetcher_; } |
171 | 171 |
172 void set_was_referred_by_prefetcher(bool value) { | 172 void set_was_referred_by_prefetcher(bool value) { |
173 was_referred_by_prefetcher_ = value; | 173 was_referred_by_prefetcher_ = value; |
174 } | 174 } |
175 bool was_referred_by_prefetcher() const { | 175 bool was_referred_by_prefetcher() const { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
219 LoadType load_type_; | 219 LoadType load_type_; |
220 | 220 |
221 scoped_ptr<NavigationState> navigation_state_; | 221 scoped_ptr<NavigationState> navigation_state_; |
222 | 222 |
223 bool can_load_local_resources_; | 223 bool can_load_local_resources_; |
224 }; | 224 }; |
225 | 225 |
226 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ | 226 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ |
227 | 227 |
228 } // namespace content | 228 } // namespace content |
OLD | NEW |