| 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_
|
|
|