| 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/string16.h" | 9 #include "base/string16.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 } else { | 63 } else { |
| 64 CancelAuth(); | 64 CancelAuth(); |
| 65 LOG(WARNING) << "HTTP Authentication failed because TabAndroid is " | 65 LOG(WARNING) << "HTTP Authentication failed because TabAndroid is " |
| 66 "missing"; | 66 "missing"; |
| 67 } | 67 } |
| 68 } | 68 } |
| 69 | 69 |
| 70 protected: | 70 protected: |
| 71 virtual ~LoginHandlerAndroid() {} | 71 virtual ~LoginHandlerAndroid() {} |
| 72 | 72 |
| 73 virtual void CloseDialog() OVERRIDE {} |
| 74 |
| 73 private: | 75 private: |
| 74 scoped_ptr<ChromeHttpAuthHandler> chrome_http_auth_handler_; | 76 scoped_ptr<ChromeHttpAuthHandler> chrome_http_auth_handler_; |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 // static | 79 // static |
| 78 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, | 80 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, |
| 79 net::URLRequest* request) { | 81 net::URLRequest* request) { |
| 80 return new LoginHandlerAndroid(auth_info, request); | 82 return new LoginHandlerAndroid(auth_info, request); |
| 81 } | 83 } |
| OLD | NEW |