| 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_FAKES_TEST_WEB_STATE_H_ | 5 #ifndef IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_H_ |
| 6 #define IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_H_ | 6 #define IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 GURL GetCurrentURL(URLVerificationTrustLevel* trust_level) const override; | 54 GURL GetCurrentURL(URLVerificationTrustLevel* trust_level) const override; |
| 55 void ShowTransientContentView(CRWContentView* content_view) override {} | 55 void ShowTransientContentView(CRWContentView* content_view) override {} |
| 56 void AddScriptCommandCallback(const ScriptCommandCallback& callback, | 56 void AddScriptCommandCallback(const ScriptCommandCallback& callback, |
| 57 const std::string& command_prefix) override {} | 57 const std::string& command_prefix) override {} |
| 58 void RemoveScriptCommandCallback(const std::string& command_prefix) override { | 58 void RemoveScriptCommandCallback(const std::string& command_prefix) override { |
| 59 } | 59 } |
| 60 CRWWebViewProxyType GetWebViewProxy() const override; | 60 CRWWebViewProxyType GetWebViewProxy() const override; |
| 61 bool IsShowingWebInterstitial() const override; | 61 bool IsShowingWebInterstitial() const override; |
| 62 WebInterstitial* GetWebInterstitial() const override; | 62 WebInterstitial* GetWebInterstitial() const override; |
| 63 void OnPasswordInputShownOnHttp() override {} | 63 void OnPasswordInputShownOnHttp() override {} |
| 64 void OnCreditCardInputShownOnHttp() override {} |
| 64 | 65 |
| 65 void AddObserver(WebStateObserver* observer) override; | 66 void AddObserver(WebStateObserver* observer) override; |
| 66 | 67 |
| 67 void RemoveObserver(WebStateObserver* observer) override; | 68 void RemoveObserver(WebStateObserver* observer) override; |
| 68 | 69 |
| 69 void AddPolicyDecider(WebStatePolicyDecider* decider) override {} | 70 void AddPolicyDecider(WebStatePolicyDecider* decider) override {} |
| 70 void RemovePolicyDecider(WebStatePolicyDecider* decider) override {} | 71 void RemovePolicyDecider(WebStatePolicyDecider* decider) override {} |
| 71 int DownloadImage(const GURL& url, | 72 int DownloadImage(const GURL& url, |
| 72 bool is_favicon, | 73 bool is_favicon, |
| 73 uint32_t max_bitmap_size, | 74 uint32_t max_bitmap_size, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 101 std::unique_ptr<NavigationManager> navigation_manager_; | 102 std::unique_ptr<NavigationManager> navigation_manager_; |
| 102 base::scoped_nsobject<UIView> view_; | 103 base::scoped_nsobject<UIView> view_; |
| 103 | 104 |
| 104 // A list of observers notified when page state changes. Weak references. | 105 // A list of observers notified when page state changes. Weak references. |
| 105 base::ObserverList<WebStateObserver, true> observers_; | 106 base::ObserverList<WebStateObserver, true> observers_; |
| 106 }; | 107 }; |
| 107 | 108 |
| 108 } // namespace web | 109 } // namespace web |
| 109 | 110 |
| 110 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_H_ | 111 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_H_ |
| OLD | NEW |