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

Unified Diff: chrome/browser/gtk/certificate_manager.h

Issue 2730016: gtk: Remember which page user viewed last in the Certificate Manager window. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: review Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_prefs.cc ('k') | chrome/browser/gtk/certificate_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/certificate_manager.h
diff --git a/chrome/browser/gtk/certificate_manager.h b/chrome/browser/gtk/certificate_manager.h
index 96f3d8905bc5c8143a7e929067ad64b7a19fcce9..f8534bc9c8908f9ef42f646e73be3248ff4d66d1 100644
--- a/chrome/browser/gtk/certificate_manager.h
+++ b/chrome/browser/gtk/certificate_manager.h
@@ -7,6 +7,30 @@
#include "gfx/native_widget_types.h"
-void ShowCertificateManager(gfx::NativeWindow parent);
+class Profile;
+class PrefService;
+
+// An identifier for the Certificate Manager window. These are treated as
+// indices into the list of available tabs to be displayed.
+// PAGE_DEFAULT means select the last tab viewed when the Certificate Manager
+// window was opened, or PAGE_USER if the Certificate Manager was never opened.
+enum CertificateManagerPage {
+ PAGE_DEFAULT = -1,
+ PAGE_USER,
+ PAGE_EMAIL,
+ PAGE_SERVER,
+ PAGE_CA,
+ PAGE_UNKNOWN,
+ PAGE_COUNT
+};
+
+namespace certificate_manager_util {
+
+void RegisterUserPrefs(PrefService* prefs);
+
+} // namespace certificate_manager_util
+
+void ShowCertificateManager(gfx::NativeWindow parent, Profile* profile,
+ CertificateManagerPage page);
#endif // CHROME_BROWSER_GTK_CERTIFICATE_MANAGER_H_
« no previous file with comments | « chrome/browser/browser_prefs.cc ('k') | chrome/browser/gtk/certificate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698