| 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 #include "content/public/renderer/document_state.h" | 5 #include "content/public/renderer/document_state.h" |
| 6 | 6 |
| 7 #include "content/public/renderer/navigation_state.h" | 7 #include "content/public/renderer/navigation_state.h" |
| 8 #include "webkit/forms/password_form.h" | 8 #include "webkit/forms/password_form.h" |
| 9 #include "webkit/glue/alt_error_page_resource_fetcher.h" | 9 #include "webkit/glue/alt_error_page_resource_fetcher.h" |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 was_referred_by_prefetcher_(false), | 24 was_referred_by_prefetcher_(false), |
| 25 load_type_(UNDEFINED_LOAD), | 25 load_type_(UNDEFINED_LOAD), |
| 26 cache_policy_override_set_(false), | 26 cache_policy_override_set_(false), |
| 27 cache_policy_override_(WebKit::WebURLRequest::UseProtocolCachePolicy), | 27 cache_policy_override_(WebKit::WebURLRequest::UseProtocolCachePolicy), |
| 28 referrer_policy_set_(false), | 28 referrer_policy_set_(false), |
| 29 referrer_policy_(WebKit::WebReferrerPolicyDefault) { | 29 referrer_policy_(WebKit::WebReferrerPolicyDefault) { |
| 30 } | 30 } |
| 31 | 31 |
| 32 DocumentState::~DocumentState() {} | 32 DocumentState::~DocumentState() {} |
| 33 | 33 |
| 34 void DocumentState::set_password_form_data(webkit::forms::PasswordForm* data) { | 34 void DocumentState::set_password_form_data( |
| 35 password_form_data_.reset(data); | 35 scoped_ptr<webkit::forms::PasswordForm> data) { |
| 36 password_form_data_.reset(data.release()); |
| 36 } | 37 } |
| 37 | 38 |
| 38 void DocumentState::set_alt_error_page_fetcher( | 39 void DocumentState::set_alt_error_page_fetcher( |
| 39 webkit_glue::AltErrorPageResourceFetcher* f) { | 40 webkit_glue::AltErrorPageResourceFetcher* f) { |
| 40 alt_error_page_fetcher_.reset(f); | 41 alt_error_page_fetcher_.reset(f); |
| 41 } | 42 } |
| 42 | 43 |
| 43 void DocumentState::set_navigation_state(NavigationState* navigation_state) { | 44 void DocumentState::set_navigation_state(NavigationState* navigation_state) { |
| 44 navigation_state_.reset(navigation_state); | 45 navigation_state_.reset(navigation_state); |
| 45 } | 46 } |
| 46 | 47 |
| 47 } // namespace content | 48 } // namespace content |
| OLD | NEW |