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/content/extended_info_handler.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 : public sessions::ExtendedInfoHandler { |
| 16 public: |
| 17 // Creates and registers a single instance. |
| 18 static void Register(); |
| 19 |
| 20 OfflinePageInfoHandler(); |
| 21 ~OfflinePageInfoHandler() override; |
| 22 |
| 23 // ExtendedInfoHandler: |
| 24 std::string GetExtendedInfo( |
| 25 const content::NavigationEntry& entry) const override; |
| 26 void RestoreExtendedInfo( |
| 27 const std::string& info, content::NavigationEntry* entry) override; |
| 28 }; |
| 29 |
| 30 } // namespace offline_pages |
| 31 |
| 32 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_INFO_HANDLER_H_ |
OLD | NEW |