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

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

Issue 2669123003: iOS: Mark HTTP pages with credit card fields with an omnibox icon. (Closed)
Patch Set: Add CRWWebController test. 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 GURL GetCurrentURL(URLVerificationTrustLevel* trust_level) const override; 55 GURL GetCurrentURL(URLVerificationTrustLevel* trust_level) const override;
56 void ShowTransientContentView(CRWContentView* content_view) override {} 56 void ShowTransientContentView(CRWContentView* content_view) override {}
57 void AddScriptCommandCallback(const ScriptCommandCallback& callback, 57 void AddScriptCommandCallback(const ScriptCommandCallback& callback,
58 const std::string& command_prefix) override {} 58 const std::string& command_prefix) override {}
59 void RemoveScriptCommandCallback(const std::string& command_prefix) override { 59 void RemoveScriptCommandCallback(const std::string& command_prefix) override {
60 } 60 }
61 CRWWebViewProxyType GetWebViewProxy() const override; 61 CRWWebViewProxyType GetWebViewProxy() const override;
62 bool IsShowingWebInterstitial() const override; 62 bool IsShowingWebInterstitial() const override;
63 WebInterstitial* GetWebInterstitial() const override; 63 WebInterstitial* GetWebInterstitial() const override;
64 void OnPasswordInputShownOnHttp() override {} 64 void OnPasswordInputShownOnHttp() override {}
65 void OnCreditCardInputShownOnHttp() override {}
65 66
66 void AddObserver(WebStateObserver* observer) override; 67 void AddObserver(WebStateObserver* observer) override;
67 68
68 void RemoveObserver(WebStateObserver* observer) override; 69 void RemoveObserver(WebStateObserver* observer) override;
69 70
70 void AddPolicyDecider(WebStatePolicyDecider* decider) override {} 71 void AddPolicyDecider(WebStatePolicyDecider* decider) override {}
71 void RemovePolicyDecider(WebStatePolicyDecider* decider) override {} 72 void RemovePolicyDecider(WebStatePolicyDecider* decider) override {}
72 int DownloadImage(const GURL& url, 73 int DownloadImage(const GURL& url,
73 bool is_favicon, 74 bool is_favicon,
74 uint32_t max_bitmap_size, 75 uint32_t max_bitmap_size,
(...skipping 27 matching lines...) Expand all
102 std::unique_ptr<NavigationManager> navigation_manager_; 103 std::unique_ptr<NavigationManager> navigation_manager_;
103 base::scoped_nsobject<UIView> view_; 104 base::scoped_nsobject<UIView> view_;
104 105
105 // A list of observers notified when page state changes. Weak references. 106 // A list of observers notified when page state changes. Weak references.
106 base::ObserverList<WebStateObserver, true> observers_; 107 base::ObserverList<WebStateObserver, true> observers_;
107 }; 108 };
108 109
109 } // namespace web 110 } // namespace web
110 111
111 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_H_ 112 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698