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

Side by Side Diff: content/browser/frame_host/navigation_controller_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const SessionStorageNamespaceMap& GetSessionStorageNamespaceMap() 72 const SessionStorageNamespaceMap& GetSessionStorageNamespaceMap()
73 const override; 73 const override;
74 SessionStorageNamespace* GetDefaultSessionStorageNamespace() override; 74 SessionStorageNamespace* GetDefaultSessionStorageNamespace() override;
75 void SetMaxRestoredPageID(int32 max_id) override; 75 void SetMaxRestoredPageID(int32 max_id) override;
76 int32 GetMaxRestoredPageID() const override; 76 int32 GetMaxRestoredPageID() const override;
77 bool NeedsReload() const override; 77 bool NeedsReload() const override;
78 void SetNeedsReload() override; 78 void SetNeedsReload() override;
79 void CancelPendingReload() override; 79 void CancelPendingReload() override;
80 void ContinuePendingReload() override; 80 void ContinuePendingReload() override;
81 bool IsInitialNavigation() const override; 81 bool IsInitialNavigation() const override;
82 bool IsInitialBlankNavigation() const override;
82 void Reload(bool check_for_repost) override; 83 void Reload(bool check_for_repost) override;
83 void ReloadIgnoringCache(bool check_for_repost) override; 84 void ReloadIgnoringCache(bool check_for_repost) override;
84 void ReloadOriginalRequestURL(bool check_for_repost) override; 85 void ReloadOriginalRequestURL(bool check_for_repost) override;
85 void NotifyEntryChanged(const NavigationEntry* entry) override; 86 void NotifyEntryChanged(const NavigationEntry* entry) override;
86 void CopyStateFrom(const NavigationController& source) override; 87 void CopyStateFrom(const NavigationController& source) override;
87 void CopyStateFromAndPrune(NavigationController* source, 88 void CopyStateFromAndPrune(NavigationController* source,
88 bool replace_entry) override; 89 bool replace_entry) override;
89 bool CanPruneAllButLastCommitted() override; 90 bool CanPruneAllButLastCommitted() override;
90 void PruneAllButLastCommitted() override; 91 void PruneAllButLastCommitted() override;
91 void ClearAllScreenshots() override; 92 void ClearAllScreenshots() override;
92 93
94 // This initializes the NavigationController with a NavigationEntry for the
95 // initial about:blank page, in the given SiteInstance.
96 void Init(SiteInstance* instance);
97
93 // Whether this is the initial navigation in an unmodified new tab. In this 98 // Whether this is the initial navigation in an unmodified new tab. In this
94 // case, we know there is no content displayed in the page. 99 // case, we know there is no content displayed in the page.
95 bool IsUnmodifiedBlankTab() const; 100 bool IsUnmodifiedBlankTab() const;
96 101
97 // The session storage namespace that all child RenderViews belonging to 102 // The session storage namespace that all child RenderViews belonging to
98 // |instance| should use. 103 // |instance| should use.
99 SessionStorageNamespace* GetSessionStorageNamespace( 104 SessionStorageNamespace* GetSessionStorageNamespace(
100 SiteInstance* instance); 105 SiteInstance* instance);
101 106
102 // Returns the index of the specified entry, or -1 if entry is not contained 107 // Returns the index of the specified entry, or -1 if entry is not contained
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 TimeSmoother time_smoother_; 443 TimeSmoother time_smoother_;
439 444
440 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_; 445 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_;
441 446
442 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); 447 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl);
443 }; 448 };
444 449
445 } // namespace content 450 } // namespace content
446 451
447 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ 452 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/child_process_launcher_browsertest.cc ('k') | content/browser/frame_host/navigation_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698