OLD | NEW |
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 "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/ui/android/chrome_http_auth_handler.h" | 11 #include "chrome/browser/ui/android/chrome_http_auth_handler.h" |
12 #include "chrome/browser/ui/android/window_android_helper.h" | 12 #include "chrome/browser/ui/android/window_android_helper.h" |
13 #include "chrome/browser/ui/login/login_prompt.h" | 13 #include "chrome/browser/ui/login/login_prompt.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
16 #include "net/base/auth.h" | 16 #include "net/base/auth.h" |
17 #include "ui/base/android/window_android.h" | 17 #include "ui/android/window_android.h" |
18 | 18 |
19 using content::BrowserThread; | 19 using content::BrowserThread; |
20 using net::URLRequest; | 20 using net::URLRequest; |
21 using net::AuthChallengeInfo; | 21 using net::AuthChallengeInfo; |
22 | 22 |
23 class LoginHandlerAndroid : public LoginHandler { | 23 class LoginHandlerAndroid : public LoginHandler { |
24 public: | 24 public: |
25 LoginHandlerAndroid(AuthChallengeInfo* auth_info, URLRequest* request) | 25 LoginHandlerAndroid(AuthChallengeInfo* auth_info, URLRequest* request) |
26 : LoginHandler(auth_info, request) { | 26 : LoginHandler(auth_info, request) { |
27 } | 27 } |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 private: | 73 private: |
74 scoped_ptr<ChromeHttpAuthHandler> chrome_http_auth_handler_; | 74 scoped_ptr<ChromeHttpAuthHandler> chrome_http_auth_handler_; |
75 }; | 75 }; |
76 | 76 |
77 // static | 77 // static |
78 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, | 78 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, |
79 net::URLRequest* request) { | 79 net::URLRequest* request) { |
80 return new LoginHandlerAndroid(auth_info, request); | 80 return new LoginHandlerAndroid(auth_info, request); |
81 } | 81 } |
OLD | NEW |