| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } | 54 } |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 // ChromeInterstitialPage implementation. | 57 // ChromeInterstitialPage implementation. |
| 58 virtual std::string GetHTMLContents(); | 58 virtual std::string GetHTMLContents(); |
| 59 virtual void CommandReceived(const std::string& command); | 59 virtual void CommandReceived(const std::string& command); |
| 60 virtual void Proceed(); | 60 virtual void Proceed(); |
| 61 virtual void DontProceed(); | 61 virtual void DontProceed(); |
| 62 | 62 |
| 63 // Overrides ChromeInterstitialPage's Observe. | 63 // Overrides ChromeInterstitialPage's Observe. |
| 64 virtual void Observe(NotificationType type, | 64 virtual void Observe(int type, |
| 65 const NotificationSource& source, | 65 const NotificationSource& source, |
| 66 const NotificationDetails& details); | 66 const NotificationDetails& details); |
| 67 | 67 |
| 68 // Retrieves template strings of the offline page for app and | 68 // Retrieves template strings of the offline page for app and |
| 69 // normal site. | 69 // normal site. |
| 70 void GetAppOfflineStrings(const Extension* app, | 70 void GetAppOfflineStrings(const Extension* app, |
| 71 const string16& faield_url, | 71 const string16& faield_url, |
| 72 DictionaryValue* strings) const; | 72 DictionaryValue* strings) const; |
| 73 void GetNormalOfflineStrings(const string16& faield_url, | 73 void GetNormalOfflineStrings(const string16& faield_url, |
| 74 DictionaryValue* strings) const; | 74 DictionaryValue* strings) const; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 85 ScopedRunnableMethodFactory<OfflineLoadPage> method_factory_; | 85 ScopedRunnableMethodFactory<OfflineLoadPage> method_factory_; |
| 86 | 86 |
| 87 bool in_test_; | 87 bool in_test_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(OfflineLoadPage); | 89 DISALLOW_COPY_AND_ASSIGN(OfflineLoadPage); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace chromeos | 92 } // namespace chromeos |
| 93 | 93 |
| 94 #endif // CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_PAGE_H_ | 94 #endif // CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_PAGE_H_ |
| OLD | NEW |