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

Unified 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, 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/offliner_factory.h
diff --git a/components/offline_pages/background/offliner_factory.h b/components/offline_pages/background/offliner_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..7cedf7c8cdda3c96da8b9ffaf9091e594dc7f0b4
--- /dev/null
+++ b/components/offline_pages/background/offliner_factory.h
@@ -0,0 +1,35 @@
+// 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.
+// 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_OFFLINER_FACTORY_H_
+#define COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_FACTORY_H_
+
+#include "base/macros.h"
+#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.
+
+namespace base {
+template <typename T>
+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.
+} // namespace base
+
+namespace offline_pages {
+
+class OfflinerPolicy;
+class Offliner;
+
+// 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
+class OfflinerFactory {
+ public:
+ 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
+
+ OfflinerFactory() {}
+ virtual ~OfflinerFactory() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(OfflinerFactory);
+};
+
+} // namespace offline_pages
+
+#endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698