Index: chrome/browser/ui/crypto_module_delegate_nss.h |
diff --git a/chrome/browser/ui/crypto_module_delegate_nss.h b/chrome/browser/ui/crypto_module_delegate_nss.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..773855a7827385dca1d7381cea29f2837855ea2f |
--- /dev/null |
+++ b/chrome/browser/ui/crypto_module_delegate_nss.h |
@@ -0,0 +1,32 @@ |
+// 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_UI_CRYPTO_MODULE_DELEGATE_NSS_H_ |
+#define CHROME_BROWSER_UI_CRYPTO_MODULE_DELEGATE_NSS_H_ |
+ |
+#include <string> |
+ |
+#include "chrome/browser/ui/crypto_module_password_dialog.h" |
+ |
+namespace content { |
+class ResourceContext; |
+} |
+ |
+namespace crypto { |
+class NSSCryptoModuleDelegate; |
+} |
+ |
+namespace chrome { |
+ |
+// Creates a NSSCryptoModuleDelegate. The Initalize method must be called on |
+// the IO thread, and |context| must still be valid at the time Initalize is |
+// called. The RequestPassword method must be called on a worker thread. |
+crypto::NSSCryptoModuleDelegate* NewNSSCryptoModuleDelegate( |
Ryan Sleevi
2013/11/22 00:03:30
naming nit: Don't we normally call these factory f
mattm
2013/11/22 00:30:31
Done.
|
+ content::ResourceContext* context, |
+ CryptoModulePasswordReason reason, |
+ const std::string& server); |
+ |
+} // namespace chrome |
+ |
+#endif // CHROME_BROWSER_UI_CRYPTO_MODULE_DELEGATE_NSS_H_ |