| 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 net::HostPortPair& proxy_server() { return proxy_server_; } |
| 165 void set_proxy_server(net::HostPortPair proxy_server) { | 165 void set_proxy_server(net::HostPortPair proxy_server) { |
| 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 } |
| (...skipping 44 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 |