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

Unified Diff: chrome/browser/net/cert_database_service_factory.h

Issue 419013003: Replace c/b/nss_context by a KeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added cert_database namespace. Created 6 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: chrome/browser/net/cert_database_service_factory.h
diff --git a/chrome/browser/chromeos/platform_keys/platform_keys_service_factory.h b/chrome/browser/net/cert_database_service_factory.h
similarity index 46%
copy from chrome/browser/chromeos/platform_keys/platform_keys_service_factory.h
copy to chrome/browser/net/cert_database_service_factory.h
index 26bbfcf8f0ed3a99270f56742c62c50621e11f3e..14a2f81de3d502d803085f9a5f1db214f3ae681b 100644
--- a/chrome/browser/chromeos/platform_keys/platform_keys_service_factory.h
+++ b/chrome/browser/net/cert_database_service_factory.h
@@ -2,46 +2,42 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_PLATFORM_KEYS_SERVICE_FACTORY_H_
-#define CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_PLATFORM_KEYS_SERVICE_FACTORY_H_
+#ifndef CHROME_BROWSER_NET_CERT_DATABASE_SERVICE_FACTORY_H_
+#define CHROME_BROWSER_NET_CERT_DATABASE_SERVICE_FACTORY_H_
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
#include "base/macros.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
template <typename T>
struct DefaultSingletonTraits;
-class Profile;
+namespace cert_database {
-namespace chromeos {
+class CertDatabaseService;
-class PlatformKeysService;
-
-// Factory to create PlatformKeysService.
-class PlatformKeysServiceFactory : public BrowserContextKeyedServiceFactory {
+class CertDatabaseServiceFactory : public BrowserContextKeyedServiceFactory {
public:
- static PlatformKeysService* GetForBrowserContext(
+ static CertDatabaseService* GetForBrowserContext(
content::BrowserContext* context);
- static PlatformKeysServiceFactory* GetInstance();
+ static CertDatabaseServiceFactory* GetInstance();
private:
- friend struct DefaultSingletonTraits<PlatformKeysServiceFactory>;
+ friend struct DefaultSingletonTraits<CertDatabaseServiceFactory>;
- PlatformKeysServiceFactory();
- virtual ~PlatformKeysServiceFactory();
+ CertDatabaseServiceFactory();
+ virtual ~CertDatabaseServiceFactory();
// BrowserContextKeyedServiceFactory:
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const override;
+ virtual bool ServiceIsCreatedWithBrowserContext() const override;
virtual KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const override;
- DISALLOW_COPY_AND_ASSIGN(PlatformKeysServiceFactory);
+ DISALLOW_COPY_AND_ASSIGN(CertDatabaseServiceFactory);
};
-} // namespace chromeos
+} // namespace cert_database
-#endif // CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_PLATFORM_KEYS_SERVICE_FACTORY_H_
+#endif // CHROME_BROWSER_NET_CERT_DATABASE_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698