summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/certificate_manager.h
blob: 304fbe468f53d02e1cff6afb7119a3f5cbf9ad54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (c) 2010 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_GTK_CERTIFICATE_MANAGER_H_
#define CHROME_BROWSER_GTK_CERTIFICATE_MANAGER_H_
#pragma once

#include "gfx/native_widget_types.h"

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.
// CERT_MANAGER_PAGE_DEFAULT means select the last tab viewed when the
// Certificate Manager window was opened, or CERT_MANAGER_PAGE_USER if the
// Certificate Manager was never opened.
enum CertificateManagerPage {
  CERT_MANAGER_PAGE_DEFAULT = -1,
  CERT_MANAGER_PAGE_USER,
  CERT_MANAGER_PAGE_EMAIL,
  CERT_MANAGER_PAGE_SERVER,
  CERT_MANAGER_PAGE_CA,
  CERT_MANAGER_PAGE_UNKNOWN,
  CERT_MANAGER_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_