Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1054)

Side by Side Diff: ios/web/web_state/web_state_impl.mm

Issue 2807063006: [ios] Reduce access to private //ios/web API. (Closed)
Patch Set: Call -recordStateInHistory in CRWWebController -wasHidden.' Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698