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

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

Issue 1851003003: [ios] Added web// public API to let embedder observe loading progress. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compilation Created 4 years, 8 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/ios_web_unittests.gyp ('k') | ios/web/public/test/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_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>
11 11
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "ios/web/public/web_state/url_verification_constants.h" 13 #include "ios/web/public/web_state/url_verification_constants.h"
14 #include "ios/web/public/web_state/web_state.h" 14 #include "ios/web/public/web_state/web_state.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 namespace web { 17 namespace web {
18 18
19 // Minimal implementation of WebState, to be used in tests. 19 // Minimal implementation of WebState, to be used in tests.
20 class TestWebState : public WebState { 20 class TestWebState : public WebState {
21 public: 21 public:
22 TestWebState(); 22 TestWebState();
23 ~TestWebState() override; 23 ~TestWebState() override;
24 24
25 // WebState implementation. 25 // WebState implementation.
26 UIView* GetView() override; 26 UIView* GetView() override;
27 WebStateDelegate* GetDelegate() override;
28 void SetDelegate(WebStateDelegate* delegate) override;
27 BrowserState* GetBrowserState() const override; 29 BrowserState* GetBrowserState() const override;
28 void OpenURL(const OpenURLParams& params) override {} 30 void OpenURL(const OpenURLParams& params) override {}
29 NavigationManager* GetNavigationManager() override; 31 NavigationManager* GetNavigationManager() override;
30 CRWJSInjectionReceiver* GetJSInjectionReceiver() const override; 32 CRWJSInjectionReceiver* GetJSInjectionReceiver() const override;
31 const std::string& GetContentsMimeType() const override; 33 const std::string& GetContentsMimeType() const override;
32 const std::string& GetContentLanguageHeader() const override; 34 const std::string& GetContentLanguageHeader() const override;
33 bool ContentIsHTML() const override; 35 bool ContentIsHTML() const override;
34 const base::string16& GetTitle() const override; 36 const base::string16& GetTitle() const override;
35 bool IsLoading() const override; 37 bool IsLoading() const override;
36 bool IsBeingDestroyed() const override; 38 bool IsBeingDestroyed() const override;
(...skipping 30 matching lines...) Expand all
67 base::string16 title_; 69 base::string16 title_;
68 URLVerificationTrustLevel trust_level_; 70 URLVerificationTrustLevel trust_level_;
69 bool content_is_html_; 71 bool content_is_html_;
70 std::string mime_type_; 72 std::string mime_type_;
71 std::string content_language_; 73 std::string content_language_;
72 }; 74 };
73 75
74 } // namespace web 76 } // namespace web
75 77
76 #endif // IOS_WEB_PUBLIC_TEST_TEST_WEB_STATE_H_ 78 #endif // IOS_WEB_PUBLIC_TEST_TEST_WEB_STATE_H_
OLDNEW
« no previous file with comments | « ios/web/ios_web_unittests.gyp ('k') | ios/web/public/test/test_web_state.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698