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

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: cleanup 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 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 COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_FACTORY_H_
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_FACTORY_H_
7
8 #include "base/macros.h"
9
10 namespace offline_pages {
11
12 class OfflinerPolicy;
13 class Offliner;
14
15 // An interface to a factory which can create a background offliner.
16 // The returned factory is owned by the offliner, which is allowed to cache the
17 // factory and return it again later.
18 class OfflinerFactory {
19 public:
20 virtual Offliner* GetOffliner(const OfflinerPolicy* policy);
dougarnett 2016/05/03 22:30:44 ... = 0; ?
Pete Williamson 2016/05/04 00:39:21 Done.
21
22 OfflinerFactory() {}
fgorski 2016/05/03 22:48:16 ctor and dtor should be above methods.
Pete Williamson 2016/05/04 00:39:21 Done.
23 virtual ~OfflinerFactory() {}
24
25 private:
26 DISALLOW_COPY_AND_ASSIGN(OfflinerFactory);
27 };
28
29 } // namespace offline_pages
30
31 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698