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

Unified Diff: chrome/renderer/navigation_state.h

Issue 6247013: Don't load plugins on prerendered pages until the pages are displayed.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/navigation_state.h
===================================================================
--- chrome/renderer/navigation_state.h (revision 71683)
+++ chrome/renderer/navigation_state.h (working copy)
@@ -32,6 +32,8 @@
RELOAD, // User pressed reload.
HISTORY_LOAD, // Back or forward.
NORMAL_LOAD, // User entered URL, or omnibox search.
+ PRERENDER_LOAD, // Navigation started as the speculatively
+ // prendering of a linked page.
LINK_LOAD, // (deprecated) Included next 4 categories.
LINK_LOAD_NORMAL, // Commonly following of link.
LINK_LOAD_RELOAD, // JS/link directed reload.
@@ -210,6 +212,11 @@
postponed_data_.append(data, data_len);
}
+ bool is_prerendering() const { return is_prerendering_; }
+ void set_is_prerendering(bool is_prerendering) {
+ is_prerendering_ = is_prerendering;
+ }
+
int http_status_code() const { return http_status_code_; }
void set_http_status_code(int http_status_code) {
http_status_code_ = http_status_code;
@@ -301,6 +308,10 @@
bool postpone_loading_data_;
std::string postponed_data_;
+ // True if page is being prerendered. False once prerendered page is
+ // displayed.
+ bool is_prerendering_;
+
bool cache_policy_override_set_;
WebKit::WebURLRequest::CachePolicy cache_policy_override_;

Powered by Google App Engine
This is Rietveld 408576698