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

Side by Side Diff: chrome/browser/ui/login/login_prompt.cc

Issue 8680040: Group forms-related files in webkit/glue in a forms/ subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + another build fix Created 9 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
« no previous file with comments | « chrome/browser/ui/login/login_prompt.h ('k') | chrome/browser/ui/login/login_prompt_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/login/login_prompt.h" 5 #include "chrome/browser/ui/login/login_prompt.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 14 matching lines...) Expand all
25 #include "grit/generated_resources.h" 25 #include "grit/generated_resources.h"
26 #include "net/base/auth.h" 26 #include "net/base/auth.h"
27 #include "net/base/net_util.h" 27 #include "net/base/net_util.h"
28 #include "net/http/http_transaction_factory.h" 28 #include "net/http/http_transaction_factory.h"
29 #include "net/url_request/url_request.h" 29 #include "net/url_request/url_request.h"
30 #include "net/url_request/url_request_context.h" 30 #include "net/url_request/url_request_context.h"
31 #include "ui/base/l10n/l10n_util.h" 31 #include "ui/base/l10n/l10n_util.h"
32 #include "ui/base/text/text_elider.h" 32 #include "ui/base/text/text_elider.h"
33 33
34 using content::BrowserThread; 34 using content::BrowserThread;
35 using webkit_glue::PasswordForm; 35 using webkit::forms::PasswordForm;
36 36
37 class LoginHandlerImpl; 37 class LoginHandlerImpl;
38 38
39 // Helper to remove the ref from an net::URLRequest to the LoginHandler. 39 // Helper to remove the ref from an net::URLRequest to the LoginHandler.
40 // Should only be called from the IO thread, since it accesses an 40 // Should only be called from the IO thread, since it accesses an
41 // net::URLRequest. 41 // net::URLRequest.
42 void ResetLoginHandlerForRequest(net::URLRequest* request) { 42 void ResetLoginHandlerForRequest(net::URLRequest* request) {
43 ResourceDispatcherHostRequestInfo* info = 43 ResourceDispatcherHostRequestInfo* info =
44 ResourceDispatcherHost::InfoForRequest(request); 44 ResourceDispatcherHost::InfoForRequest(request);
45 if (!info) 45 if (!info)
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 if (!ResourceDispatcherHost::RenderViewForRequest( 100 if (!ResourceDispatcherHost::RenderViewForRequest(
101 request_, &render_process_host_id_, &tab_contents_id_)) { 101 request_, &render_process_host_id_, &tab_contents_id_)) {
102 NOTREACHED(); 102 NOTREACHED();
103 } 103 }
104 } 104 }
105 105
106 LoginHandler::~LoginHandler() { 106 LoginHandler::~LoginHandler() {
107 SetModel(NULL); 107 SetModel(NULL);
108 } 108 }
109 109
110 void LoginHandler::SetPasswordForm(const webkit_glue::PasswordForm& form) { 110 void LoginHandler::SetPasswordForm(const webkit::forms::PasswordForm& form) {
111 password_form_ = form; 111 password_form_ = form;
112 } 112 }
113 113
114 void LoginHandler::SetPasswordManager(PasswordManager* password_manager) { 114 void LoginHandler::SetPasswordManager(PasswordManager* password_manager) {
115 password_manager_ = password_manager; 115 password_manager_ = password_manager;
116 } 116 }
117 117
118 TabContents* LoginHandler::GetTabContentsForLogin() const { 118 TabContents* LoginHandler::GetTabContentsForLogin() const {
119 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 119 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
120 120
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 480
481 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, 481 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info,
482 net::URLRequest* request) { 482 net::URLRequest* request) {
483 LoginHandler* handler = LoginHandler::Create(auth_info, request); 483 LoginHandler* handler = LoginHandler::Create(auth_info, request);
484 BrowserThread::PostTask( 484 BrowserThread::PostTask(
485 BrowserThread::UI, FROM_HERE, 485 BrowserThread::UI, FROM_HERE,
486 base::Bind(&LoginDialogCallback, request->url(), 486 base::Bind(&LoginDialogCallback, request->url(),
487 make_scoped_refptr(auth_info), make_scoped_refptr(handler))); 487 make_scoped_refptr(auth_info), make_scoped_refptr(handler)));
488 return handler; 488 return handler;
489 } 489 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/login/login_prompt.h ('k') | chrome/browser/ui/login/login_prompt_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698