| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/file_util.h" // for FileAccessProvider | 7 #include "base/file_util.h" // for FileAccessProvider |
| 8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
| 9 #include "base/nss_util.h" | |
| 10 #include "base/safe_strerror_posix.h" | 9 #include "base/safe_strerror_posix.h" |
| 11 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| 12 #include "base/values.h" | 11 #include "base/values.h" |
| 13 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/ui/crypto_module_password_dialog.h" | 13 #include "chrome/browser/ui/crypto_module_password_dialog.h" |
| 15 #include "chrome/browser/ui/gtk/certificate_dialogs.h" | 14 #include "chrome/browser/ui/gtk/certificate_dialogs.h" |
| 16 #include "content/browser/browser_thread.h" // for FileAccessProvider | 15 #include "content/browser/browser_thread.h" // for FileAccessProvider |
| 17 #include "content/browser/certificate_viewer.h" | 16 #include "content/browser/certificate_viewer.h" |
| 18 #include "content/browser/tab_contents/tab_contents.h" | 17 #include "content/browser/tab_contents/tab_contents.h" |
| 19 #include "content/browser/tab_contents/tab_contents_view.h" | 18 #include "content/browser/tab_contents/tab_contents_view.h" |
| (...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 957 StringValue error_value(error); | 956 StringValue error_value(error); |
| 958 web_ui_->CallJavascriptFunction("CertificateImportErrorOverlay.show", | 957 web_ui_->CallJavascriptFunction("CertificateImportErrorOverlay.show", |
| 959 title_value, | 958 title_value, |
| 960 error_value, | 959 error_value, |
| 961 cert_error_list); | 960 cert_error_list); |
| 962 } | 961 } |
| 963 | 962 |
| 964 gfx::NativeWindow CertificateManagerHandler::GetParentWindow() const { | 963 gfx::NativeWindow CertificateManagerHandler::GetParentWindow() const { |
| 965 return web_ui_->tab_contents()->view()->GetTopLevelNativeWindow(); | 964 return web_ui_->tab_contents()->view()->GetTopLevelNativeWindow(); |
| 966 } | 965 } |
| OLD | NEW |