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

Side by Side Diff: components/web_view/navigation_controller.h

Issue 1391963004: Correctly record and pass around navigation start time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « components/web_view/frame_tree.cc ('k') | components/web_view/navigation_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/web_view/frame_tree.cc ('k') | components/web_view/navigation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698