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

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

Issue 419013003: Replace c/b/nss_context by a KeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Flattened components/cert_database folders. Created 6 years, 1 month 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
« no previous file with comments | « chrome/browser/net/cert_database_service_factory_linux.cc ('k') | chrome/browser/net/nss_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/nss_context.h
diff --git a/chrome/browser/net/nss_context.h b/chrome/browser/net/nss_context.h
deleted file mode 100644
index 8212ee14383be835be04d6482e098d3bd8b4604c..0000000000000000000000000000000000000000
--- a/chrome/browser/net/nss_context.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2013 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 CHROME_BROWSER_NET_NSS_CONTEXT_H_
-#define CHROME_BROWSER_NET_NSS_CONTEXT_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "base/compiler_specific.h"
-#include "crypto/scoped_nss_types.h"
-
-class Profile;
-
-namespace net {
-class NSSCertDatabase;
-}
-
-namespace content {
-class ResourceContext;
-} // namespace content
-
-// Returns a reference to the public slot for the user associated with
-// |context|. Should be called only on the IO thread.
-crypto::ScopedPK11Slot GetPublicNSSKeySlotForResourceContext(
- content::ResourceContext* context);
-
-// Returns a reference to the private slot for the user associated with
-// |context|, if it is loaded. If it is not loaded and |callback| is non-null,
-// the |callback| will be run once the slot is loaded.
-// Should be called only on the IO thread.
-crypto::ScopedPK11Slot GetPrivateNSSKeySlotForResourceContext(
- content::ResourceContext* context,
- const base::Callback<void(crypto::ScopedPK11Slot)>& callback)
- WARN_UNUSED_RESULT;
-
-// Returns a pointer to the NSSCertDatabase for the user associated with
-// |context|, if it is ready. If it is not ready and |callback| is non-null, the
-// |callback| will be run once the DB is initialized. Ownership is not
-// transferred, but the caller may save the pointer, which will remain valid for
-// the lifetime of the ResourceContext.
-// Must be called only on the IO thread.
-net::NSSCertDatabase* GetNSSCertDatabaseForResourceContext(
- content::ResourceContext* context,
- const base::Callback<void(net::NSSCertDatabase*)>& callback)
- WARN_UNUSED_RESULT;
-
-#if defined(OS_CHROMEOS)
-// Enables the system key slot in the NSSCertDatabase for the user associated
-// with |context|.
-// Must be called only on the IO thread.
-void EnableNSSSystemKeySlotForResourceContext(
- content::ResourceContext* context);
-#endif
-
-// Gets a pointer to the NSSCertDatabase for the user associated with |context|.
-// It's a wrapper around |GetNSSCertDatabaseForResourceContext| which makes
-// sure it's called on IO thread (with |profile|'s resource context). The
-// callback will be called on the originating message loop.
-// It's accessing profile, so it should be called on the UI thread.
-void GetNSSCertDatabaseForProfile(
- Profile* profile,
- const base::Callback<void(net::NSSCertDatabase*)>& callback);
-
-#endif // CHROME_BROWSER_NET_NSS_CONTEXT_H_
« no previous file with comments | « chrome/browser/net/cert_database_service_factory_linux.cc ('k') | chrome/browser/net/nss_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698