OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "components/auto_login_parser/auto_login_parser.h" | 5 #include "components/auto_login_parser/auto_login_parser.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/string_split.h" | 11 #include "base/strings/string_split.h" |
12 #include "net/base/escape.h" | 12 #include "net/base/escape.h" |
13 #include "net/url_request/url_request.h" | 13 #include "net/url_request/url_request.h" |
14 | 14 |
15 namespace components { | 15 namespace components { |
16 namespace auto_login { | 16 namespace auto_login { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 const char kHeaderName[] = "X-Auto-Login"; | 20 const char kHeaderName[] = "X-Auto-Login"; |
21 | 21 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 bool ParserHeaderInResponse(net::URLRequest* request, | 75 bool ParserHeaderInResponse(net::URLRequest* request, |
76 RealmRestriction realm_restriction, | 76 RealmRestriction realm_restriction, |
77 HeaderData* header_data) { | 77 HeaderData* header_data) { |
78 std::string header_string; | 78 std::string header_string; |
79 request->GetResponseHeaderByName(kHeaderName, &header_string); | 79 request->GetResponseHeaderByName(kHeaderName, &header_string); |
80 return ParseHeader(header_string, realm_restriction, header_data); | 80 return ParseHeader(header_string, realm_restriction, header_data); |
81 } | 81 } |
82 | 82 |
83 } // namespace auto_login | 83 } // namespace auto_login |
84 } // namespace components | 84 } // namespace components |
OLD | NEW |