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

Side by Side Diff: chrome/browser/android/offline_pages/prerendering_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 CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_OFFLINER_FACTORY_H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_OFFLINER_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/android/offline_pages/prerendering_offliner.h"
fgorski 2016/05/03 22:48:08 this is forward declared below
Pete Williamson 2016/05/04 00:39:21 Done.
10 #include "components/offline_pages/background/offliner.h"
fgorski 2016/05/03 22:48:16 is this needed?
Pete Williamson 2016/05/04 00:39:21 Done.
11 #include "components/offline_pages/background/offliner_factory.h"
12 #include "content/public/browser/browser_context.h"
fgorski 2016/05/03 22:48:16 forward declare
Pete Williamson 2016/05/04 00:39:21 Done.
13
14 namespace base {
15 template <typename T>
16 struct DefaultSingletonTraits;
fgorski 2016/05/03 22:48:08 remove, I don't think you will need a singleton fo
Pete Williamson 2016/05/04 00:39:21 Done.
17 } // namespace base
18
19 namespace offline_pages {
20
21 class OfflinerPolicy;
22 class PrerenderingOffliner;
23
24 // A factory to create one unique OfflinePageModel.
dougarnett 2016/05/03 22:30:44 update comment
Pete Williamson 2016/05/04 00:39:21 Done.
25 class PrerenderingOfflinerFactory : public OfflinerFactory {
26 public:
27 PrerenderingOffliner* GetOffliner(const OfflinerPolicy* policy) override;
fgorski 2016/05/03 22:48:08 did you consider create/make? also, ctor and dtor
Pete Williamson 2016/05/04 00:39:21 ctor and dtor moved. I did consider make, but we
fgorski 2016/05/04 05:20:57 Acknowledged.
28
29 explicit PrerenderingOfflinerFactory(content::BrowserContext* context);
30 ~PrerenderingOfflinerFactory() override;
31
32 private:
33 // TODO: Do I still need a singleton?
34 // friend struct base::DefaultSingletonTraits<PrerenderingOfflinerFactory>;
fgorski 2016/05/03 22:48:16 remove this part as well.
Pete Williamson 2016/05/04 00:39:20 Done.
35
36 DISALLOW_COPY_AND_ASSIGN(PrerenderingOfflinerFactory);
fgorski 2016/05/03 22:48:08 this goes last
Pete Williamson 2016/05/04 00:39:21 Done.
37
38 PrerenderingOffliner* offliner_;
fgorski 2016/05/03 22:48:16 document ownership
Pete Williamson 2016/05/04 00:39:21 Done.
39 content::BrowserContext* context_;
fgorski 2016/05/03 22:48:08 document ownership
Pete Williamson 2016/05/04 00:39:21 Done.
40 };
41
42 } // namespace offline_pages
43
44 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_OFFLINER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698