Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(665)

Side by Side Diff: chrome/browser/ui/gtk/crypto_module_password_dialog.cc

Issue 7087028: roll clang 131935:132017 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/synchronization/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // TODO(mattm): change into a constrained dialog. 80 // TODO(mattm): change into a constrained dialog.
81 class CryptoModulePasswordDialog { 81 class CryptoModulePasswordDialog {
82 public: 82 public:
83 CryptoModulePasswordDialog(const std::string& slot_name, 83 CryptoModulePasswordDialog(const std::string& slot_name,
84 bool retry, 84 bool retry,
85 browser::CryptoModulePasswordReason reason, 85 browser::CryptoModulePasswordReason reason,
86 const std::string& server, 86 const std::string& server,
87 browser::CryptoModulePasswordCallback* callback); 87 browser::CryptoModulePasswordCallback* callback);
88 88
89 virtual ~CryptoModulePasswordDialog() {}
Evan Martin 2011/06/07 22:07:20 Why is this one needed? It seems like this class
Nico 2011/06/07 22:09:53 "(For the gtk files, this is necessary because the
90
89 void Show(); 91 void Show();
90 92
91 private: 93 private:
92 CHROMEGTK_CALLBACK_1(CryptoModulePasswordDialog, void, OnResponse, int); 94 CHROMEGTK_CALLBACK_1(CryptoModulePasswordDialog, void, OnResponse, int);
93 CHROMEGTK_CALLBACK_0(CryptoModulePasswordDialog, void, OnWindowDestroy); 95 CHROMEGTK_CALLBACK_0(CryptoModulePasswordDialog, void, OnWindowDestroy);
94 96
95 scoped_ptr<browser::CryptoModulePasswordCallback> callback_; 97 scoped_ptr<browser::CryptoModulePasswordCallback> callback_;
96 98
97 GtkWidget* dialog_; 99 GtkWidget* dialog_;
98 GtkWidget* password_entry_; 100 GtkWidget* password_entry_;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 } 223 }
222 224
223 crypto::CryptoModuleBlockingPasswordDelegate* 225 crypto::CryptoModuleBlockingPasswordDelegate*
224 NewCryptoModuleBlockingDialogDelegate( 226 NewCryptoModuleBlockingDialogDelegate(
225 CryptoModulePasswordReason reason, 227 CryptoModulePasswordReason reason,
226 const std::string& server) { 228 const std::string& server) {
227 return new CryptoModuleBlockingDialogDelegate(reason, server); 229 return new CryptoModuleBlockingDialogDelegate(reason, server);
228 } 230 }
229 231
230 } // namespace browser 232 } // namespace browser
OLDNEW
« no previous file with comments | « chrome/browser/download/save_file.h ('k') | chrome/browser/ui/gtk/external_protocol_dialog_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698