Index: chrome/browser/net/cert_database_service_factory.h |
diff --git a/chrome/browser/history/chrome_history_client_factory.h b/chrome/browser/net/cert_database_service_factory.h |
similarity index 45% |
copy from chrome/browser/history/chrome_history_client_factory.h |
copy to chrome/browser/net/cert_database_service_factory.h |
index 892f8de412ddb7154b3c2d086584644115dd951c..b7692b50e11d92c6a1a90bd41e242145a79725ae 100644 |
--- a/chrome/browser/history/chrome_history_client_factory.h |
+++ b/chrome/browser/net/cert_database_service_factory.h |
@@ -2,37 +2,40 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CHROME_BROWSER_HISTORY_CHROME_HISTORY_CLIENT_FACTORY_H_ |
-#define CHROME_BROWSER_HISTORY_CHROME_HISTORY_CLIENT_FACTORY_H_ |
+#ifndef CHROME_BROWSER_NET_CERT_DATABASE_SERVICE_FACTORY_H_ |
+#define CHROME_BROWSER_NET_CERT_DATABASE_SERVICE_FACTORY_H_ |
+#include "base/memory/scoped_ptr.h" |
#include "components/keyed_service/content/browser_context_keyed_service_factory.h" |
template <typename T> |
struct DefaultSingletonTraits; |
-class ChromeHistoryClient; |
+class CertDatabaseService; |
+class CertDatabaseServiceIOPart; |
class Profile; |
-// Singleton that owns all ChromeHistoryClients and associates them with |
-// Profiles. |
-class ChromeHistoryClientFactory : public BrowserContextKeyedServiceFactory { |
+class CertDatabaseServiceFactory : public BrowserContextKeyedServiceFactory { |
public: |
- static ChromeHistoryClient* GetForProfile(Profile* profile); |
+ static CertDatabaseService* GetForBrowserContext( |
+ content::BrowserContext* context); |
- static ChromeHistoryClientFactory* GetInstance(); |
+ static CertDatabaseServiceFactory* GetInstance(); |
private: |
- friend struct DefaultSingletonTraits<ChromeHistoryClientFactory>; |
+ friend struct DefaultSingletonTraits<CertDatabaseServiceFactory>; |
- ChromeHistoryClientFactory(); |
- virtual ~ChromeHistoryClientFactory(); |
+ CertDatabaseServiceFactory(); |
+ virtual ~CertDatabaseServiceFactory(); |
// BrowserContextKeyedServiceFactory: |
- virtual KeyedService* BuildServiceInstanceFor( |
- content::BrowserContext* context) const OVERRIDE; |
virtual content::BrowserContext* GetBrowserContextToUse( |
content::BrowserContext* context) const OVERRIDE; |
- virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; |
+ virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE; |
+ virtual KeyedService* BuildServiceInstanceFor( |
+ content::BrowserContext* context) const OVERRIDE; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(CertDatabaseServiceFactory); |
}; |
-#endif // CHROME_BROWSER_HISTORY_CHROME_HISTORY_CLIENT_FACTORY_H_ |
+#endif // CHROME_BROWSER_NET_CERT_DATABASE_SERVICE_FACTORY_H_ |