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/crypto_module_password_dialog.h" | 5 #include "chrome/browser/ui/crypto_module_password_dialog.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "app/gtk_signal.h" | |
10 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
12 #include "base/crypto/crypto_module_blocking_password_delegate.h" | 11 #include "base/crypto/crypto_module_blocking_password_delegate.h" |
13 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
14 #include "base/task.h" | 13 #include "base/task.h" |
15 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
16 #include "chrome/browser/browser_thread.h" | 15 #include "chrome/browser/browser_thread.h" |
17 #include "chrome/browser/ui/gtk/gtk_util.h" | 16 #include "chrome/browser/ui/gtk/gtk_util.h" |
18 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
19 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
| 19 #include "ui/base/gtk/gtk_signal.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 class CryptoModuleBlockingDialogDelegate | 23 class CryptoModuleBlockingDialogDelegate |
24 : public base::CryptoModuleBlockingPasswordDelegate { | 24 : public base::CryptoModuleBlockingPasswordDelegate { |
25 public: | 25 public: |
26 CryptoModuleBlockingDialogDelegate(browser::CryptoModulePasswordReason reason, | 26 CryptoModuleBlockingDialogDelegate(browser::CryptoModulePasswordReason reason, |
27 const std::string& server) | 27 const std::string& server) |
28 : event_(false, false), | 28 : event_(false, false), |
29 reason_(reason), | 29 reason_(reason), |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 } | 217 } |
218 | 218 |
219 base::CryptoModuleBlockingPasswordDelegate* | 219 base::CryptoModuleBlockingPasswordDelegate* |
220 NewCryptoModuleBlockingDialogDelegate( | 220 NewCryptoModuleBlockingDialogDelegate( |
221 CryptoModulePasswordReason reason, | 221 CryptoModulePasswordReason reason, |
222 const std::string& server) { | 222 const std::string& server) { |
223 return new CryptoModuleBlockingDialogDelegate(reason, server); | 223 return new CryptoModuleBlockingDialogDelegate(reason, server); |
224 } | 224 } |
225 | 225 |
226 } // namespace browser | 226 } // namespace browser |
OLD | NEW |