Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(909)

Side by Side Diff: chrome/browser/tab_contents/navigation_controller.h

Issue 545054: Introduce all the plumbing for Session Storage. This mostly consists of crea... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/interstitial_page.cc ('k') | chrome/browser/tab_contents/navigation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698