Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: ios/web/public/test/fakes/test_web_state.h

Issue 2677993002: Use IOSImageDataFetcherWrapper for favicon (Closed)
Patch Set: Actually adding the header Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 WebInterstitial* GetWebInterstitial() const override; 63 WebInterstitial* GetWebInterstitial() const override;
64 void OnPasswordInputShownOnHttp() override {} 64 void OnPasswordInputShownOnHttp() override {}
65 void OnCreditCardInputShownOnHttp() override {} 65 void OnCreditCardInputShownOnHttp() override {}
66 66
67 void AddObserver(WebStateObserver* observer) override; 67 void AddObserver(WebStateObserver* observer) override;
68 68
69 void RemoveObserver(WebStateObserver* observer) override; 69 void RemoveObserver(WebStateObserver* observer) override;
70 70
71 void AddPolicyDecider(WebStatePolicyDecider* decider) override {} 71 void AddPolicyDecider(WebStatePolicyDecider* decider) override {}
72 void RemovePolicyDecider(WebStatePolicyDecider* decider) override {} 72 void RemovePolicyDecider(WebStatePolicyDecider* decider) override {}
73 int DownloadImage(const GURL& url,
74 bool is_favicon,
75 uint32_t max_bitmap_size,
76 bool bypass_cache,
77 const ImageDownloadCallback& callback) override;
78 service_manager::InterfaceRegistry* GetMojoInterfaceRegistry() override; 73 service_manager::InterfaceRegistry* GetMojoInterfaceRegistry() override;
79 base::WeakPtr<WebState> AsWeakPtr() override; 74 base::WeakPtr<WebState> AsWeakPtr() override;
80 75
81 // Setters for test data. 76 // Setters for test data.
82 void SetContentIsHTML(bool content_is_html); 77 void SetContentIsHTML(bool content_is_html);
83 void SetLoading(bool is_loading); 78 void SetLoading(bool is_loading);
84 void SetCurrentURL(const GURL& url); 79 void SetCurrentURL(const GURL& url);
85 void SetTrustLevel(URLVerificationTrustLevel trust_level); 80 void SetTrustLevel(URLVerificationTrustLevel trust_level);
86 void SetNavigationManager( 81 void SetNavigationManager(
87 std::unique_ptr<NavigationManager> navigation_manager); 82 std::unique_ptr<NavigationManager> navigation_manager);
(...skipping 15 matching lines...) Expand all
103 std::unique_ptr<NavigationManager> navigation_manager_; 98 std::unique_ptr<NavigationManager> navigation_manager_;
104 base::scoped_nsobject<UIView> view_; 99 base::scoped_nsobject<UIView> view_;
105 100
106 // A list of observers notified when page state changes. Weak references. 101 // A list of observers notified when page state changes. Weak references.
107 base::ObserverList<WebStateObserver, true> observers_; 102 base::ObserverList<WebStateObserver, true> observers_;
108 }; 103 };
109 104
110 } // namespace web 105 } // namespace web
111 106
112 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_H_ 107 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_H_
OLDNEW
« no previous file with comments | « components/image_fetcher/request_metadata_unittest.cc ('k') | ios/web/public/test/fakes/test_web_state.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698