| 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 "content/browser/frame_host/navigation_controller_impl.h" | 9 #include "content/browser/frame_host/navigation_controller_impl.h" |
| 10 #include "content/browser/frame_host/navigator.h" | 10 #include "content/browser/frame_host/navigator.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 int32 page_id, | 51 int32 page_id, |
| 52 const GURL& source_url, | 52 const GURL& source_url, |
| 53 const GURL& target_url) OVERRIDE; | 53 const GURL& target_url) OVERRIDE; |
| 54 virtual void DidNavigate( | 54 virtual void DidNavigate( |
| 55 RenderFrameHostImpl* render_frame_host, | 55 RenderFrameHostImpl* render_frame_host, |
| 56 const FrameHostMsg_DidCommitProvisionalLoad_Params& | 56 const FrameHostMsg_DidCommitProvisionalLoad_Params& |
| 57 input_params) OVERRIDE; | 57 input_params) OVERRIDE; |
| 58 virtual bool NavigateToPendingEntry( | 58 virtual bool NavigateToPendingEntry( |
| 59 RenderFrameHostImpl* render_frame_host, | 59 RenderFrameHostImpl* render_frame_host, |
| 60 NavigationController::ReloadType reload_type) OVERRIDE; | 60 NavigationController::ReloadType reload_type) OVERRIDE; |
| 61 virtual base::TimeTicks GetCurrentLoadStart() OVERRIDE; | |
| 62 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, | 61 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, |
| 63 const GURL& url, | 62 const GURL& url, |
| 64 const Referrer& referrer, | 63 const Referrer& referrer, |
| 65 WindowOpenDisposition disposition, | 64 WindowOpenDisposition disposition, |
| 66 bool should_replace_current_entry, | 65 bool should_replace_current_entry, |
| 67 bool user_gesture) OVERRIDE; | 66 bool user_gesture) OVERRIDE; |
| 68 virtual void RequestTransferURL( | 67 virtual void RequestTransferURL( |
| 69 RenderFrameHostImpl* render_frame_host, | 68 RenderFrameHostImpl* render_frame_host, |
| 70 const GURL& url, | 69 const GURL& url, |
| 71 const std::vector<GURL>& redirect_chain, | 70 const std::vector<GURL>& redirect_chain, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 98 // The NavigationController that will keep track of session history for all | 97 // The NavigationController that will keep track of session history for all |
| 99 // RenderFrameHost objects using this NavigatorImpl. | 98 // RenderFrameHost objects using this NavigatorImpl. |
| 100 // TODO(nasko): Move ownership of the NavigationController from | 99 // TODO(nasko): Move ownership of the NavigationController from |
| 101 // WebContentsImpl to this class. | 100 // WebContentsImpl to this class. |
| 102 NavigationControllerImpl* controller_; | 101 NavigationControllerImpl* controller_; |
| 103 | 102 |
| 104 // Used to notify the object embedding this Navigator about navigation | 103 // Used to notify the object embedding this Navigator about navigation |
| 105 // events. Can be NULL in tests. | 104 // events. Can be NULL in tests. |
| 106 NavigatorDelegate* delegate_; | 105 NavigatorDelegate* delegate_; |
| 107 | 106 |
| 108 // System time at which the current load was started. | |
| 109 base::TimeTicks current_load_start_; | |
| 110 | |
| 111 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); | 107 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); |
| 112 }; | 108 }; |
| 113 | 109 |
| 114 } // namespace content | 110 } // namespace content |
| 115 | 111 |
| 116 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ | 112 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
| OLD | NEW |