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

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

Issue 1090002: Send session history offset and length parameters in the Navigate message to... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 // The session storage namespace id that all child render views should use. 388 // The session storage namespace id that all child render views should use.
389 int64 session_storage_namespace_id() const { 389 int64 session_storage_namespace_id() const {
390 return session_storage_namespace_id_; 390 return session_storage_namespace_id_;
391 } 391 }
392 392
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 #ifdef UNIT_TEST
398 static void set_max_entry_count(size_t max_entry_count) { 399 static void set_max_entry_count(size_t max_entry_count) {
399 max_entry_count_ = max_entry_count; 400 max_entry_count_ = max_entry_count;
400 } 401 }
402 #endif
401 static size_t max_entry_count() { return max_entry_count_; } 403 static size_t max_entry_count() { return max_entry_count_; }
402 404
403 private: 405 private:
404 class RestoreHelper; 406 class RestoreHelper;
405 friend class RestoreHelper; 407 friend class RestoreHelper;
406 friend class TabContents; // For invoking OnReservedPageIDRange. 408 friend class TabContents; // For invoking OnReservedPageIDRange.
407 409
408 // Classifies the given renderer navigation (see the NavigationType enum). 410 // Classifies the given renderer navigation (see the NavigationType enum).
409 NavigationType::Type ClassifyNavigation( 411 NavigationType::Type ClassifyNavigation(
410 const ViewHostMsg_FrameNavigate_Params& params) const; 412 const ViewHostMsg_FrameNavigate_Params& params) const;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 // when testing. 556 // when testing.
555 static bool check_for_repost_; 557 static bool check_for_repost_;
556 558
557 // The maximum number of entries that a navigation controller can store. 559 // The maximum number of entries that a navigation controller can store.
558 static size_t max_entry_count_; 560 static size_t max_entry_count_;
559 561
560 DISALLOW_COPY_AND_ASSIGN(NavigationController); 562 DISALLOW_COPY_AND_ASSIGN(NavigationController);
561 }; 563 };
562 564
563 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ 565 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698