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

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

Issue 2046063005: Added const getter for WebState's NavigationManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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/web_state_impl.h ('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 #include "ios/web/web_state/web_state_impl.h" 5 #include "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/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 BrowserState* WebStateImpl::GetBrowserState() const { 546 BrowserState* WebStateImpl::GetBrowserState() const {
547 return navigation_manager_.GetBrowserState(); 547 return navigation_manager_.GetBrowserState();
548 } 548 }
549 549
550 void WebStateImpl::OpenURL(const WebState::OpenURLParams& params) { 550 void WebStateImpl::OpenURL(const WebState::OpenURLParams& params) {
551 DCHECK(Configured()); 551 DCHECK(Configured());
552 ClearTransientContentView(); 552 ClearTransientContentView();
553 [[web_controller_ delegate] openURLWithParams:params]; 553 [[web_controller_ delegate] openURLWithParams:params];
554 } 554 }
555 555
556 const NavigationManager* WebStateImpl::GetNavigationManager() const {
557 return &GetNavigationManagerImpl();
558 }
559
556 NavigationManager* WebStateImpl::GetNavigationManager() { 560 NavigationManager* WebStateImpl::GetNavigationManager() {
557 return &GetNavigationManagerImpl(); 561 return &GetNavigationManagerImpl();
558 } 562 }
559 563
560 CRWJSInjectionReceiver* WebStateImpl::GetJSInjectionReceiver() const { 564 CRWJSInjectionReceiver* WebStateImpl::GetJSInjectionReceiver() const {
561 return [web_controller_ jsInjectionReceiver]; 565 return [web_controller_ jsInjectionReceiver];
562 } 566 }
563 567
564 void WebStateImpl::ExecuteJavaScript(const base::string16& javascript) { 568 void WebStateImpl::ExecuteJavaScript(const base::string16& javascript) {
565 [web_controller_ executeJavaScript:base::SysUTF16ToNSString(javascript) 569 [web_controller_ executeJavaScript:base::SysUTF16ToNSString(javascript)
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 const LoadCommittedDetails& load_details) { 663 const LoadCommittedDetails& load_details) {
660 FOR_EACH_OBSERVER(WebStateObserver, observers_, 664 FOR_EACH_OBSERVER(WebStateObserver, observers_,
661 NavigationItemCommitted(load_details)); 665 NavigationItemCommitted(load_details));
662 } 666 }
663 667
664 WebState* WebStateImpl::GetWebState() { 668 WebState* WebStateImpl::GetWebState() {
665 return this; 669 return this;
666 } 670 }
667 671
668 } // namespace web 672 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/web_state/web_state_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698