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

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

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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_TEST_WEB_STATE_H_ 5 #ifndef IOS_WEB_PUBLIC_TEST_TEST_WEB_STATE_H_
6 #define IOS_WEB_PUBLIC_TEST_TEST_WEB_STATE_H_ 6 #define IOS_WEB_PUBLIC_TEST_TEST_WEB_STATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 WebInterstitial* GetWebInterstitial() const override; 58 WebInterstitial* GetWebInterstitial() const override;
59 void AddObserver(WebStateObserver* observer) override {} 59 void AddObserver(WebStateObserver* observer) override {}
60 void RemoveObserver(WebStateObserver* observer) override {} 60 void RemoveObserver(WebStateObserver* observer) override {}
61 void AddPolicyDecider(WebStatePolicyDecider* decider) override {} 61 void AddPolicyDecider(WebStatePolicyDecider* decider) override {}
62 void RemovePolicyDecider(WebStatePolicyDecider* decider) override {} 62 void RemovePolicyDecider(WebStatePolicyDecider* decider) override {}
63 int DownloadImage(const GURL& url, 63 int DownloadImage(const GURL& url,
64 bool is_favicon, 64 bool is_favicon,
65 uint32_t max_bitmap_size, 65 uint32_t max_bitmap_size,
66 bool bypass_cache, 66 bool bypass_cache,
67 const ImageDownloadCallback& callback) override; 67 const ImageDownloadCallback& callback) override;
68 shell::InterfaceRegistry* GetMojoInterfaceRegistry() override; 68 service_manager::InterfaceRegistry* GetMojoInterfaceRegistry() override;
69 base::WeakPtr<WebState> AsWeakPtr() override; 69 base::WeakPtr<WebState> AsWeakPtr() override;
70 70
71 // Setters for test data. 71 // Setters for test data.
72 void SetContentIsHTML(bool content_is_html); 72 void SetContentIsHTML(bool content_is_html);
73 void SetLoading(bool is_loading); 73 void SetLoading(bool is_loading);
74 void SetCurrentURL(const GURL& url); 74 void SetCurrentURL(const GURL& url);
75 void SetTrustLevel(URLVerificationTrustLevel trust_level); 75 void SetTrustLevel(URLVerificationTrustLevel trust_level);
76 76
77 private: 77 private:
78 bool web_usage_enabled_; 78 bool web_usage_enabled_;
79 bool is_loading_; 79 bool is_loading_;
80 GURL url_; 80 GURL url_;
81 base::string16 title_; 81 base::string16 title_;
82 URLVerificationTrustLevel trust_level_; 82 URLVerificationTrustLevel trust_level_;
83 bool content_is_html_; 83 bool content_is_html_;
84 std::string mime_type_; 84 std::string mime_type_;
85 std::string content_language_; 85 std::string content_language_;
86 }; 86 };
87 87
88 } // namespace web 88 } // namespace web
89 89
90 #endif // IOS_WEB_PUBLIC_TEST_TEST_WEB_STATE_H_ 90 #endif // IOS_WEB_PUBLIC_TEST_TEST_WEB_STATE_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/webui/mojo_web_ui_ios_controller.h ('k') | ios/web/public/test/test_web_state.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698