OLD | NEW |
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 #import "ios/web/public/test/fakes/test_web_state.h" | 5 #import "ios/web/public/test/fakes/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 #include "ios/web/public/web_state/web_state_observer.h" | 10 #include "ios/web/public/web_state/web_state_observer.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 } | 185 } |
186 | 186 |
187 CRWWebViewProxyType TestWebState::GetWebViewProxy() const { | 187 CRWWebViewProxyType TestWebState::GetWebViewProxy() const { |
188 return nullptr; | 188 return nullptr; |
189 } | 189 } |
190 | 190 |
191 service_manager::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() { | 191 service_manager::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() { |
192 return nullptr; | 192 return nullptr; |
193 } | 193 } |
194 | 194 |
| 195 bool TestWebState::HasOpener() const { |
| 196 return false; |
| 197 } |
| 198 |
195 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { | 199 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { |
196 NOTREACHED(); | 200 NOTREACHED(); |
197 return base::WeakPtr<WebState>(); | 201 return base::WeakPtr<WebState>(); |
198 } | 202 } |
199 | 203 |
200 } // namespace web | 204 } // namespace web |
OLD | NEW |