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

Unified Diff: chrome/browser/certificate_manager_model.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/DEPS ('k') | chrome/browser/certificate_manager_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/certificate_manager_model.h
diff --git a/chrome/browser/certificate_manager_model.h b/chrome/browser/certificate_manager_model.h
index 34d0f0786f29b2491e918d725508f12be2c90234..ec904ed83d2f0485a91e1f869b43298a093420f0 100644
--- a/chrome/browser/certificate_manager_model.h
+++ b/chrome/browser/certificate_manager_model.h
@@ -11,13 +11,18 @@
#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "base/strings/string16.h"
#include "net/cert/nss_cert_database.h"
+namespace cert_database {
+class CertDatabaseServiceIOPart;
+}
+
namespace content {
class BrowserContext;
class ResourceContext;
-} // namespace content
+}
// CertificateManagerModel provides the data to be displayed in the certificate
// manager dialog, and processes changes from the view.
@@ -141,9 +146,11 @@ class CertificateManagerModel {
CertificateManagerModel::Observer* observer,
const CreationCallback& callback,
net::NSSCertDatabase* cert_db);
- static void GetCertDBOnIOThread(content::ResourceContext* context,
- CertificateManagerModel::Observer* observer,
- const CreationCallback& callback);
+ static void GetCertDBOnIOThread(
+ base::WeakPtr<cert_database::CertDatabaseServiceIOPart>
+ cert_db_service_io,
+ CertificateManagerModel::Observer* observer,
+ const CreationCallback& callback);
// Callback used by Refresh() for when the cert slots have been unlocked.
// This method does the actual refreshing.
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/certificate_manager_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698