| Index: chrome/browser/net/cert_database_service_factory.h
|
| diff --git a/chrome/browser/enhanced_bookmarks/enhanced_bookmark_model_factory.h b/chrome/browser/net/cert_database_service_factory.h
|
| similarity index 43%
|
| copy from chrome/browser/enhanced_bookmarks/enhanced_bookmark_model_factory.h
|
| copy to chrome/browser/net/cert_database_service_factory.h
|
| index ed6f9dd68fc770b890032a586c7b29a2f5537c6b..30f7af623869a5809e14e5fd3f6b5e12251d5f48 100644
|
| --- a/chrome/browser/enhanced_bookmarks/enhanced_bookmark_model_factory.h
|
| +++ b/chrome/browser/net/cert_database_service_factory.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_MODEL_FACTORY_H_
|
| -#define CHROME_BROWSER_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_MODEL_FACTORY_H_
|
| +#ifndef CHROME_BROWSER_NET_CERT_DATABASE_SERVICE_FACTORY_H_
|
| +#define CHROME_BROWSER_NET_CERT_DATABASE_SERVICE_FACTORY_H_
|
|
|
| #include "base/macros.h"
|
| #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
|
| @@ -11,32 +11,33 @@
|
| template <typename T>
|
| struct DefaultSingletonTraits;
|
|
|
| -namespace enhanced_bookmarks {
|
| +namespace cert_database {
|
|
|
| -class EnhancedBookmarkModel;
|
| +class CertDatabaseService;
|
|
|
| -// A factory to create one unique EnhancedBookmarkModel.
|
| -class EnhancedBookmarkModelFactory : public BrowserContextKeyedServiceFactory {
|
| +class CertDatabaseServiceFactory : public BrowserContextKeyedServiceFactory {
|
| public:
|
| - static EnhancedBookmarkModelFactory* GetInstance();
|
| - static EnhancedBookmarkModel* GetForBrowserContext(
|
| + static CertDatabaseService* GetForBrowserContext(
|
| content::BrowserContext* context);
|
|
|
| - private:
|
| - friend struct DefaultSingletonTraits<EnhancedBookmarkModelFactory>;
|
| + static CertDatabaseServiceFactory* GetInstance();
|
|
|
| - EnhancedBookmarkModelFactory();
|
| - ~EnhancedBookmarkModelFactory() override {}
|
| + private:
|
| + friend struct DefaultSingletonTraits<CertDatabaseServiceFactory>;
|
|
|
| - KeyedService* BuildServiceInstanceFor(
|
| - content::BrowserContext* context) const override;
|
| + CertDatabaseServiceFactory();
|
| + ~CertDatabaseServiceFactory() override;
|
|
|
| + // BrowserContextKeyedServiceFactory:
|
| content::BrowserContext* GetBrowserContextToUse(
|
| content::BrowserContext* context) const override;
|
| + bool ServiceIsCreatedWithBrowserContext() const override;
|
| + KeyedService* BuildServiceInstanceFor(
|
| + content::BrowserContext* context) const override;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(EnhancedBookmarkModelFactory);
|
| + DISALLOW_COPY_AND_ASSIGN(CertDatabaseServiceFactory);
|
| };
|
|
|
| -} // namespace enhanced_bookmarks
|
| +} // namespace cert_database
|
|
|
| -#endif // CHROME_BROWSER_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_MODEL_FACTORY_H_
|
| +#endif // CHROME_BROWSER_NET_CERT_DATABASE_SERVICE_FACTORY_H_
|
|
|