OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/webui/options/certificate_manager_handler.h" | 5 #include "chrome/browser/ui/webui/options/certificate_manager_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/file_util.h" // for FileAccessProvider | 12 #include "base/file_util.h" // for FileAccessProvider |
13 #include "base/id_map.h" | 13 #include "base/id_map.h" |
14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
15 #include "base/safe_strerror_posix.h" | 15 #include "base/safe_strerror_posix.h" |
16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
19 #include "chrome/browser/certificate_viewer.h" | 19 #include "chrome/browser/certificate_viewer.h" |
20 #include "chrome/browser/ui/certificate_dialogs.h" | 20 #include "chrome/browser/ui/certificate_dialogs.h" |
21 #include "chrome/browser/ui/chrome_select_file_policy.h" | 21 #include "chrome/browser/ui/chrome_select_file_policy.h" |
22 #include "chrome/browser/ui/crypto_module_password_dialog.h" | 22 #include "chrome/browser/ui/crypto_module_password_dialog.h" |
23 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
24 #include "content/public/browser/web_contents.h" | 24 #include "content/public/browser/web_contents.h" |
25 #include "content/public/browser/web_contents_view.h" | 25 #include "content/public/browser/web_contents_view.h" |
26 #include "grit/generated_resources.h" | 26 #include "grit/generated_resources.h" |
27 #include "net/base/crypto_module.h" | 27 #include "net/base/crypto_module.h" |
28 #include "net/base/net_errors.h" | 28 #include "net/base/net_errors.h" |
29 #include "net/base/x509_certificate.h" | 29 #include "net/cert/x509_certificate.h" |
30 #include "ui/base/l10n/l10n_util.h" | 30 #include "ui/base/l10n/l10n_util.h" |
31 #include "ui/base/l10n/l10n_util_collator.h" | 31 #include "ui/base/l10n/l10n_util_collator.h" |
32 | 32 |
33 #if defined(OS_CHROMEOS) | 33 #if defined(OS_CHROMEOS) |
34 #include "chromeos/dbus/cryptohome_client.h" | 34 #include "chromeos/dbus/cryptohome_client.h" |
35 #include "chromeos/dbus/dbus_thread_manager.h" | 35 #include "chromeos/dbus/dbus_thread_manager.h" |
36 #endif | 36 #endif |
37 | 37 |
38 using content::BrowserThread; | 38 using content::BrowserThread; |
39 | 39 |
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 web_ui()->CallJavascriptFunction("CertificateManager.onCheckTpmTokenReady", | 1081 web_ui()->CallJavascriptFunction("CertificateManager.onCheckTpmTokenReady", |
1082 ready); | 1082 ready); |
1083 } | 1083 } |
1084 #endif | 1084 #endif |
1085 | 1085 |
1086 gfx::NativeWindow CertificateManagerHandler::GetParentWindow() const { | 1086 gfx::NativeWindow CertificateManagerHandler::GetParentWindow() const { |
1087 return web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(); | 1087 return web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(); |
1088 } | 1088 } |
1089 | 1089 |
1090 } // namespace options | 1090 } // namespace options |
OLD | NEW |