OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_GTK_CERTIFICATE_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_GTK_CERTIFICATE_MANAGER_H_ |
6 #define CHROME_BROWSER_GTK_CERTIFICATE_MANAGER_H_ | 6 #define CHROME_BROWSER_GTK_CERTIFICATE_MANAGER_H_ |
7 | 7 |
8 #include "gfx/native_widget_types.h" | 8 #include "gfx/native_widget_types.h" |
9 | 9 |
10 void ShowCertificateManager(gfx::NativeWindow parent); | 10 class Profile; |
| 11 class PrefService; |
| 12 |
| 13 // An identifier for the Certificate Manager window. These are treated as |
| 14 // indices into the list of available tabs to be displayed. |
| 15 // PAGE_DEFAULT means select the last tab viewed when the Certificate Manager |
| 16 // window was opened, or PAGE_USER if the Certificate Manager was never opened. |
| 17 enum CertificateManagerPage { |
| 18 PAGE_DEFAULT = -1, |
| 19 PAGE_USER, |
| 20 PAGE_EMAIL, |
| 21 PAGE_SERVER, |
| 22 PAGE_CA, |
| 23 PAGE_UNKNOWN, |
| 24 PAGE_COUNT |
| 25 }; |
| 26 |
| 27 namespace certificate_manager_util { |
| 28 |
| 29 void RegisterUserPrefs(PrefService* prefs); |
| 30 |
| 31 } // namespace certificate_manager_util |
| 32 |
| 33 void ShowCertificateManager(gfx::NativeWindow parent, Profile* profile, |
| 34 CertificateManagerPage page); |
11 | 35 |
12 #endif // CHROME_BROWSER_GTK_CERTIFICATE_MANAGER_H_ | 36 #endif // CHROME_BROWSER_GTK_CERTIFICATE_MANAGER_H_ |
OLD | NEW |