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

Side by Side Diff: chrome/browser/login_prompt_gtk.cc

Issue 5384002: net: Remove typedef net::URLRequest URLRequest; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/login_prompt.h" 5 #include "chrome/browser/login_prompt.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/gtk_signal.h" 10 #include "app/gtk_signal.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/common/notification_service.h" 23 #include "chrome/common/notification_service.h"
24 #include "grit/generated_resources.h" 24 #include "grit/generated_resources.h"
25 #include "net/url_request/url_request.h" 25 #include "net/url_request/url_request.h"
26 26
27 using webkit_glue::PasswordForm; 27 using webkit_glue::PasswordForm;
28 28
29 // ---------------------------------------------------------------------------- 29 // ----------------------------------------------------------------------------
30 // LoginHandlerGtk 30 // LoginHandlerGtk
31 31
32 // This class simply forwards the authentication from the LoginView (on 32 // This class simply forwards the authentication from the LoginView (on
33 // the UI thread) to the URLRequest (on the I/O thread). 33 // the UI thread) to the net::URLRequest (on the I/O thread).
34 // This class uses ref counting to ensure that it lives until all InvokeLaters 34 // This class uses ref counting to ensure that it lives until all InvokeLaters
35 // have been called. 35 // have been called.
36 class LoginHandlerGtk : public LoginHandler, 36 class LoginHandlerGtk : public LoginHandler,
37 public ConstrainedWindowGtkDelegate { 37 public ConstrainedWindowGtkDelegate {
38 public: 38 public:
39 LoginHandlerGtk(net::AuthChallengeInfo* auth_info, URLRequest* request) 39 LoginHandlerGtk(net::AuthChallengeInfo* auth_info, net::URLRequest* request)
40 : LoginHandler(auth_info, request), 40 : LoginHandler(auth_info, request),
41 username_entry_(NULL), 41 username_entry_(NULL),
42 password_entry_(NULL), 42 password_entry_(NULL),
43 ok_(NULL) { 43 ok_(NULL) {
44 } 44 }
45 45
46 virtual ~LoginHandlerGtk() { 46 virtual ~LoginHandlerGtk() {
47 root_.Destroy(); 47 root_.Destroy();
48 } 48 }
49 49
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // should not be used on linux/views. 187 // should not be used on linux/views.
188 #if defined(TOOLKIT_GTK) 188 #if defined(TOOLKIT_GTK)
189 static_cast<TabContentsViewGtk*>(contents->view())-> 189 static_cast<TabContentsViewGtk*>(contents->view())->
190 SetFocusedWidget(username_entry_); 190 SetFocusedWidget(username_entry_);
191 #endif 191 #endif
192 } 192 }
193 } 193 }
194 194
195 // static 195 // static
196 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, 196 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info,
197 URLRequest* request) { 197 net::URLRequest* request) {
198 return new LoginHandlerGtk(auth_info, request); 198 return new LoginHandlerGtk(auth_info, request);
199 } 199 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698