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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 SSLManager* ssl_manager() { return &ssl_manager_; } | 367 SSLManager* ssl_manager() { return &ssl_manager_; } |
368 | 368 |
369 // Returns true if a reload happens when activated (SetActive(true) is | 369 // Returns true if a reload happens when activated (SetActive(true) is |
370 // invoked). This is true for session/tab restore and cloned tabs. | 370 // invoked). This is true for session/tab restore and cloned tabs. |
371 bool needs_reload() const { return needs_reload_; } | 371 bool needs_reload() const { return needs_reload_; } |
372 | 372 |
373 // Returns the largest restored page ID seen in this navigation controller, | 373 // Returns the largest restored page ID seen in this navigation controller, |
374 // if it was restored from a previous session. (-1 otherwise) | 374 // if it was restored from a previous session. (-1 otherwise) |
375 int max_restored_page_id() const { return max_restored_page_id_; } | 375 int max_restored_page_id() const { return max_restored_page_id_; } |
376 | 376 |
| 377 // The session storage namespace id that all child render views should use. |
| 378 int64 session_storage_namespace_id() const { |
| 379 return session_storage_namespace_id_; |
| 380 } |
| 381 |
377 // Disables checking for a repost and prompting the user. This is used during | 382 // Disables checking for a repost and prompting the user. This is used during |
378 // testing. | 383 // testing. |
379 static void DisablePromptOnRepost(); | 384 static void DisablePromptOnRepost(); |
380 | 385 |
381 // Maximum number of entries before we start removing entries from the front. | 386 // Maximum number of entries before we start removing entries from the front. |
382 static void set_max_entry_count(size_t max_entry_count) { | 387 static void set_max_entry_count(size_t max_entry_count) { |
383 max_entry_count_ = max_entry_count; | 388 max_entry_count_ = max_entry_count; |
384 } | 389 } |
385 static size_t max_entry_count() { return max_entry_count_; } | 390 static size_t max_entry_count() { return max_entry_count_; } |
386 | 391 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 | 526 |
522 // Unique identifier of the window we're in. Used by session restore. | 527 // Unique identifier of the window we're in. Used by session restore. |
523 SessionID window_id_; | 528 SessionID window_id_; |
524 | 529 |
525 // The time ticks at which the last document was loaded. | 530 // The time ticks at which the last document was loaded. |
526 base::TimeTicks last_document_loaded_; | 531 base::TimeTicks last_document_loaded_; |
527 | 532 |
528 // Whether a user gesture has been observed since the last navigation. | 533 // Whether a user gesture has been observed since the last navigation. |
529 bool user_gesture_observed_; | 534 bool user_gesture_observed_; |
530 | 535 |
| 536 // The session storage id that any (indirectly) owned RenderView should use. |
| 537 int64 session_storage_namespace_id_; |
| 538 |
531 // Should Reload check for post data? The default is true, but is set to false | 539 // Should Reload check for post data? The default is true, but is set to false |
532 // when testing. | 540 // when testing. |
533 static bool check_for_repost_; | 541 static bool check_for_repost_; |
534 | 542 |
535 // The maximum number of entries that a navigation controller can store. | 543 // The maximum number of entries that a navigation controller can store. |
536 static size_t max_entry_count_; | 544 static size_t max_entry_count_; |
537 | 545 |
538 DISALLOW_COPY_AND_ASSIGN(NavigationController); | 546 DISALLOW_COPY_AND_ASSIGN(NavigationController); |
539 }; | 547 }; |
540 | 548 |
541 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 549 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
OLD | NEW |