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

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

Issue 2544533003: [OfflinePages] Hook the background loader offliner to the request coordinator based on finch flag s… (Closed)
Patch Set: sort includes Created 4 years 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_BACKGROUND_LOADER_OFFLINER_FACTORY_ H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_BACKGROUND_LOADER_OFFLINER_FACTORY_ H_
7
8 #include "base/macros.h"
9 #include "components/offline_pages/core/background/offliner_factory.h"
10
11 namespace content {
12 class BrowserContext;
13 } // namespace content
14
15 namespace offline_pages {
16
17 class OfflinerPolicy;
18 class Offliner;
19 class BackgroundLoaderOffliner;
20
21 class BackgroundLoaderOfflinerFactory : public OfflinerFactory {
22 public:
23 explicit BackgroundLoaderOfflinerFactory(content::BrowserContext* context);
24 ~BackgroundLoaderOfflinerFactory() override;
25
26 Offliner* GetOffliner(const OfflinerPolicy* policy) override;
27
28 private:
29 // Offliner owned by the factory.
30 BackgroundLoaderOffliner* offliner_;
Dmitry Titov 2016/12/17 02:55:20 Please take a look at my comment on Pete's patch t
chili 2016/12/21 18:01:48 Per discussion, will resolve this in followup
31
32 // Unowned pointer, expected to stay valid for the lifetime of the factory.
33 content::BrowserContext* context_;
34
35 DISALLOW_COPY_AND_ASSIGN(BackgroundLoaderOfflinerFactory);
36 };
37
38 } // namespace offline_pages
39
40 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_BACKGROUND_LOADER_OFFLINER_FACTOR Y_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698