| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 const GURL& GetLastCommittedURL() const override; | 51 const GURL& GetLastCommittedURL() const override; |
| 52 GURL GetCurrentURL(URLVerificationTrustLevel* trust_level) const override; | 52 GURL GetCurrentURL(URLVerificationTrustLevel* trust_level) const override; |
| 53 void ShowTransientContentView(CRWContentView* content_view) override {} | 53 void ShowTransientContentView(CRWContentView* content_view) override {} |
| 54 void AddScriptCommandCallback(const ScriptCommandCallback& callback, | 54 void AddScriptCommandCallback(const ScriptCommandCallback& callback, |
| 55 const std::string& command_prefix) override {} | 55 const std::string& command_prefix) override {} |
| 56 void RemoveScriptCommandCallback(const std::string& command_prefix) override { | 56 void RemoveScriptCommandCallback(const std::string& command_prefix) override { |
| 57 } | 57 } |
| 58 CRWWebViewProxyType GetWebViewProxy() const override; | 58 CRWWebViewProxyType GetWebViewProxy() const override; |
| 59 bool IsShowingWebInterstitial() const override; | 59 bool IsShowingWebInterstitial() const override; |
| 60 WebInterstitial* GetWebInterstitial() const override; | 60 WebInterstitial* GetWebInterstitial() const override; |
| 61 void OnPasswordInputShownOnHttp() override {} |
| 61 | 62 |
| 62 void AddObserver(WebStateObserver* observer) override; | 63 void AddObserver(WebStateObserver* observer) override; |
| 63 | 64 |
| 64 void RemoveObserver(WebStateObserver* observer) override; | 65 void RemoveObserver(WebStateObserver* observer) override; |
| 65 | 66 |
| 66 void AddPolicyDecider(WebStatePolicyDecider* decider) override {} | 67 void AddPolicyDecider(WebStatePolicyDecider* decider) override {} |
| 67 void RemovePolicyDecider(WebStatePolicyDecider* decider) override {} | 68 void RemovePolicyDecider(WebStatePolicyDecider* decider) override {} |
| 68 int DownloadImage(const GURL& url, | 69 int DownloadImage(const GURL& url, |
| 69 bool is_favicon, | 70 bool is_favicon, |
| 70 uint32_t max_bitmap_size, | 71 uint32_t max_bitmap_size, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 89 std::string mime_type_; | 90 std::string mime_type_; |
| 90 std::string content_language_; | 91 std::string content_language_; |
| 91 | 92 |
| 92 // A list of observers notified when page state changes. Weak references. | 93 // A list of observers notified when page state changes. Weak references. |
| 93 base::ObserverList<WebStateObserver, true> observers_; | 94 base::ObserverList<WebStateObserver, true> observers_; |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace web | 97 } // namespace web |
| 97 | 98 |
| 98 #endif // IOS_WEB_PUBLIC_TEST_TEST_WEB_STATE_H_ | 99 #endif // IOS_WEB_PUBLIC_TEST_TEST_WEB_STATE_H_ |
| OLD | NEW |