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_handler.h" | 5 #include "chrome/browser/ui/login/login_handler.h" |
6 | 6 |
| 7 #include <memory> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
10 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/ui/android/chrome_http_auth_handler.h" | 12 #include "chrome/browser/ui/android/chrome_http_auth_handler.h" |
12 #include "chrome/browser/ui/android/view_android_helper.h" | 13 #include "chrome/browser/ui/android/view_android_helper.h" |
13 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
14 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
15 #include "net/base/auth.h" | 16 #include "net/base/auth.h" |
16 #include "ui/android/view_android.h" | 17 #include "ui/android/view_android.h" |
17 #include "ui/android/window_android.h" | 18 #include "ui/android/window_android.h" |
18 | 19 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 "missing"; | 73 "missing"; |
73 } | 74 } |
74 } | 75 } |
75 | 76 |
76 protected: | 77 protected: |
77 ~LoginHandlerAndroid() override {} | 78 ~LoginHandlerAndroid() override {} |
78 | 79 |
79 void CloseDialog() override {} | 80 void CloseDialog() override {} |
80 | 81 |
81 private: | 82 private: |
82 scoped_ptr<ChromeHttpAuthHandler> chrome_http_auth_handler_; | 83 std::unique_ptr<ChromeHttpAuthHandler> chrome_http_auth_handler_; |
83 }; | 84 }; |
84 | 85 |
85 // static | 86 // static |
86 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, | 87 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, |
87 net::URLRequest* request) { | 88 net::URLRequest* request) { |
88 return new LoginHandlerAndroid(auth_info, request); | 89 return new LoginHandlerAndroid(auth_info, request); |
89 } | 90 } |
OLD | NEW |