| 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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 WebStateImpl::GetSessionCertificatePolicyCache() const { | 643 WebStateImpl::GetSessionCertificatePolicyCache() const { |
| 644 return &GetSessionCertificatePolicyCacheImpl(); | 644 return &GetSessionCertificatePolicyCacheImpl(); |
| 645 } | 645 } |
| 646 | 646 |
| 647 SessionCertificatePolicyCache* | 647 SessionCertificatePolicyCache* |
| 648 WebStateImpl::GetSessionCertificatePolicyCache() { | 648 WebStateImpl::GetSessionCertificatePolicyCache() { |
| 649 return &GetSessionCertificatePolicyCacheImpl(); | 649 return &GetSessionCertificatePolicyCacheImpl(); |
| 650 } | 650 } |
| 651 | 651 |
| 652 CRWSessionStorage* WebStateImpl::BuildSessionStorage() { | 652 CRWSessionStorage* WebStateImpl::BuildSessionStorage() { |
| 653 [web_controller_ recordStateInHistory]; |
| 653 SessionStorageBuilder session_storage_builder; | 654 SessionStorageBuilder session_storage_builder; |
| 654 return session_storage_builder.BuildStorage(this); | 655 return session_storage_builder.BuildStorage(this); |
| 655 } | 656 } |
| 656 | 657 |
| 657 CRWJSInjectionReceiver* WebStateImpl::GetJSInjectionReceiver() const { | 658 CRWJSInjectionReceiver* WebStateImpl::GetJSInjectionReceiver() const { |
| 658 return [web_controller_ jsInjectionReceiver]; | 659 return [web_controller_ jsInjectionReceiver]; |
| 659 } | 660 } |
| 660 | 661 |
| 661 void WebStateImpl::ExecuteJavaScript(const base::string16& javascript) { | 662 void WebStateImpl::ExecuteJavaScript(const base::string16& javascript) { |
| 662 [web_controller_ executeJavaScript:base::SysUTF16ToNSString(javascript) | 663 [web_controller_ executeJavaScript:base::SysUTF16ToNSString(javascript) |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 const LoadCommittedDetails& load_details) { | 769 const LoadCommittedDetails& load_details) { |
| 769 for (auto& observer : observers_) | 770 for (auto& observer : observers_) |
| 770 observer.NavigationItemCommitted(load_details); | 771 observer.NavigationItemCommitted(load_details); |
| 771 } | 772 } |
| 772 | 773 |
| 773 WebState* WebStateImpl::GetWebState() { | 774 WebState* WebStateImpl::GetWebState() { |
| 774 return this; | 775 return this; |
| 775 } | 776 } |
| 776 | 777 |
| 777 } // namespace web | 778 } // namespace web |
| OLD | NEW |