Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: chrome/renderer/navigation_state.cc

Issue 6532031: Fix for swapping in prerendered RenderViews with provisional data sources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove some unneeded code Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/renderer/navigation_state.h" 5 #include "chrome/renderer/navigation_state.h"
6 6
7 #include "chrome/renderer/user_script_idle_scheduler.h" 7 #include "chrome/renderer/user_script_idle_scheduler.h"
8 #include "webkit/glue/alt_error_page_resource_fetcher.h" 8 #include "webkit/glue/alt_error_page_resource_fetcher.h"
9 #include "webkit/glue/password_form.h" 9 #include "webkit/glue/password_form.h"
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 void NavigationState::set_password_form_data(webkit_glue::PasswordForm* data) { 33 void NavigationState::set_password_form_data(webkit_glue::PasswordForm* data) {
34 password_form_data_.reset(data); 34 password_form_data_.reset(data);
35 } 35 }
36 36
37 void NavigationState::set_alt_error_page_fetcher( 37 void NavigationState::set_alt_error_page_fetcher(
38 webkit_glue::AltErrorPageResourceFetcher* f) { 38 webkit_glue::AltErrorPageResourceFetcher* f) {
39 alt_error_page_fetcher_.reset(f); 39 alt_error_page_fetcher_.reset(f);
40 } 40 }
41 41
42 bool NavigationState::is_prerendering() const {
43 return is_prerendering_;
44 }
45
46 void NavigationState::set_is_prerendering(bool is_prerendering) {
47 is_prerendering_ = is_prerendering;
48 }
49
50 bool NavigationState::was_started_as_prerender() const { 42 bool NavigationState::was_started_as_prerender() const {
51 return was_started_as_prerender_; 43 return was_started_as_prerender_;
52 } 44 }
53 45
54 void NavigationState::set_was_started_as_prerender( 46 void NavigationState::set_was_started_as_prerender(
55 bool was_started_as_prerender) { 47 bool was_started_as_prerender) {
56 DCHECK(!was_started_as_prerender_); 48 DCHECK(!was_started_as_prerender_);
57 was_started_as_prerender_ = was_started_as_prerender; 49 was_started_as_prerender_ = was_started_as_prerender;
58 } 50 }
59 51
60 NavigationState::NavigationState(PageTransition::Type transition_type, 52 NavigationState::NavigationState(PageTransition::Type transition_type,
61 const base::Time& request_time, 53 const base::Time& request_time,
62 bool is_content_initiated, 54 bool is_content_initiated,
63 int32 pending_page_id, 55 int32 pending_page_id,
64 int pending_history_list_offset) 56 int pending_history_list_offset)
65 : transition_type_(transition_type), 57 : transition_type_(transition_type),
66 load_type_(UNDEFINED_LOAD), 58 load_type_(UNDEFINED_LOAD),
67 request_time_(request_time), 59 request_time_(request_time),
68 load_histograms_recorded_(false), 60 load_histograms_recorded_(false),
69 web_timing_histograms_recorded_(false), 61 web_timing_histograms_recorded_(false),
70 request_committed_(false), 62 request_committed_(false),
71 is_content_initiated_(is_content_initiated), 63 is_content_initiated_(is_content_initiated),
72 pending_page_id_(pending_page_id), 64 pending_page_id_(pending_page_id),
73 pending_history_list_offset_(pending_history_list_offset), 65 pending_history_list_offset_(pending_history_list_offset),
74 postpone_loading_data_(false), 66 postpone_loading_data_(false),
75 is_prerendering_(false),
76 was_started_as_prerender_(false), 67 was_started_as_prerender_(false),
77 cache_policy_override_set_(false), 68 cache_policy_override_set_(false),
78 cache_policy_override_(WebKit::WebURLRequest::UseProtocolCachePolicy), 69 cache_policy_override_(WebKit::WebURLRequest::UseProtocolCachePolicy),
79 user_script_idle_scheduler_(NULL), 70 user_script_idle_scheduler_(NULL),
80 http_status_code_(0), 71 http_status_code_(0),
81 was_fetched_via_spdy_(false), 72 was_fetched_via_spdy_(false),
82 was_npn_negotiated_(false), 73 was_npn_negotiated_(false),
83 was_alternate_protocol_available_(false), 74 was_alternate_protocol_available_(false),
84 was_fetched_via_proxy_(false), 75 was_fetched_via_proxy_(false),
85 was_translated_(false), 76 was_translated_(false),
86 was_within_same_page_(false), 77 was_within_same_page_(false),
87 was_prefetcher_(false), 78 was_prefetcher_(false),
88 was_referred_by_prefetcher_(false) { 79 was_referred_by_prefetcher_(false) {
89 } 80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698