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

Side by Side Diff: chrome/browser/android/offline_pages/offline_page_info_handler.h

Issue 2310363002: Persist offline page info in a navigation entry if needed (Closed)
Patch Set: Add extended info support Created 4 years, 2 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698