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 #include "content/browser/frame_host/navigation_handle_impl.h" | 5 #include "content/browser/frame_host/navigation_handle_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "content/browser/frame_host/frame_tree_node.h" | 8 #include "content/browser/frame_host/frame_tree_node.h" |
9 #include "content/browser/frame_host/navigator.h" | 9 #include "content/browser/frame_host/navigator.h" |
10 #include "content/browser/frame_host/navigator_delegate.h" | 10 #include "content/browser/frame_host/navigator_delegate.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 } | 92 } |
93 | 93 |
94 const GURL& NavigationHandleImpl::GetURL() { | 94 const GURL& NavigationHandleImpl::GetURL() { |
95 return url_; | 95 return url_; |
96 } | 96 } |
97 | 97 |
98 bool NavigationHandleImpl::IsInMainFrame() { | 98 bool NavigationHandleImpl::IsInMainFrame() { |
99 return frame_tree_node_->IsMainFrame(); | 99 return frame_tree_node_->IsMainFrame(); |
100 } | 100 } |
101 | 101 |
| 102 const base::TimeTicks& NavigationHandleImpl::NavigationStart() { |
| 103 return navigation_start_; |
| 104 } |
| 105 |
102 bool NavigationHandleImpl::IsPost() { | 106 bool NavigationHandleImpl::IsPost() { |
103 CHECK_NE(INITIAL, state_) | 107 CHECK_NE(INITIAL, state_) |
104 << "This accessor should not be called before the request is started."; | 108 << "This accessor should not be called before the request is started."; |
105 return is_post_; | 109 return is_post_; |
106 } | 110 } |
107 | 111 |
108 const Referrer& NavigationHandleImpl::GetReferrer() { | 112 const Referrer& NavigationHandleImpl::GetReferrer() { |
109 CHECK_NE(INITIAL, state_) | 113 CHECK_NE(INITIAL, state_) |
110 << "This accessor should not be called before the request is started."; | 114 << "This accessor should not be called before the request is started."; |
111 return sanitized_referrer_; | 115 return sanitized_referrer_; |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 default: | 345 default: |
342 NOTREACHED(); | 346 NOTREACHED(); |
343 } | 347 } |
344 } | 348 } |
345 next_index_ = 0; | 349 next_index_ = 0; |
346 state_ = WILL_REDIRECT_REQUEST; | 350 state_ = WILL_REDIRECT_REQUEST; |
347 return NavigationThrottle::PROCEED; | 351 return NavigationThrottle::PROCEED; |
348 } | 352 } |
349 | 353 |
350 } // namespace content | 354 } // namespace content |
OLD | NEW |