OLD | NEW |
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 13 matching lines...) Expand all Loading... |
24 class NavigationEntryScreenshotManager; | 24 class NavigationEntryScreenshotManager; |
25 class SiteInstance; | 25 class SiteInstance; |
26 struct LoadCommittedDetails; | 26 struct LoadCommittedDetails; |
27 | 27 |
28 class CONTENT_EXPORT NavigationControllerImpl | 28 class CONTENT_EXPORT NavigationControllerImpl |
29 : public NON_EXPORTED_BASE(NavigationController) { | 29 : public NON_EXPORTED_BASE(NavigationController) { |
30 public: | 30 public: |
31 NavigationControllerImpl( | 31 NavigationControllerImpl( |
32 NavigationControllerDelegate* delegate, | 32 NavigationControllerDelegate* delegate, |
33 BrowserContext* browser_context); | 33 BrowserContext* browser_context); |
34 virtual ~NavigationControllerImpl(); | 34 ~NavigationControllerImpl() override; |
35 | 35 |
36 // NavigationController implementation: | 36 // NavigationController implementation: |
37 virtual WebContents* GetWebContents() const override; | 37 WebContents* GetWebContents() const override; |
38 virtual BrowserContext* GetBrowserContext() const override; | 38 BrowserContext* GetBrowserContext() const override; |
39 virtual void SetBrowserContext( | 39 void SetBrowserContext(BrowserContext* browser_context) override; |
40 BrowserContext* browser_context) override; | 40 void Restore(int selected_navigation, |
41 virtual void Restore( | 41 RestoreType type, |
42 int selected_navigation, | 42 std::vector<NavigationEntry*>* entries) override; |
43 RestoreType type, | 43 NavigationEntry* GetActiveEntry() const override; |
44 std::vector<NavigationEntry*>* entries) override; | 44 NavigationEntry* GetVisibleEntry() const override; |
45 virtual NavigationEntry* GetActiveEntry() const override; | 45 int GetCurrentEntryIndex() const override; |
46 virtual NavigationEntry* GetVisibleEntry() const override; | 46 NavigationEntry* GetLastCommittedEntry() const override; |
47 virtual int GetCurrentEntryIndex() const override; | 47 int GetLastCommittedEntryIndex() const override; |
48 virtual NavigationEntry* GetLastCommittedEntry() const override; | 48 bool CanViewSource() const override; |
49 virtual int GetLastCommittedEntryIndex() const override; | 49 int GetEntryCount() const override; |
50 virtual bool CanViewSource() const override; | 50 NavigationEntry* GetEntryAtIndex(int index) const override; |
51 virtual int GetEntryCount() const override; | 51 NavigationEntry* GetEntryAtOffset(int offset) const override; |
52 virtual NavigationEntry* GetEntryAtIndex(int index) const override; | 52 void DiscardNonCommittedEntries() override; |
53 virtual NavigationEntry* GetEntryAtOffset(int offset) const override; | 53 NavigationEntry* GetPendingEntry() const override; |
54 virtual void DiscardNonCommittedEntries() override; | 54 int GetPendingEntryIndex() const override; |
55 virtual NavigationEntry* GetPendingEntry() const override; | 55 NavigationEntry* GetTransientEntry() const override; |
56 virtual int GetPendingEntryIndex() const override; | 56 void SetTransientEntry(NavigationEntry* entry) override; |
57 virtual NavigationEntry* GetTransientEntry() const override; | 57 void LoadURL(const GURL& url, |
58 virtual void SetTransientEntry(NavigationEntry* entry) override; | 58 const Referrer& referrer, |
59 virtual void LoadURL(const GURL& url, | 59 ui::PageTransition type, |
60 const Referrer& referrer, | 60 const std::string& extra_headers) override; |
61 ui::PageTransition type, | 61 void LoadURLWithParams(const LoadURLParams& params) override; |
62 const std::string& extra_headers) override; | 62 void LoadIfNecessary() override; |
63 virtual void LoadURLWithParams(const LoadURLParams& params) override; | 63 bool CanGoBack() const override; |
64 virtual void LoadIfNecessary() override; | 64 bool CanGoForward() const override; |
65 virtual bool CanGoBack() const override; | 65 bool CanGoToOffset(int offset) const override; |
66 virtual bool CanGoForward() const override; | 66 void GoBack() override; |
67 virtual bool CanGoToOffset(int offset) const override; | 67 void GoForward() override; |
68 virtual void GoBack() override; | 68 void GoToIndex(int index) override; |
69 virtual void GoForward() override; | 69 void GoToOffset(int offset) override; |
70 virtual void GoToIndex(int index) override; | 70 bool RemoveEntryAtIndex(int index) override; |
71 virtual void GoToOffset(int offset) override; | 71 const SessionStorageNamespaceMap& GetSessionStorageNamespaceMap() |
72 virtual bool RemoveEntryAtIndex(int index) override; | 72 const override; |
73 virtual const SessionStorageNamespaceMap& | 73 SessionStorageNamespace* GetDefaultSessionStorageNamespace() override; |
74 GetSessionStorageNamespaceMap() const override; | 74 void SetMaxRestoredPageID(int32 max_id) override; |
75 virtual SessionStorageNamespace* | 75 int32 GetMaxRestoredPageID() const override; |
76 GetDefaultSessionStorageNamespace() override; | 76 bool NeedsReload() const override; |
77 virtual void SetMaxRestoredPageID(int32 max_id) override; | 77 void SetNeedsReload() override; |
78 virtual int32 GetMaxRestoredPageID() const override; | 78 void CancelPendingReload() override; |
79 virtual bool NeedsReload() const override; | 79 void ContinuePendingReload() override; |
80 virtual void SetNeedsReload() override; | 80 bool IsInitialNavigation() const override; |
81 virtual void CancelPendingReload() override; | 81 void Reload(bool check_for_repost) override; |
82 virtual void ContinuePendingReload() override; | 82 void ReloadIgnoringCache(bool check_for_repost) override; |
83 virtual bool IsInitialNavigation() const override; | 83 void ReloadOriginalRequestURL(bool check_for_repost) override; |
84 virtual void Reload(bool check_for_repost) override; | 84 void NotifyEntryChanged(const NavigationEntry* entry, int index) override; |
85 virtual void ReloadIgnoringCache(bool check_for_repost) override; | 85 void CopyStateFrom(const NavigationController& source) override; |
86 virtual void ReloadOriginalRequestURL(bool check_for_repost) override; | 86 void CopyStateFromAndPrune(NavigationController* source, |
87 virtual void NotifyEntryChanged(const NavigationEntry* entry, | 87 bool replace_entry) override; |
88 int index) override; | 88 bool CanPruneAllButLastCommitted() override; |
89 virtual void CopyStateFrom( | 89 void PruneAllButLastCommitted() override; |
90 const NavigationController& source) override; | 90 void ClearAllScreenshots() override; |
91 virtual void CopyStateFromAndPrune(NavigationController* source, | |
92 bool replace_entry) override; | |
93 virtual bool CanPruneAllButLastCommitted() override; | |
94 virtual void PruneAllButLastCommitted() override; | |
95 virtual void ClearAllScreenshots() override; | |
96 | 91 |
97 // Whether this is the initial navigation in an unmodified new tab. In this | 92 // Whether this is the initial navigation in an unmodified new tab. In this |
98 // case, we know there is no content displayed in the page. | 93 // case, we know there is no content displayed in the page. |
99 bool IsUnmodifiedBlankTab() const; | 94 bool IsUnmodifiedBlankTab() const; |
100 | 95 |
101 // The session storage namespace that all child RenderViews belonging to | 96 // The session storage namespace that all child RenderViews belonging to |
102 // |instance| should use. | 97 // |instance| should use. |
103 SessionStorageNamespace* GetSessionStorageNamespace( | 98 SessionStorageNamespace* GetSessionStorageNamespace( |
104 SiteInstance* instance); | 99 SiteInstance* instance); |
105 | 100 |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 TimeSmoother time_smoother_; | 408 TimeSmoother time_smoother_; |
414 | 409 |
415 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_; | 410 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_; |
416 | 411 |
417 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); | 412 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); |
418 }; | 413 }; |
419 | 414 |
420 } // namespace content | 415 } // namespace content |
421 | 416 |
422 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ | 417 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ |
OLD | NEW |