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

Unified Diff: components/reporting/content/browser/reporting_service_factory.h

Issue 2249213002: [OBSOLETE] Reporting: Initial implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ProfileImplIOData Created 4 years, 2 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/reporting/content/browser/reporting_service_factory.h
diff --git a/components/reporting/content/browser/reporting_service_factory.h b/components/reporting/content/browser/reporting_service_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..1be9ee313d9af37c2aaa1d7c91bf1b18f184b74e
--- /dev/null
+++ b/components/reporting/content/browser/reporting_service_factory.h
@@ -0,0 +1,42 @@
+// Copyright 2016 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_REPORTING_CONTENT_BROWSER_REPORTING_SERVICE_FACTORY_H_
+#define COMPONENTS_REPORTING_CONTENT_BROWSER_REPORTING_SERVICE_FACTORY_H_
+
+#include "base/macros.h"
+#include "base/memory/singleton.h"
+#include "components/keyed_service/content/browser_context_dependency_manager.h"
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
+#include "components/reporting/core/common/reporting_export.h"
+
+namespace reporting {
+
+class ReportingService;
+
+class REPORTING_EXPORT ReportingServiceFactory
+ : public BrowserContextKeyedServiceFactory {
+ public:
+ static ReportingService* GetForBrowserContext(
+ content::BrowserContext* context,
+ bool create);
+
+ static ReportingServiceFactory* GetInstance();
+
+ private:
+ friend struct base::DefaultSingletonTraits<ReportingServiceFactory>;
+
+ ReportingServiceFactory();
+ ~ReportingServiceFactory() override;
+
+ // BrowserContextKeyedServiceFactory:
+ KeyedService* BuildServiceInstanceFor(
+ content::BrowserContext* context) const override;
+
+ DISALLOW_COPY_AND_ASSIGN(ReportingServiceFactory);
+};
+
+} // namespace reporting
+
+#endif // COMPONENTS_REPORTING_CONTENT_BROWSER_REPORTING_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698