OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_INFO_HANDLER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_INFO_HANDLER_H_ |
| 7 |
| 8 #include "components/sessions/core/serialized_navigation_driver.h" |
| 9 |
| 10 namespace offline_pages { |
| 11 |
| 12 // Used to parse the extra request header string that defines offline page |
| 13 // loading behaviors. |
| 14 // |
| 15 class OfflinePageInfoHandler : |
| 16 public sessions::SerializedNavigationDriver::ExtendedInfoHandler { |
| 17 public: |
| 18 // Creates and registers a single instance. |
| 19 static void Register(); |
| 20 |
| 21 OfflinePageInfoHandler(); |
| 22 ~OfflinePageInfoHandler() override; |
| 23 |
| 24 // ExtendedInfoHandler: |
| 25 std::string GetExtendedInfo( |
| 26 const content::NavigationEntry& entry) const override; |
| 27 void RestoreExtendedInfo( |
| 28 const std::string& info, content::NavigationEntry* entry) override; |
| 29 }; |
| 30 |
| 31 } // namespace offline_pages |
| 32 |
| 33 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_INFO_HANDLER_H_ |
OLD | NEW |