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

Side by Side Diff: chrome/browser/gtk/pk11_password_dialog.h

Issue 3186021: DONOTLAND: Start of PK11 password dialog for Linux/NSS (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Start of hooking up the hang monitor, probably requires WebKit changes Created 10 years, 3 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 unified diff | Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/gtk/pk11_password_dialog.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_GTK_PK11_PASSWORD_DIALOG_H_
6 #define CHROME_BROWSER_GTK_PK11_PASSWORD_DIALOG_H_
7 #pragma once
8
9 #include "base/callback.h"
10
11 class GURL;
12 typedef struct PK11SlotInfoStr PK11SlotInfo;
13
14 namespace base {
15 class PK11BlockingPasswordDelegate;
16 }
17
18 namespace browser {
19
20 // An enum to describe the reason for the password request.
21 enum PK11PasswordReason {
22 kPK11PasswordKeygen,
23 kPK11PasswordCertEnrollment,
24 kPK11PasswordClientAuth,
25 };
26
27 typedef Callback1<const char*>::Type PK11PasswordCallback;
28
29 // Display a dialog, prompting the user to authenticate to unlock
30 // |slot|. |reason| describes the purpose of the authentication and
31 // affects the message displayed in the dialog. |url| is the address
32 // of the page which requested the access.
33 void ShowPK11PasswordDialog(PK11SlotInfo* slot,
34 bool retry,
35 PK11PasswordReason reason,
36 const GURL& url,
37 PK11PasswordCallback* callback);
38
39 // Returns a PK11BlockingPasswordDelegate to open a dialog and block
40 // until returning. Should only be used on a worker thread.
41 base::PK11BlockingPasswordDelegate* NewPK11BlockingDialogDelegate(
42 PK11PasswordReason reason,
43 const GURL& url);
44
45 } // namespace browser
46
47 #endif // CHROME_BROWSER_GTK_PK11_PASSWORD_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/gtk/pk11_password_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698