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/debug/dump_without_crashing.h" | 7 #include "base/debug/dump_without_crashing.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "content/browser/appcache/appcache_navigation_handle.h" | 9 #include "content/browser/appcache/appcache_navigation_handle.h" |
10 #include "content/browser/appcache/appcache_service_impl.h" | 10 #include "content/browser/appcache/appcache_service_impl.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 TRACE_EVENT_ASYNC_END2("navigation", "Navigation StartToCommit", this, | 133 TRACE_EVENT_ASYNC_END2("navigation", "Navigation StartToCommit", this, |
134 "URL", url_.spec(), "Net Error Code", | 134 "URL", url_.spec(), "Net Error Code", |
135 net_error_code_); | 135 net_error_code_); |
136 } | 136 } |
137 } | 137 } |
138 | 138 |
139 NavigatorDelegate* NavigationHandleImpl::GetDelegate() const { | 139 NavigatorDelegate* NavigationHandleImpl::GetDelegate() const { |
140 return frame_tree_node_->navigator()->GetDelegate(); | 140 return frame_tree_node_->navigator()->GetDelegate(); |
141 } | 141 } |
142 | 142 |
143 RequestContextType NavigationHandleImpl::GetRequestContextType() const { | |
144 DCHECK_GE(state_, WILL_SEND_REQUEST); | |
145 return request_context_type_; | |
146 } | |
147 | |
148 const GURL& NavigationHandleImpl::GetURL() { | 143 const GURL& NavigationHandleImpl::GetURL() { |
149 return url_; | 144 return url_; |
150 } | 145 } |
151 | 146 |
152 SiteInstance* NavigationHandleImpl::GetStartingSiteInstance() { | 147 SiteInstance* NavigationHandleImpl::GetStartingSiteInstance() { |
153 return starting_site_instance_.get(); | 148 return starting_site_instance_.get(); |
154 } | 149 } |
155 | 150 |
156 bool NavigationHandleImpl::IsInMainFrame() { | 151 bool NavigationHandleImpl::IsInMainFrame() { |
157 return frame_tree_node_->IsMainFrame(); | 152 return frame_tree_node_->IsMainFrame(); |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 throttles_to_register.push_back(std::move(clear_site_data_throttle)); | 781 throttles_to_register.push_back(std::move(clear_site_data_throttle)); |
787 | 782 |
788 if (throttles_to_register.size() > 0) { | 783 if (throttles_to_register.size() > 0) { |
789 throttles_.insert(throttles_.begin(), throttles_to_register.begin(), | 784 throttles_.insert(throttles_.begin(), throttles_to_register.begin(), |
790 throttles_to_register.end()); | 785 throttles_to_register.end()); |
791 throttles_to_register.weak_clear(); | 786 throttles_to_register.weak_clear(); |
792 } | 787 } |
793 } | 788 } |
794 | 789 |
795 } // namespace content | 790 } // namespace content |
OLD | NEW |