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 "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/ui/gtk/gtk_util.h" | 13 #include "chrome/browser/ui/gtk/gtk_util.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "crypto/crypto_module_blocking_password_delegate.h" | 15 #include "crypto/crypto_module_blocking_password_delegate.h" |
16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
17 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
18 #include "ui/base/gtk/gtk_hig_constants.h" | 18 #include "ui/base/gtk/gtk_hig_constants.h" |
19 #include "ui/base/gtk/gtk_signal.h" | 19 #include "ui/base/gtk/gtk_signal.h" |
20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
21 | 21 |
| 22 using content::BrowserThread; |
| 23 |
22 namespace { | 24 namespace { |
23 | 25 |
24 class CryptoModuleBlockingDialogDelegate | 26 class CryptoModuleBlockingDialogDelegate |
25 : public crypto::CryptoModuleBlockingPasswordDelegate { | 27 : public crypto::CryptoModuleBlockingPasswordDelegate { |
26 public: | 28 public: |
27 CryptoModuleBlockingDialogDelegate(browser::CryptoModulePasswordReason reason, | 29 CryptoModuleBlockingDialogDelegate(browser::CryptoModulePasswordReason reason, |
28 const std::string& server) | 30 const std::string& server) |
29 : event_(false, false), | 31 : event_(false, false), |
30 reason_(reason), | 32 reason_(reason), |
31 server_(server), | 33 server_(server), |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 } | 229 } |
228 | 230 |
229 crypto::CryptoModuleBlockingPasswordDelegate* | 231 crypto::CryptoModuleBlockingPasswordDelegate* |
230 NewCryptoModuleBlockingDialogDelegate( | 232 NewCryptoModuleBlockingDialogDelegate( |
231 CryptoModulePasswordReason reason, | 233 CryptoModulePasswordReason reason, |
232 const std::string& server) { | 234 const std::string& server) { |
233 return new CryptoModuleBlockingDialogDelegate(reason, server); | 235 return new CryptoModuleBlockingDialogDelegate(reason, server); |
234 } | 236 } |
235 | 237 |
236 } // namespace browser | 238 } // namespace browser |
OLD | NEW |