diff options
Diffstat (limited to 'chrome/renderer/navigation_state.h')
-rw-r--r-- | chrome/renderer/navigation_state.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/renderer/navigation_state.h b/chrome/renderer/navigation_state.h index 90c1270..61f63ac 100644 --- a/chrome/renderer/navigation_state.h +++ b/chrome/renderer/navigation_state.h @@ -190,6 +190,10 @@ class NavigationState : public WebKit::WebDataSource::ExtraData { return cache_policy_override_set_; } + // Indicator if SPDY was used as part of this page load. + void set_was_fetched_via_spdy(bool value) { was_fetched_via_spdy_ = value; } + bool was_fetched_via_spdy() const { return was_fetched_via_spdy_; } + private: NavigationState(PageTransition::Type transition_type, const base::Time& request_time, @@ -204,7 +208,8 @@ class NavigationState : public WebKit::WebDataSource::ExtraData { postpone_loading_data_(false), cache_policy_override_set_(false), cache_policy_override_(WebKit::WebURLRequest::UseProtocolCachePolicy), - user_script_idle_scheduler_(NULL) { + user_script_idle_scheduler_(NULL), + was_fetched_via_spdy_(false) { } PageTransition::Type transition_type_; @@ -232,6 +237,8 @@ class NavigationState : public WebKit::WebDataSource::ExtraData { scoped_ptr<UserScriptIdleScheduler> user_script_idle_scheduler_; + bool was_fetched_via_spdy_; + DISALLOW_COPY_AND_ASSIGN(NavigationState); }; |