OLD | NEW |
| (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_CERTIFICATE_MANAGER_H_ | |
6 #define CHROME_BROWSER_GTK_CERTIFICATE_MANAGER_H_ | |
7 #pragma once | |
8 | |
9 #include "gfx/native_widget_types.h" | |
10 | |
11 class Profile; | |
12 class PrefService; | |
13 | |
14 // An identifier for the Certificate Manager window. These are treated as | |
15 // indices into the list of available tabs to be displayed. | |
16 // CERT_MANAGER_PAGE_DEFAULT means select the last tab viewed when the | |
17 // Certificate Manager window was opened, or CERT_MANAGER_PAGE_USER if the | |
18 // Certificate Manager was never opened. | |
19 enum CertificateManagerPage { | |
20 CERT_MANAGER_PAGE_DEFAULT = -1, | |
21 CERT_MANAGER_PAGE_USER, | |
22 CERT_MANAGER_PAGE_EMAIL, | |
23 CERT_MANAGER_PAGE_SERVER, | |
24 CERT_MANAGER_PAGE_CA, | |
25 CERT_MANAGER_PAGE_UNKNOWN, | |
26 CERT_MANAGER_PAGE_COUNT | |
27 }; | |
28 | |
29 namespace certificate_manager_util { | |
30 | |
31 void RegisterUserPrefs(PrefService* prefs); | |
32 | |
33 } // namespace certificate_manager_util | |
34 | |
35 void ShowCertificateManager(gfx::NativeWindow parent, Profile* profile, | |
36 CertificateManagerPage page); | |
37 | |
38 #endif // CHROME_BROWSER_GTK_CERTIFICATE_MANAGER_H_ | |
OLD | NEW |