| 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 #ifndef IOS_WEB_PUBLIC_TEST_TEST_WEB_STATE_H_ | 5 #ifndef IOS_WEB_PUBLIC_TEST_TEST_WEB_STATE_H_ |
| 6 #define IOS_WEB_PUBLIC_TEST_TEST_WEB_STATE_H_ | 6 #define IOS_WEB_PUBLIC_TEST_TEST_WEB_STATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 ~TestWebState() override; | 23 ~TestWebState() override; |
| 24 | 24 |
| 25 // WebState implementation. | 25 // WebState implementation. |
| 26 WebStateDelegate* GetDelegate() override; | 26 WebStateDelegate* GetDelegate() override; |
| 27 void SetDelegate(WebStateDelegate* delegate) override; | 27 void SetDelegate(WebStateDelegate* delegate) override; |
| 28 bool IsWebUsageEnabled() const override; | 28 bool IsWebUsageEnabled() const override; |
| 29 void SetWebUsageEnabled(bool enabled) override; | 29 void SetWebUsageEnabled(bool enabled) override; |
| 30 UIView* GetView() override; | 30 UIView* GetView() override; |
| 31 BrowserState* GetBrowserState() const override; | 31 BrowserState* GetBrowserState() const override; |
| 32 void OpenURL(const OpenURLParams& params) override {} | 32 void OpenURL(const OpenURLParams& params) override {} |
| 33 const NavigationManager* GetNavigationManager() const override; |
| 33 NavigationManager* GetNavigationManager() override; | 34 NavigationManager* GetNavigationManager() override; |
| 34 CRWJSInjectionReceiver* GetJSInjectionReceiver() const override; | 35 CRWJSInjectionReceiver* GetJSInjectionReceiver() const override; |
| 35 void ExecuteJavaScript(const base::string16& javascript) override; | 36 void ExecuteJavaScript(const base::string16& javascript) override; |
| 36 void ExecuteJavaScript(const base::string16& javascript, | 37 void ExecuteJavaScript(const base::string16& javascript, |
| 37 const JavaScriptResultCallback& callback) override; | 38 const JavaScriptResultCallback& callback) override; |
| 38 const std::string& GetContentsMimeType() const override; | 39 const std::string& GetContentsMimeType() const override; |
| 39 const std::string& GetContentLanguageHeader() const override; | 40 const std::string& GetContentLanguageHeader() const override; |
| 40 bool ContentIsHTML() const override; | 41 bool ContentIsHTML() const override; |
| 41 const base::string16& GetTitle() const override; | 42 const base::string16& GetTitle() const override; |
| 42 bool IsLoading() const override; | 43 bool IsLoading() const override; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 base::string16 title_; | 78 base::string16 title_; |
| 78 URLVerificationTrustLevel trust_level_; | 79 URLVerificationTrustLevel trust_level_; |
| 79 bool content_is_html_; | 80 bool content_is_html_; |
| 80 std::string mime_type_; | 81 std::string mime_type_; |
| 81 std::string content_language_; | 82 std::string content_language_; |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } // namespace web | 85 } // namespace web |
| 85 | 86 |
| 86 #endif // IOS_WEB_PUBLIC_TEST_TEST_WEB_STATE_H_ | 87 #endif // IOS_WEB_PUBLIC_TEST_TEST_WEB_STATE_H_ |
| OLD | NEW |