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

Side by Side Diff: ios/web/public/test/test_web_state.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/public/test/test_web_state.h ('k') | ios/web/public/web_state/web_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/public/test/test_web_state.h" 5 #include "ios/web/public/test/test_web_state.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 10
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 33
34 void TestWebState::SetWebUsageEnabled(bool enabled) { 34 void TestWebState::SetWebUsageEnabled(bool enabled) {
35 web_usage_enabled_ = enabled; 35 web_usage_enabled_ = enabled;
36 } 36 }
37 37
38 UIView* TestWebState::GetView() { 38 UIView* TestWebState::GetView() {
39 return nullptr; 39 return nullptr;
40 } 40 }
41 41
42 const NavigationManager* TestWebState::GetNavigationManager() const {
43 return nullptr;
44 }
45
42 NavigationManager* TestWebState::GetNavigationManager() { 46 NavigationManager* TestWebState::GetNavigationManager() {
43 return nullptr; 47 return nullptr;
44 } 48 }
45 49
46 CRWJSInjectionReceiver* TestWebState::GetJSInjectionReceiver() const { 50 CRWJSInjectionReceiver* TestWebState::GetJSInjectionReceiver() const {
47 return nullptr; 51 return nullptr;
48 } 52 }
49 53
50 void TestWebState::ExecuteJavaScript(const base::string16& javascript) {} 54 void TestWebState::ExecuteJavaScript(const base::string16& javascript) {}
51 55
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 shell::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() { 138 shell::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() {
135 return nullptr; 139 return nullptr;
136 } 140 }
137 141
138 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { 142 base::WeakPtr<WebState> TestWebState::AsWeakPtr() {
139 NOTREACHED(); 143 NOTREACHED();
140 return base::WeakPtr<WebState>(); 144 return base::WeakPtr<WebState>();
141 } 145 }
142 146
143 } // namespace web 147 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/public/test/test_web_state.h ('k') | ios/web/public/web_state/web_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698