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

Side by Side Diff: components/offline_pages/background/prerenderer_offliner_factory.h

Issue 1929223002: Add skeletons for the factories to create the request coordinator and (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Manual merge of changes in the base changelist. 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 2015 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 COMPONENTS_OFFLINE_PAGES_BACKGROUND_PRERENDERER_OFFLINER_FACTORY_H_
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_PRERENDERER_OFFLINER_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "components/offline_pages/background/offliner.h"
10 #include "components/offline_pages/background/offliner_factory.h"
11 #include "components/offline_pages/background/prerenderer_offliner.h"
12
13 namespace base {
14 template <typename T>
15 struct DefaultSingletonTraits;
16 } // namespace base
17
18 namespace offline_pages {
19
20 class OfflinerPolicy;
21 class PrerendererOffliner;
22
23 // A factory to create one unique OfflinePageModel.
24 class PrerendererOfflinerFactory : public OfflinerFactory {
fgorski 2016/04/29 04:16:46 This should be in the c/b/a/op/ with the prerender
25 public:
26 PrerendererOffliner* GetInstance(OfflinerPolicy* policy) override;
fgorski 2016/04/29 04:16:46 Are you going for a model, where offliners are goi
27
28 PrerendererOfflinerFactory();
29 ~PrerendererOfflinerFactory() override;
30
31 private:
32 friend struct base::DefaultSingletonTraits<PrerendererOfflinerFactory>;
33
34 DISALLOW_COPY_AND_ASSIGN(PrerendererOfflinerFactory);
35
36 PrerendererOffliner* offliner_;
37 };
38
39 } // namespace offline_pages
40
41 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_PRERENDERER_OFFLINER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698