OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_RENDERER_NAVIGATION_STATE_H_ | 5 #ifndef CHROME_RENDERER_NAVIGATION_STATE_H_ |
6 #define CHROME_RENDERER_NAVIGATION_STATE_H_ | 6 #define CHROME_RENDERER_NAVIGATION_STATE_H_ |
7 | 7 |
8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "chrome/common/page_transition_types.h" | 10 #include "chrome/common/page_transition_types.h" |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 return cache_policy_override_set_; | 216 return cache_policy_override_set_; |
217 } | 217 } |
218 | 218 |
219 // Indicator if SPDY was used as part of this page load. | 219 // Indicator if SPDY was used as part of this page load. |
220 void set_was_fetched_via_spdy(bool value) { was_fetched_via_spdy_ = value; } | 220 void set_was_fetched_via_spdy(bool value) { was_fetched_via_spdy_ = value; } |
221 bool was_fetched_via_spdy() const { return was_fetched_via_spdy_; } | 221 bool was_fetched_via_spdy() const { return was_fetched_via_spdy_; } |
222 | 222 |
223 void set_was_npn_negotiated(bool value) { was_npn_negotiated_ = value; } | 223 void set_was_npn_negotiated(bool value) { was_npn_negotiated_ = value; } |
224 bool was_npn_negotiated() const { return was_npn_negotiated_; } | 224 bool was_npn_negotiated() const { return was_npn_negotiated_; } |
225 | 225 |
| 226 void set_was_alternate_protocol_available(bool value) { |
| 227 was_alternate_protocol_available_ = value; |
| 228 } |
| 229 bool was_alternate_protocol_available() const { |
| 230 return was_alternate_protocol_available_; |
| 231 } |
| 232 |
226 void set_was_fetched_via_proxy(bool value) { | 233 void set_was_fetched_via_proxy(bool value) { |
227 was_fetched_via_proxy_ = value; | 234 was_fetched_via_proxy_ = value; |
228 } | 235 } |
229 bool was_fetched_via_proxy() const { return was_fetched_via_proxy_; } | 236 bool was_fetched_via_proxy() const { return was_fetched_via_proxy_; } |
230 | 237 |
231 // Whether the frame text contents was translated to a different language. | 238 // Whether the frame text contents was translated to a different language. |
232 void set_was_translated(bool value) { was_translated_ = value; } | 239 void set_was_translated(bool value) { was_translated_ = value; } |
233 bool was_translated() const { return was_translated_; } | 240 bool was_translated() const { return was_translated_; } |
234 | 241 |
235 private: | 242 private: |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 287 |
281 bool cache_policy_override_set_; | 288 bool cache_policy_override_set_; |
282 WebKit::WebURLRequest::CachePolicy cache_policy_override_; | 289 WebKit::WebURLRequest::CachePolicy cache_policy_override_; |
283 | 290 |
284 scoped_ptr<UserScriptIdleScheduler> user_script_idle_scheduler_; | 291 scoped_ptr<UserScriptIdleScheduler> user_script_idle_scheduler_; |
285 | 292 |
286 bool was_fetched_via_spdy_; | 293 bool was_fetched_via_spdy_; |
287 bool was_npn_negotiated_; | 294 bool was_npn_negotiated_; |
288 bool was_fetched_via_proxy_; | 295 bool was_fetched_via_proxy_; |
289 bool was_translated_; | 296 bool was_translated_; |
| 297 bool was_alternate_protocol_available_; |
290 | 298 |
291 DISALLOW_COPY_AND_ASSIGN(NavigationState); | 299 DISALLOW_COPY_AND_ASSIGN(NavigationState); |
292 }; | 300 }; |
293 | 301 |
294 #endif // CHROME_RENDERER_NAVIGATION_STATE_H_ | 302 #endif // CHROME_RENDERER_NAVIGATION_STATE_H_ |
OLD | NEW |