Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_REQUEST_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 121 DCHECK(state_ == NOT_STARTED); | 121 DCHECK(state_ == NOT_STARTED); |
| 122 state_ = WAITING_FOR_RENDERER_RESPONSE; | 122 state_ = WAITING_FOR_RENDERER_RESPONSE; |
| 123 } | 123 } |
| 124 | 124 |
| 125 NavigationHandleImpl* navigation_handle() const { | 125 NavigationHandleImpl* navigation_handle() const { |
| 126 return navigation_handle_.get(); | 126 return navigation_handle_.get(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 // Creates a NavigationHandle. This should be called after any previous | 129 // Creates a NavigationHandle. This should be called after any previous |
| 130 // NavigationRequest for the FrameTreeNode has been destroyed. | 130 // NavigationRequest for the FrameTreeNode has been destroyed. |
| 131 void CreateNavigationHandle(); | 131 void CreateNavigationHandle(double navigation_start); |
|
clamy
2015/10/28 12:40:01
There is no need to pass the navigation_start as a
| |
| 132 | 132 |
| 133 // Transfers the ownership of the NavigationHandle to |render_frame_host|. | 133 // Transfers the ownership of the NavigationHandle to |render_frame_host|. |
| 134 // This should be called when the navigation is ready to commit, because the | 134 // This should be called when the navigation is ready to commit, because the |
| 135 // NavigationHandle outlives the NavigationRequest. The NavigationHandle's | 135 // NavigationHandle outlives the NavigationRequest. The NavigationHandle's |
| 136 // lifetime is the entire navigation, while the NavigationRequest is | 136 // lifetime is the entire navigation, while the NavigationRequest is |
| 137 // destroyed when a navigation is ready for commit. | 137 // destroyed when a navigation is ready for commit. |
| 138 void TransferNavigationHandleOwnership( | 138 void TransferNavigationHandleOwnership( |
| 139 RenderFrameHostImpl* render_frame_host); | 139 RenderFrameHostImpl* render_frame_host); |
| 140 | 140 |
| 141 private: | 141 private: |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 197 int bindings_; | 197 int bindings_; |
| 198 | 198 |
| 199 scoped_ptr<NavigationHandleImpl> navigation_handle_; | 199 scoped_ptr<NavigationHandleImpl> navigation_handle_; |
| 200 | 200 |
| 201 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 201 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
| 202 }; | 202 }; |
| 203 | 203 |
| 204 } // namespace content | 204 } // namespace content |
| 205 | 205 |
| 206 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 206 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| OLD | NEW |