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

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

Issue 1915983008: Adds shells of classes (PrerenderingOffliner and PrerenderingLoader) to intergrate from Background … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes for unused and override checks by trybots Created 4 years, 7 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_PRERENDERING_OFFLINER_H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_OFFLINER_H_
7
8 #include "chrome/browser/android/offline_pages/prerendering_loader.h"
9 #include "components/offline_pages/background/offliner.h"
10 #include "components/offline_pages/offline_page_model.h"
11
12 class PrerenderManager;
13
14 namespace content {
15 class WebContents;
16 } // namespace content
17
18 namespace offline_pages {
19
20 // An Offliner implementation that attempts client-side rendering and saving
21 // of an offline page. It uses the PrerenderingLoader to load the page and
22 // the OfflinePageModel to save it.
23 class PrerenderingOffliner : public Offliner {
24 public:
25 PrerenderingOffliner(PrerenderManager* prerender_manager,
26 OfflinePageModel* offline_page_model);
27 ~PrerenderingOffliner() override;
28
29 bool LoadAndSave(const SavePageRequest& request,
30 const CompletionCallback& callback) override;
31
32 void Cancel() override;
33
34 private:
35 std::unique_ptr<PrerenderingLoader> loader_;
36 };
37
38 } // namespace offline_pages
39
40 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_OFFLINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698