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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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
« no previous file with comments | « chrome/browser/ui/gtk/tabs/dragged_view_gtk.cc ('k') | chrome/browser/ui/panels/panel.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 16 matching lines...) Expand all
27 #include "net/base/auth.h" 27 #include "net/base/auth.h"
28 #include "net/base/net_util.h" 28 #include "net/base/net_util.h"
29 #include "net/http/http_transaction_factory.h" 29 #include "net/http/http_transaction_factory.h"
30 #include "net/url_request/url_request.h" 30 #include "net/url_request/url_request.h"
31 #include "net/url_request/url_request_context.h" 31 #include "net/url_request/url_request_context.h"
32 #include "ui/base/l10n/l10n_util.h" 32 #include "ui/base/l10n/l10n_util.h"
33 #include "ui/base/text/text_elider.h" 33 #include "ui/base/text/text_elider.h"
34 34
35 using content::BrowserThread; 35 using content::BrowserThread;
36 using content::NavigationController; 36 using content::NavigationController;
37 using content::RenderViewHost;
37 using content::RenderViewHostDelegate; 38 using content::RenderViewHostDelegate;
38 using content::WebContents; 39 using content::WebContents;
39 using webkit::forms::PasswordForm; 40 using webkit::forms::PasswordForm;
40 41
41 class LoginHandlerImpl; 42 class LoginHandlerImpl;
42 43
43 // Helper to remove the ref from an net::URLRequest to the LoginHandler. 44 // Helper to remove the ref from an net::URLRequest to the LoginHandler.
44 // Should only be called from the IO thread, since it accesses an 45 // Should only be called from the IO thread, since it accesses an
45 // net::URLRequest. 46 // net::URLRequest.
46 void ResetLoginHandlerForRequest(net::URLRequest* request) { 47 void ResetLoginHandlerForRequest(net::URLRequest* request) {
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 480
480 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, 481 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info,
481 net::URLRequest* request) { 482 net::URLRequest* request) {
482 LoginHandler* handler = LoginHandler::Create(auth_info, request); 483 LoginHandler* handler = LoginHandler::Create(auth_info, request);
483 BrowserThread::PostTask( 484 BrowserThread::PostTask(
484 BrowserThread::UI, FROM_HERE, 485 BrowserThread::UI, FROM_HERE,
485 base::Bind(&LoginDialogCallback, request->url(), 486 base::Bind(&LoginDialogCallback, request->url(),
486 make_scoped_refptr(auth_info), make_scoped_refptr(handler))); 487 make_scoped_refptr(auth_info), make_scoped_refptr(handler)));
487 return handler; 488 return handler;
488 } 489 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tabs/dragged_view_gtk.cc ('k') | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698