| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 SessionStorageNamespace* session_storage_namespace() const { | 329 SessionStorageNamespace* session_storage_namespace() const { |
| 330 return session_storage_namespace_; | 330 return session_storage_namespace_; |
| 331 } | 331 } |
| 332 | 332 |
| 333 // Disables checking for a repost and prompting the user. This is used during | 333 // Disables checking for a repost and prompting the user. This is used during |
| 334 // testing. | 334 // testing. |
| 335 static void DisablePromptOnRepost(); | 335 static void DisablePromptOnRepost(); |
| 336 | 336 |
| 337 // Maximum number of entries before we start removing entries from the front. | 337 // Maximum number of entries before we start removing entries from the front. |
| 338 static void set_max_entry_count_for_testing(size_t max_entry_count) { | 338 static void set_max_entry_count_for_testing(size_t max_entry_count) { |
| 339 max_entry_count_ = max_entry_count; | 339 max_entry_count_for_testing_ = max_entry_count; |
| 340 } | 340 } |
| 341 static size_t max_entry_count() { return max_entry_count_; } | 341 static size_t max_entry_count(); |
| 342 | 342 |
| 343 // Cancels a repost that brought up a warning. | 343 // Cancels a repost that brought up a warning. |
| 344 void CancelPendingReload(); | 344 void CancelPendingReload(); |
| 345 // Continues a repost that brought up a warning. | 345 // Continues a repost that brought up a warning. |
| 346 void ContinuePendingReload(); | 346 void ContinuePendingReload(); |
| 347 | 347 |
| 348 // Returns true if we are navigating to the URL the tab is opened with. | 348 // Returns true if we are navigating to the URL the tab is opened with. |
| 349 bool IsInitialNavigation(); | 349 bool IsInitialNavigation(); |
| 350 | 350 |
| 351 // Creates navigation entry and translates the virtual url to a real one. | 351 // Creates navigation entry and translates the virtual url to a real one. |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 base::TimeTicks last_document_loaded_; | 494 base::TimeTicks last_document_loaded_; |
| 495 | 495 |
| 496 // The session storage id that any (indirectly) owned RenderView should use. | 496 // The session storage id that any (indirectly) owned RenderView should use. |
| 497 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; | 497 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
| 498 | 498 |
| 499 // Should Reload check for post data? The default is true, but is set to false | 499 // Should Reload check for post data? The default is true, but is set to false |
| 500 // when testing. | 500 // when testing. |
| 501 static bool check_for_repost_; | 501 static bool check_for_repost_; |
| 502 | 502 |
| 503 // The maximum number of entries that a navigation controller can store. | 503 // The maximum number of entries that a navigation controller can store. |
| 504 static size_t max_entry_count_; | 504 static size_t max_entry_count_for_testing_; |
| 505 | 505 |
| 506 // If a repost is pending, its type (RELOAD or RELOAD_IGNORING_CACHE), | 506 // If a repost is pending, its type (RELOAD or RELOAD_IGNORING_CACHE), |
| 507 // NO_RELOAD otherwise. | 507 // NO_RELOAD otherwise. |
| 508 ReloadType pending_reload_; | 508 ReloadType pending_reload_; |
| 509 | 509 |
| 510 DISALLOW_COPY_AND_ASSIGN(NavigationController); | 510 DISALLOW_COPY_AND_ASSIGN(NavigationController); |
| 511 }; | 511 }; |
| 512 | 512 |
| 513 #endif // CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 513 #endif // CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
| OLD | NEW |