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

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

Issue 8082019: more content exports needed for unit_tests and browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert export of browser_accessibility_win for now Created 9 years, 2 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) 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // The session storage namespace that all child render views should use. 304 // The session storage namespace that all child render views should use.
305 SessionStorageNamespace* session_storage_namespace() const { 305 SessionStorageNamespace* session_storage_namespace() const {
306 return session_storage_namespace_; 306 return session_storage_namespace_;
307 } 307 }
308 308
309 // Disables checking for a repost and prompting the user. This is used during 309 // Disables checking for a repost and prompting the user. This is used during
310 // testing. 310 // testing.
311 static void DisablePromptOnRepost(); 311 static void DisablePromptOnRepost();
312 312
313 // Maximum number of entries before we start removing entries from the front. 313 // Maximum number of entries before we start removing entries from the front.
314 #ifdef UNIT_TEST 314 static void set_max_entry_count_for_testing(size_t max_entry_count) {
315 static void set_max_entry_count(size_t max_entry_count) {
316 max_entry_count_ = max_entry_count; 315 max_entry_count_ = max_entry_count;
317 } 316 }
318 #endif
319 static size_t max_entry_count() { return max_entry_count_; } 317 static size_t max_entry_count() { return max_entry_count_; }
320 318
321 // Cancels a repost that brought up a warning. 319 // Cancels a repost that brought up a warning.
322 void CancelPendingReload(); 320 void CancelPendingReload();
323 // Continues a repost that brought up a warning. 321 // Continues a repost that brought up a warning.
324 void ContinuePendingReload(); 322 void ContinuePendingReload();
325 323
326 // Returns true if we are navigating to the URL the tab is opened with. 324 // Returns true if we are navigating to the URL the tab is opened with.
327 bool IsInitialNavigation(); 325 bool IsInitialNavigation();
328 326
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 static size_t max_entry_count_; 479 static size_t max_entry_count_;
482 480
483 // If a repost is pending, its type (RELOAD or RELOAD_IGNORING_CACHE), 481 // If a repost is pending, its type (RELOAD or RELOAD_IGNORING_CACHE),
484 // NO_RELOAD otherwise. 482 // NO_RELOAD otherwise.
485 ReloadType pending_reload_; 483 ReloadType pending_reload_;
486 484
487 DISALLOW_COPY_AND_ASSIGN(NavigationController); 485 DISALLOW_COPY_AND_ASSIGN(NavigationController);
488 }; 486 };
489 487
490 #endif // CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ 488 #endif // CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698