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

Unified Diff: components/offline_pages/background/prerenderer_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, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/background/prerenderer_offliner_factory.h
diff --git a/components/offline_pages/background/prerenderer_offliner_factory.h b/components/offline_pages/background/prerenderer_offliner_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..352b9e62eadd8ec9797608b7fa646ed441785eec
--- /dev/null
+++ b/components/offline_pages/background/prerenderer_offliner_factory.h
@@ -0,0 +1,41 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_PRERENDERER_OFFLINER_FACTORY_H_
+#define COMPONENTS_OFFLINE_PAGES_BACKGROUND_PRERENDERER_OFFLINER_FACTORY_H_
+
+#include "base/macros.h"
+#include "components/offline_pages/background/offliner.h"
+#include "components/offline_pages/background/offliner_factory.h"
+#include "components/offline_pages/background/prerenderer_offliner.h"
+
+namespace base {
+template <typename T>
+struct DefaultSingletonTraits;
+} // namespace base
+
+namespace offline_pages {
+
+class OfflinerPolicy;
+class PrerendererOffliner;
+
+// A factory to create one unique OfflinePageModel.
+class PrerendererOfflinerFactory : public OfflinerFactory {
fgorski 2016/04/29 04:16:46 This should be in the c/b/a/op/ with the prerender
+ public:
+ PrerendererOffliner* GetInstance(OfflinerPolicy* policy) override;
fgorski 2016/04/29 04:16:46 Are you going for a model, where offliners are goi
+
+ PrerendererOfflinerFactory();
+ ~PrerendererOfflinerFactory() override;
+
+ private:
+ friend struct base::DefaultSingletonTraits<PrerendererOfflinerFactory>;
+
+ DISALLOW_COPY_AND_ASSIGN(PrerendererOfflinerFactory);
+
+ PrerendererOffliner* offliner_;
+};
+
+} // namespace offline_pages
+
+#endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_PRERENDERER_OFFLINER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698