OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
fgorski
2016/04/29 04:16:46
2016
Pete Williamson
2016/05/02 20:51:14
Done.
| |
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_OFFLINER_FACTORY_H_ | |
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_FACTORY_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "components/offline_pages/background/offliner_factory.h" | |
fgorski
2016/04/29 04:16:46
I think you are trying to include this file.
Pete Williamson
2016/05/02 20:51:14
Done.
| |
10 | |
11 namespace base { | |
12 template <typename T> | |
13 struct DefaultSingletonTraits; | |
fgorski
2016/04/29 04:16:46
Why is this included?
Pete Williamson
2016/05/02 20:51:14
Leftover from cut-and-paste. Removed.
| |
14 } // namespace base | |
15 | |
16 namespace offline_pages { | |
17 | |
18 class OfflinerPolicy; | |
19 class Offliner; | |
20 | |
21 // A factory to create one unique OfflinePageModel. | |
fgorski
2016/04/29 04:16:46
update to refer to the right class.
Explain the o
Pete Williamson
2016/05/02 20:51:14
Updated. I chose not to return a unique_ptr since
| |
22 class OfflinerFactory { | |
23 public: | |
24 virtual Offliner* GetInstance(OfflinerPolicy* policy); | |
fgorski
2016/04/29 04:16:46
GetInstance sounds more like a singleton. Did you
Pete Williamson
2016/05/02 20:51:14
Changed to GetOffliner.
I didn't want to make a c
| |
25 | |
26 OfflinerFactory() {} | |
27 virtual ~OfflinerFactory() {} | |
28 | |
29 private: | |
30 DISALLOW_COPY_AND_ASSIGN(OfflinerFactory); | |
31 }; | |
32 | |
33 } // namespace offline_pages | |
34 | |
35 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_FACTORY_H_ | |
OLD | NEW |