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

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

Issue 2755823002: Moved |openedByDOM| to WebState's CreateParams and public interface. (Closed)
Patch Set: . Created 3 years, 9 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
« no previous file with comments | « ios/web/public/crw_session_storage.mm ('k') | ios/web/public/test/fakes/test_web_state.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 service_manager::InterfaceRegistry* GetMojoInterfaceRegistry() override; 73 service_manager::InterfaceRegistry* GetMojoInterfaceRegistry() override;
74 bool HasOpener() const override;
74 base::WeakPtr<WebState> AsWeakPtr() override; 75 base::WeakPtr<WebState> AsWeakPtr() override;
75 76
76 // Setters for test data. 77 // Setters for test data.
77 void SetBrowserState(BrowserState* browser_state); 78 void SetBrowserState(BrowserState* browser_state);
78 void SetContentIsHTML(bool content_is_html); 79 void SetContentIsHTML(bool content_is_html);
79 void SetLoading(bool is_loading); 80 void SetLoading(bool is_loading);
80 void SetCurrentURL(const GURL& url); 81 void SetCurrentURL(const GURL& url);
81 void SetTrustLevel(URLVerificationTrustLevel trust_level); 82 void SetTrustLevel(URLVerificationTrustLevel trust_level);
82 void SetNavigationManager( 83 void SetNavigationManager(
83 std::unique_ptr<NavigationManager> navigation_manager); 84 std::unique_ptr<NavigationManager> navigation_manager);
(...skipping 16 matching lines...) Expand all
100 std::unique_ptr<NavigationManager> navigation_manager_; 101 std::unique_ptr<NavigationManager> navigation_manager_;
101 base::scoped_nsobject<UIView> view_; 102 base::scoped_nsobject<UIView> view_;
102 103
103 // A list of observers notified when page state changes. Weak references. 104 // A list of observers notified when page state changes. Weak references.
104 base::ObserverList<WebStateObserver, true> observers_; 105 base::ObserverList<WebStateObserver, true> observers_;
105 }; 106 };
106 107
107 } // namespace web 108 } // namespace web
108 109
109 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_H_ 110 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_H_
OLDNEW
« no previous file with comments | « ios/web/public/crw_session_storage.mm ('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