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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 security_info_ = security_info; | 185 security_info_ = security_info; |
186 } | 186 } |
187 | 187 |
188 // True if an error page should be used, if the http status code also | 188 // True if an error page should be used, if the http status code also |
189 // indicates an error. | 189 // indicates an error. |
190 bool use_error_page() const { return use_error_page_; } | 190 bool use_error_page() const { return use_error_page_; } |
191 void set_use_error_page(bool use_error_page) { | 191 void set_use_error_page(bool use_error_page) { |
192 use_error_page_ = use_error_page; | 192 use_error_page_ = use_error_page; |
193 } | 193 } |
194 | 194 |
| 195 // True if the user agent was overridden for this page. |
| 196 bool is_overriding_user_agent() const { return is_overriding_user_agent_; } |
| 197 void set_is_overriding_user_agent(bool state) { |
| 198 is_overriding_user_agent_ = state; |
| 199 } |
| 200 |
195 void set_was_prefetcher(bool value) { was_prefetcher_ = value; } | 201 void set_was_prefetcher(bool value) { was_prefetcher_ = value; } |
196 bool was_prefetcher() const { return was_prefetcher_; } | 202 bool was_prefetcher() const { return was_prefetcher_; } |
197 | 203 |
198 void set_was_referred_by_prefetcher(bool value) { | 204 void set_was_referred_by_prefetcher(bool value) { |
199 was_referred_by_prefetcher_ = value; | 205 was_referred_by_prefetcher_ = value; |
200 } | 206 } |
201 bool was_referred_by_prefetcher() const { | 207 bool was_referred_by_prefetcher() const { |
202 return was_referred_by_prefetcher_; | 208 return was_referred_by_prefetcher_; |
203 } | 209 } |
204 | 210 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 bool was_alternate_protocol_available_; | 272 bool was_alternate_protocol_available_; |
267 bool was_fetched_via_proxy_; | 273 bool was_fetched_via_proxy_; |
268 | 274 |
269 GURL searchable_form_url_; | 275 GURL searchable_form_url_; |
270 std::string searchable_form_encoding_; | 276 std::string searchable_form_encoding_; |
271 scoped_ptr<webkit::forms::PasswordForm> password_form_data_; | 277 scoped_ptr<webkit::forms::PasswordForm> password_form_data_; |
272 std::string security_info_; | 278 std::string security_info_; |
273 | 279 |
274 bool use_error_page_; | 280 bool use_error_page_; |
275 | 281 |
| 282 bool is_overriding_user_agent_; |
| 283 |
276 // A prefetcher is a page that contains link rel=prefetch elements. | 284 // A prefetcher is a page that contains link rel=prefetch elements. |
277 bool was_prefetcher_; | 285 bool was_prefetcher_; |
278 bool was_referred_by_prefetcher_; | 286 bool was_referred_by_prefetcher_; |
279 | 287 |
280 LoadType load_type_; | 288 LoadType load_type_; |
281 | 289 |
282 bool cache_policy_override_set_; | 290 bool cache_policy_override_set_; |
283 WebKit::WebURLRequest::CachePolicy cache_policy_override_; | 291 WebKit::WebURLRequest::CachePolicy cache_policy_override_; |
284 | 292 |
285 bool referrer_policy_set_; | 293 bool referrer_policy_set_; |
286 WebKit::WebReferrerPolicy referrer_policy_; | 294 WebKit::WebReferrerPolicy referrer_policy_; |
287 | 295 |
288 scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_; | 296 scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_; |
289 | 297 |
290 scoped_ptr<NavigationState> navigation_state_; | 298 scoped_ptr<NavigationState> navigation_state_; |
291 }; | 299 }; |
292 | 300 |
293 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ | 301 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ |
294 | 302 |
295 } // namespace content | 303 } // namespace content |
OLD | NEW |