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

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

Issue 2642463002: Implemented FormResubmissionTabHelper. (Closed)
Patch Set: Moved FormResubmissionTabHelper::CreateForWebState to init Created 3 years, 11 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void SetContentIsHTML(bool content_is_html); 80 void SetContentIsHTML(bool content_is_html);
81 void SetLoading(bool is_loading); 81 void SetLoading(bool is_loading);
82 void SetCurrentURL(const GURL& url); 82 void SetCurrentURL(const GURL& url);
83 void SetTrustLevel(URLVerificationTrustLevel trust_level); 83 void SetTrustLevel(URLVerificationTrustLevel trust_level);
84 void SetNavigationManager( 84 void SetNavigationManager(
85 std::unique_ptr<NavigationManager> navigation_manager); 85 std::unique_ptr<NavigationManager> navigation_manager);
86 void SetView(UIView* view); 86 void SetView(UIView* view);
87 87
88 // Notifier for tests. 88 // Notifier for tests.
89 void OnPageLoaded(PageLoadCompletionStatus load_completion_status); 89 void OnPageLoaded(PageLoadCompletionStatus load_completion_status);
90 void OnProvisionalNavigationStarted(const GURL& url);
90 91
91 private: 92 private:
92 bool web_usage_enabled_; 93 bool web_usage_enabled_;
93 bool is_loading_; 94 bool is_loading_;
94 GURL url_; 95 GURL url_;
95 base::string16 title_; 96 base::string16 title_;
96 URLVerificationTrustLevel trust_level_; 97 URLVerificationTrustLevel trust_level_;
97 bool content_is_html_; 98 bool content_is_html_;
98 std::string mime_type_; 99 std::string mime_type_;
99 std::string content_language_; 100 std::string content_language_;
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

Powered by Google App Engine
This is Rietveld 408576698