| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 } | 176 } |
| 177 | 177 |
| 178 void TestWebState::SetTrustLevel(URLVerificationTrustLevel trust_level) { | 178 void TestWebState::SetTrustLevel(URLVerificationTrustLevel trust_level) { |
| 179 trust_level_ = trust_level; | 179 trust_level_ = trust_level; |
| 180 } | 180 } |
| 181 | 181 |
| 182 CRWWebViewProxyType TestWebState::GetWebViewProxy() const { | 182 CRWWebViewProxyType TestWebState::GetWebViewProxy() const { |
| 183 return nullptr; | 183 return nullptr; |
| 184 } | 184 } |
| 185 | 185 |
| 186 int TestWebState::DownloadImage(const GURL& url, |
| 187 bool is_favicon, |
| 188 uint32_t max_bitmap_size, |
| 189 bool bypass_cache, |
| 190 const ImageDownloadCallback& callback) { |
| 191 return 0; |
| 192 } |
| 193 |
| 186 service_manager::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() { | 194 service_manager::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() { |
| 187 return nullptr; | 195 return nullptr; |
| 188 } | 196 } |
| 189 | 197 |
| 190 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { | 198 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { |
| 191 NOTREACHED(); | 199 NOTREACHED(); |
| 192 return base::WeakPtr<WebState>(); | 200 return base::WeakPtr<WebState>(); |
| 193 } | 201 } |
| 194 | 202 |
| 195 } // namespace web | 203 } // namespace web |
| OLD | NEW |