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_NAVIGATOR_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/time/time.h" | |
9 #include "content/browser/frame_host/navigation_controller_impl.h" | 10 #include "content/browser/frame_host/navigation_controller_impl.h" |
10 #include "content/browser/frame_host/navigator.h" | 11 #include "content/browser/frame_host/navigator.h" |
11 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
clamy
2014/09/19 14:56:03
You need to include url/gurl.h since you now have
carlosk
2014/09/23 17:02:57
Done.
| |
12 | 13 |
13 struct FrameMsg_Navigate_Params; | 14 struct FrameMsg_Navigate_Params; |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 | 17 |
17 class NavigationControllerImpl; | 18 class NavigationControllerImpl; |
18 class NavigatorDelegate; | 19 class NavigatorDelegate; |
19 struct LoadCommittedDetails; | 20 struct LoadCommittedDetails; |
20 | 21 |
21 // This class is an implementation of Navigator, responsible for managing | 22 // This class is an implementation of Navigator, responsible for managing |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
71 const Referrer& referrer, | 72 const Referrer& referrer, |
72 PageTransition page_transition, | 73 PageTransition page_transition, |
73 WindowOpenDisposition disposition, | 74 WindowOpenDisposition disposition, |
74 const GlobalRequestID& transferred_global_request_id, | 75 const GlobalRequestID& transferred_global_request_id, |
75 bool should_replace_current_entry, | 76 bool should_replace_current_entry, |
76 bool user_gesture) OVERRIDE; | 77 bool user_gesture) OVERRIDE; |
77 virtual void CommitNavigation( | 78 virtual void CommitNavigation( |
78 RenderFrameHostImpl* render_frame_host, | 79 RenderFrameHostImpl* render_frame_host, |
79 const NavigationBeforeCommitInfo& info) OVERRIDE; | 80 const NavigationBeforeCommitInfo& info) OVERRIDE; |
80 | 81 |
82 virtual void LogResourceRequestTime(base::TimeTicks timestamp, GURL url) | |
83 OVERRIDE; | |
84 | |
81 private: | 85 private: |
82 virtual ~NavigatorImpl() {} | 86 virtual ~NavigatorImpl() {} |
83 | 87 |
84 // Navigates to the given entry, which must be the pending entry. Private | 88 // Navigates to the given entry, which must be the pending entry. Private |
85 // because all callers should use NavigateToPendingEntry. | 89 // because all callers should use NavigateToPendingEntry. |
86 bool NavigateToEntry( | 90 bool NavigateToEntry( |
87 RenderFrameHostImpl* render_frame_host, | 91 RenderFrameHostImpl* render_frame_host, |
88 const NavigationEntryImpl& entry, | 92 const NavigationEntryImpl& entry, |
89 NavigationController::ReloadType reload_type); | 93 NavigationController::ReloadType reload_type); |
90 | 94 |
91 bool ShouldAssignSiteForURL(const GURL& url); | 95 bool ShouldAssignSiteForURL(const GURL& url); |
92 | 96 |
93 void CheckWebUIRendererDoesNotDisplayNormalURL( | 97 void CheckWebUIRendererDoesNotDisplayNormalURL( |
94 RenderFrameHostImpl* render_frame_host, | 98 RenderFrameHostImpl* render_frame_host, |
95 const GURL& url); | 99 const GURL& url); |
96 | 100 |
97 // The NavigationController that will keep track of session history for all | 101 // The NavigationController that will keep track of session history for all |
98 // RenderFrameHost objects using this NavigatorImpl. | 102 // RenderFrameHost objects using this NavigatorImpl. |
99 // TODO(nasko): Move ownership of the NavigationController from | 103 // TODO(nasko): Move ownership of the NavigationController from |
100 // WebContentsImpl to this class. | 104 // WebContentsImpl to this class. |
101 NavigationControllerImpl* controller_; | 105 NavigationControllerImpl* controller_; |
102 | 106 |
103 // Used to notify the object embedding this Navigator about navigation | 107 // Used to notify the object embedding this Navigator about navigation |
104 // events. Can be NULL in tests. | 108 // events. Can be NULL in tests. |
105 NavigatorDelegate* delegate_; | 109 NavigatorDelegate* delegate_; |
106 | 110 |
111 // The time the latest navigation request started for histogram building | |
clamy
2014/09/19 14:56:03
nit: How about: The time the latest navigation req
carlosk
2014/09/23 17:02:57
Done but I mentioned the group name instead as the
| |
112 // purposes. | |
113 base::TimeTicks navigation_start_time_; | |
114 // The URL of a started navigation to double check later if reported times | |
115 // match the currently active navigation. | |
116 GURL navigation_start_url_; | |
117 | |
107 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); | 118 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); |
108 }; | 119 }; |
109 | 120 |
110 } // namespace content | 121 } // namespace content |
111 | 122 |
112 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ | 123 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
OLD | NEW |