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

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: Fix win compiling error due to using unique_ptr map in SESSIONS_EXPORT class 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/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(const std::string& info,
27 content::NavigationEntry* entry) override;
28 };
29
30 } // namespace offline_pages
31
32 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_OFFLINE_PAGE_INFO_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/offline_pages/offline_page_info_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698