| 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 #import "ios/web/web_state/web_state_impl.h" | 5 #import "ios/web/web_state/web_state_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 WebStateFacadeDelegate* WebStateImpl::GetFacadeDelegate() const { | 176 WebStateFacadeDelegate* WebStateImpl::GetFacadeDelegate() const { |
| 177 return facade_delegate_; | 177 return facade_delegate_; |
| 178 } | 178 } |
| 179 | 179 |
| 180 void WebStateImpl::SetFacadeDelegate(WebStateFacadeDelegate* facade_delegate) { | 180 void WebStateImpl::SetFacadeDelegate(WebStateFacadeDelegate* facade_delegate) { |
| 181 facade_delegate_ = facade_delegate; | 181 facade_delegate_ = facade_delegate; |
| 182 } | 182 } |
| 183 | 183 |
| 184 void WebStateImpl::OnNavigationCommitted(const GURL& url) { | 184 void WebStateImpl::OnNavigationCommitted(const GURL& url) { |
| 185 UpdateHttpResponseHeaders(url); | |
| 186 std::unique_ptr<NavigationContext> context = | 185 std::unique_ptr<NavigationContext> context = |
| 187 NavigationContextImpl::CreateNavigationContext(this, url); | 186 NavigationContextImpl::CreateNavigationContext(this, url); |
| 188 for (auto& observer : observers_) | 187 for (auto& observer : observers_) |
| 189 observer.DidFinishNavigation(context.get()); | 188 observer.DidFinishNavigation(context.get()); |
| 190 } | 189 } |
| 191 | 190 |
| 192 void WebStateImpl::OnSamePageNavigation(const GURL& url) { | 191 void WebStateImpl::OnSamePageNavigation(const GURL& url) { |
| 193 std::unique_ptr<NavigationContext> context = | 192 std::unique_ptr<NavigationContext> context = |
| 194 NavigationContextImpl::CreateSamePageNavigationContext(this, url); | 193 NavigationContextImpl::CreateSamePageNavigationContext(this, url); |
| 195 for (auto& observer : observers_) | 194 for (auto& observer : observers_) |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 const LoadCommittedDetails& load_details) { | 731 const LoadCommittedDetails& load_details) { |
| 733 for (auto& observer : observers_) | 732 for (auto& observer : observers_) |
| 734 observer.NavigationItemCommitted(load_details); | 733 observer.NavigationItemCommitted(load_details); |
| 735 } | 734 } |
| 736 | 735 |
| 737 WebState* WebStateImpl::GetWebState() { | 736 WebState* WebStateImpl::GetWebState() { |
| 738 return this; | 737 return this; |
| 739 } | 738 } |
| 740 | 739 |
| 741 } // namespace web | 740 } // namespace web |
| OLD | NEW |