OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_PAGE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_PAGE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_PAGE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_PAGE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 protected: | 50 protected: |
51 virtual ~OfflineLoadPage(); | 51 virtual ~OfflineLoadPage(); |
52 | 52 |
53 // Overridden by tests. | 53 // Overridden by tests. |
54 virtual void NotifyBlockingPageComplete(bool proceed); | 54 virtual void NotifyBlockingPageComplete(bool proceed); |
55 | 55 |
56 private: | 56 private: |
57 friend class TestOfflineLoadPage; | 57 friend class TestOfflineLoadPage; |
58 | 58 |
59 // InterstitialPageDelegate implementation. | 59 // InterstitialPageDelegate implementation. |
60 virtual std::string GetHTMLContents() OVERRIDE; | 60 virtual std::string GetHTMLContents() override; |
61 virtual void CommandReceived(const std::string& command) OVERRIDE; | 61 virtual void CommandReceived(const std::string& command) override; |
62 virtual void OverrideRendererPrefs( | 62 virtual void OverrideRendererPrefs( |
63 content::RendererPreferences* prefs) OVERRIDE; | 63 content::RendererPreferences* prefs) override; |
64 virtual void OnProceed() OVERRIDE; | 64 virtual void OnProceed() override; |
65 virtual void OnDontProceed() OVERRIDE; | 65 virtual void OnDontProceed() override; |
66 | 66 |
67 // net::NetworkChangeNotifier::ConnectionTypeObserver overrides. | 67 // net::NetworkChangeNotifier::ConnectionTypeObserver overrides. |
68 virtual void OnConnectionTypeChanged( | 68 virtual void OnConnectionTypeChanged( |
69 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE; | 69 net::NetworkChangeNotifier::ConnectionType type) override; |
70 | 70 |
71 CompletionCallback callback_; | 71 CompletionCallback callback_; |
72 | 72 |
73 // True if the proceed is chosen. | 73 // True if the proceed is chosen. |
74 bool proceeded_; | 74 bool proceeded_; |
75 | 75 |
76 content::WebContents* web_contents_; | 76 content::WebContents* web_contents_; |
77 GURL url_; | 77 GURL url_; |
78 content::InterstitialPage* interstitial_page_; // Owns us. | 78 content::InterstitialPage* interstitial_page_; // Owns us. |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(OfflineLoadPage); | 80 DISALLOW_COPY_AND_ASSIGN(OfflineLoadPage); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace chromeos | 83 } // namespace chromeos |
84 | 84 |
85 #endif // CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_PAGE_H_ | 85 #endif // CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_PAGE_H_ |
OLD | NEW |