| 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_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 // Disables checking for a repost and prompting the user. This is used during | 393 // Disables checking for a repost and prompting the user. This is used during |
| 394 // testing. | 394 // testing. |
| 395 static void DisablePromptOnRepost(); | 395 static void DisablePromptOnRepost(); |
| 396 | 396 |
| 397 // Maximum number of entries before we start removing entries from the front. | 397 // Maximum number of entries before we start removing entries from the front. |
| 398 static void set_max_entry_count(size_t max_entry_count) { | 398 static void set_max_entry_count(size_t max_entry_count) { |
| 399 max_entry_count_ = max_entry_count; | 399 max_entry_count_ = max_entry_count; |
| 400 } | 400 } |
| 401 static size_t max_entry_count() { return max_entry_count_; } | 401 static size_t max_entry_count() { return max_entry_count_; } |
| 402 | 402 |
| 403 // Cancels a repost that brought up a warning. |
| 404 void CancelPendingReload(); |
| 405 // Continues a repost that brought up a warning. |
| 406 void ContinuePendingReload(); |
| 407 |
| 403 private: | 408 private: |
| 404 class RestoreHelper; | 409 class RestoreHelper; |
| 405 friend class RestoreHelper; | 410 friend class RestoreHelper; |
| 406 friend class TabContents; // For invoking OnReservedPageIDRange. | 411 friend class TabContents; // For invoking OnReservedPageIDRange. |
| 407 | 412 |
| 408 // Classifies the given renderer navigation (see the NavigationType enum). | 413 // Classifies the given renderer navigation (see the NavigationType enum). |
| 409 NavigationType::Type ClassifyNavigation( | 414 NavigationType::Type ClassifyNavigation( |
| 410 const ViewHostMsg_FrameNavigate_Params& params) const; | 415 const ViewHostMsg_FrameNavigate_Params& params) const; |
| 411 | 416 |
| 412 // Causes the controller to load the specified entry. The function assumes | 417 // Causes the controller to load the specified entry. The function assumes |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 // The session storage id that any (indirectly) owned RenderView should use. | 555 // The session storage id that any (indirectly) owned RenderView should use. |
| 551 int64 session_storage_namespace_id_; | 556 int64 session_storage_namespace_id_; |
| 552 | 557 |
| 553 // Should Reload check for post data? The default is true, but is set to false | 558 // Should Reload check for post data? The default is true, but is set to false |
| 554 // when testing. | 559 // when testing. |
| 555 static bool check_for_repost_; | 560 static bool check_for_repost_; |
| 556 | 561 |
| 557 // The maximum number of entries that a navigation controller can store. | 562 // The maximum number of entries that a navigation controller can store. |
| 558 static size_t max_entry_count_; | 563 static size_t max_entry_count_; |
| 559 | 564 |
| 565 // If a repost is pending, its type (RELOAD or RELOAD_IGNORING_CACHE), |
| 566 // NO_RELOAD otherwise. |
| 567 ReloadType pending_reload_; |
| 568 |
| 560 DISALLOW_COPY_AND_ASSIGN(NavigationController); | 569 DISALLOW_COPY_AND_ASSIGN(NavigationController); |
| 561 }; | 570 }; |
| 562 | 571 |
| 563 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 572 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
| OLD | NEW |