| 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 <iterator> | 7 #include <iterator> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "content/browser/appcache/appcache_navigation_handle.h" | 10 #include "content/browser/appcache/appcache_navigation_handle.h" |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 } | 451 } |
| 452 | 452 |
| 453 ReloadType NavigationHandleImpl::GetReloadType() { | 453 ReloadType NavigationHandleImpl::GetReloadType() { |
| 454 return reload_type_; | 454 return reload_type_; |
| 455 } | 455 } |
| 456 | 456 |
| 457 RestoreType NavigationHandleImpl::GetRestoreType() { | 457 RestoreType NavigationHandleImpl::GetRestoreType() { |
| 458 return restore_type_; | 458 return restore_type_; |
| 459 } | 459 } |
| 460 | 460 |
| 461 const GURL& NavigationHandleImpl::GetBaseURLForDataURL() { |
| 462 return base_url_for_data_url_; |
| 463 } |
| 464 |
| 461 NavigationData* NavigationHandleImpl::GetNavigationData() { | 465 NavigationData* NavigationHandleImpl::GetNavigationData() { |
| 462 return navigation_data_.get(); | 466 return navigation_data_.get(); |
| 463 } | 467 } |
| 464 | 468 |
| 465 const GlobalRequestID& NavigationHandleImpl::GetGlobalRequestID() { | 469 const GlobalRequestID& NavigationHandleImpl::GetGlobalRequestID() { |
| 466 DCHECK(state_ == WILL_PROCESS_RESPONSE || state_ == DEFERRING_RESPONSE || | 470 DCHECK(state_ == WILL_PROCESS_RESPONSE || state_ == DEFERRING_RESPONSE || |
| 467 state_ == READY_TO_COMMIT); | 471 state_ == READY_TO_COMMIT); |
| 468 return request_id_; | 472 return request_id_; |
| 469 } | 473 } |
| 470 | 474 |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 if (node->current_url().EqualsIgnoringRef(url_)) { | 951 if (node->current_url().EqualsIgnoringRef(url_)) { |
| 948 if (found_self_reference) | 952 if (found_self_reference) |
| 949 return true; | 953 return true; |
| 950 found_self_reference = true; | 954 found_self_reference = true; |
| 951 } | 955 } |
| 952 } | 956 } |
| 953 return false; | 957 return false; |
| 954 } | 958 } |
| 955 | 959 |
| 956 } // namespace content | 960 } // namespace content |
| OLD | NEW |