| 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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 const NavigationManager* WebStateImpl::GetNavigationManager() const { | 647 const NavigationManager* WebStateImpl::GetNavigationManager() const { |
| 648 return &GetNavigationManagerImpl(); | 648 return &GetNavigationManagerImpl(); |
| 649 } | 649 } |
| 650 | 650 |
| 651 NavigationManager* WebStateImpl::GetNavigationManager() { | 651 NavigationManager* WebStateImpl::GetNavigationManager() { |
| 652 return &GetNavigationManagerImpl(); | 652 return &GetNavigationManagerImpl(); |
| 653 } | 653 } |
| 654 | 654 |
| 655 CRWNavigationManagerStorage* WebStateImpl::BuildSerializedNavigationManager() { | 655 CRWNavigationManagerStorage* WebStateImpl::BuildSerializedNavigationManager() { |
| 656 NavigationManagerStorageBuilder session_storage_builder; | 656 NavigationManagerStorageBuilder session_storage_builder; |
| 657 return session_storage_builder.BuildSerialization(navigation_manager_.get()); | 657 return session_storage_builder.BuildStorage(navigation_manager_.get()); |
| 658 } | 658 } |
| 659 | 659 |
| 660 CRWJSInjectionReceiver* WebStateImpl::GetJSInjectionReceiver() const { | 660 CRWJSInjectionReceiver* WebStateImpl::GetJSInjectionReceiver() const { |
| 661 return [web_controller_ jsInjectionReceiver]; | 661 return [web_controller_ jsInjectionReceiver]; |
| 662 } | 662 } |
| 663 | 663 |
| 664 void WebStateImpl::ExecuteJavaScript(const base::string16& javascript) { | 664 void WebStateImpl::ExecuteJavaScript(const base::string16& javascript) { |
| 665 [web_controller_ executeJavaScript:base::SysUTF16ToNSString(javascript) | 665 [web_controller_ executeJavaScript:base::SysUTF16ToNSString(javascript) |
| 666 completionHandler:nil]; | 666 completionHandler:nil]; |
| 667 } | 667 } |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 const LoadCommittedDetails& load_details) { | 763 const LoadCommittedDetails& load_details) { |
| 764 for (auto& observer : observers_) | 764 for (auto& observer : observers_) |
| 765 observer.NavigationItemCommitted(load_details); | 765 observer.NavigationItemCommitted(load_details); |
| 766 } | 766 } |
| 767 | 767 |
| 768 WebState* WebStateImpl::GetWebState() { | 768 WebState* WebStateImpl::GetWebState() { |
| 769 return this; | 769 return this; |
| 770 } | 770 } |
| 771 | 771 |
| 772 } // namespace web | 772 } // namespace web |
| OLD | NEW |