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" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // TODO(mattm): change into a constrained dialog. | 87 // TODO(mattm): change into a constrained dialog. |
88 class CryptoModulePasswordDialog { | 88 class CryptoModulePasswordDialog { |
89 public: | 89 public: |
90 CryptoModulePasswordDialog( | 90 CryptoModulePasswordDialog( |
91 const std::string& slot_name, | 91 const std::string& slot_name, |
92 bool retry, | 92 bool retry, |
93 browser::CryptoModulePasswordReason reason, | 93 browser::CryptoModulePasswordReason reason, |
94 const std::string& server, | 94 const std::string& server, |
95 const browser::CryptoModulePasswordCallback& callback); | 95 const browser::CryptoModulePasswordCallback& callback); |
96 | 96 |
97 virtual ~CryptoModulePasswordDialog() {} | 97 ~CryptoModulePasswordDialog() {} |
98 | 98 |
99 void Show(); | 99 void Show(); |
100 | 100 |
101 private: | 101 private: |
102 CHROMEGTK_CALLBACK_1(CryptoModulePasswordDialog, void, OnResponse, int); | 102 CHROMEGTK_CALLBACK_1(CryptoModulePasswordDialog, void, OnResponse, int); |
103 CHROMEGTK_CALLBACK_0(CryptoModulePasswordDialog, void, OnWindowDestroy); | 103 CHROMEGTK_CALLBACK_0(CryptoModulePasswordDialog, void, OnWindowDestroy); |
104 | 104 |
105 browser::CryptoModulePasswordCallback callback_; | 105 browser::CryptoModulePasswordCallback callback_; |
106 | 106 |
107 GtkWidget* dialog_; | 107 GtkWidget* dialog_; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 } | 229 } |
230 | 230 |
231 crypto::CryptoModuleBlockingPasswordDelegate* | 231 crypto::CryptoModuleBlockingPasswordDelegate* |
232 NewCryptoModuleBlockingDialogDelegate( | 232 NewCryptoModuleBlockingDialogDelegate( |
233 CryptoModulePasswordReason reason, | 233 CryptoModulePasswordReason reason, |
234 const std::string& server) { | 234 const std::string& server) { |
235 return new CryptoModuleBlockingDialogDelegate(reason, server); | 235 return new CryptoModuleBlockingDialogDelegate(reason, server); |
236 } | 236 } |
237 | 237 |
238 } // namespace browser | 238 } // namespace browser |
OLD | NEW |