OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_WEB_VIEW_NAVIGATION_CONTROLLER_H_ | 5 #ifndef COMPONENTS_WEB_VIEW_NAVIGATION_CONTROLLER_H_ |
6 #define COMPONENTS_WEB_VIEW_NAVIGATION_CONTROLLER_H_ | 6 #define COMPONENTS_WEB_VIEW_NAVIGATION_CONTROLLER_H_ |
7 | 7 |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 | 9 |
10 #include "components/web_view/public/interfaces/web_view.mojom.h" | 10 #include "components/web_view/public/interfaces/web_view.mojom.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 NavigationEntry* GetEntryAtOffset(int offset) const; | 34 NavigationEntry* GetEntryAtOffset(int offset) const; |
35 bool CanGoBack() const; | 35 bool CanGoBack() const; |
36 bool CanGoForward() const; | 36 bool CanGoForward() const; |
37 bool CanGoToOffset(int offset) const; | 37 bool CanGoToOffset(int offset) const; |
38 | 38 |
39 void GoBack(); | 39 void GoBack(); |
40 void GoForward(); | 40 void GoForward(); |
41 | 41 |
42 void LoadURL(mojo::URLRequestPtr request); | 42 void LoadURL(mojo::URLRequestPtr request); |
43 | 43 |
44 void NavigateToPendingEntry(ReloadType reload_type); | 44 void NavigateToPendingEntry(ReloadType reload_type, |
| 45 bool update_navigation_start_time); |
45 | 46 |
46 // Takes ownership of a pending entry, and adds it to the current list. | 47 // Takes ownership of a pending entry, and adds it to the current list. |
47 // | 48 // |
48 // TODO(erg): This should eventually own the navigation transition like | 49 // TODO(erg): This should eventually own the navigation transition like |
49 // content::NavigationControllerImpl::NavigateToPendingEntry() does. | 50 // content::NavigationControllerImpl::NavigateToPendingEntry() does. |
50 void SetPendingEntry(scoped_ptr<NavigationEntry> entry); | 51 void SetPendingEntry(scoped_ptr<NavigationEntry> entry); |
51 | 52 |
52 // Discards only the pending entry. |was_failure| should be set if the pending | 53 // Discards only the pending entry. |was_failure| should be set if the pending |
53 // entry is being discarded because it failed to load. | 54 // entry is being discarded because it failed to load. |
54 void DiscardPendingEntry(bool was_failure); | 55 void DiscardPendingEntry(bool was_failure); |
(...skipping 29 matching lines...) Expand all Loading... |
84 int pending_entry_index_; | 85 int pending_entry_index_; |
85 | 86 |
86 NavigationControllerDelegate* delegate_; | 87 NavigationControllerDelegate* delegate_; |
87 | 88 |
88 DISALLOW_COPY_AND_ASSIGN(NavigationController); | 89 DISALLOW_COPY_AND_ASSIGN(NavigationController); |
89 }; | 90 }; |
90 | 91 |
91 } // namespace web_view | 92 } // namespace web_view |
92 | 93 |
93 #endif // COMPONENTS_WEB_VIEW_NAVIGATION_CONTROLLER_H_ | 94 #endif // COMPONENTS_WEB_VIEW_NAVIGATION_CONTROLLER_H_ |
OLD | NEW |