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

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

Issue 1309323004: Create a NavigationEntry for the initial blank page. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GetEntryCount, more tests Created 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 403
404 // Request a reload to happen when activated. This can be used when a renderer 404 // Request a reload to happen when activated. This can be used when a renderer
405 // backing a background tab is killed by the system on Android or ChromeOS. 405 // backing a background tab is killed by the system on Android or ChromeOS.
406 virtual void SetNeedsReload() = 0; 406 virtual void SetNeedsReload() = 0;
407 407
408 // Cancels a repost that brought up a warning. 408 // Cancels a repost that brought up a warning.
409 virtual void CancelPendingReload() = 0; 409 virtual void CancelPendingReload() = 0;
410 // Continues a repost that brought up a warning. 410 // Continues a repost that brought up a warning.
411 virtual void ContinuePendingReload() = 0; 411 virtual void ContinuePendingReload() = 0;
412 412
413 // Returns true if we are navigating to the URL the tab is opened with. 413 // Returns true if this is a newly created tab or a cloned tab, which has not
414 // Returns false after the initial navigation has committed. 414 // yet committed a real page. Returns false after the initial navigation has
415 // committed.
415 virtual bool IsInitialNavigation() const = 0; 416 virtual bool IsInitialNavigation() const = 0;
416 417
418 // Returns true if this is a newly created tab (not a clone) that has not yet
419 // committed a real page.
420 virtual bool IsInitialBlankNavigation() const = 0;
421
417 // Broadcasts the NOTIFICATION_NAV_ENTRY_CHANGED notification for the given 422 // Broadcasts the NOTIFICATION_NAV_ENTRY_CHANGED notification for the given
418 // entry. This will keep things in sync like the saved session. 423 // entry. This will keep things in sync like the saved session.
419 virtual void NotifyEntryChanged(const NavigationEntry* entry) = 0; 424 virtual void NotifyEntryChanged(const NavigationEntry* entry) = 0;
420 425
421 // Copies the navigation state from the given controller to this one. This 426 // Copies the navigation state from the given controller to this one. This
422 // one should be empty (just created). 427 // one should be empty (just created).
423 virtual void CopyStateFrom(const NavigationController& source) = 0; 428 virtual void CopyStateFrom(const NavigationController& source) = 0;
424 429
425 // A variant of CopyStateFrom. Removes all entries from this except the last 430 // A variant of CopyStateFrom. Removes all entries from this except the last
426 // committed entry, and inserts all entries from |source| before and including 431 // committed entry, and inserts all entries from |source| before and including
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 472
468 private: 473 private:
469 // This interface should only be implemented inside content. 474 // This interface should only be implemented inside content.
470 friend class NavigationControllerImpl; 475 friend class NavigationControllerImpl;
471 NavigationController() {} 476 NavigationController() {}
472 }; 477 };
473 478
474 } // namespace content 479 } // namespace content
475 480
476 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 481 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | content/public/browser/navigation_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698