Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |