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

Side by Side Diff: components/offline_pages/background/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.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698