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 "net/spdy/spdy_http_utils.h" | 5 #include "net/spdy/chromium/spdy_http_utils.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "net/base/escape.h" | 13 #include "net/base/escape.h" |
14 #include "net/base/load_flags.h" | 14 #include "net/base/load_flags.h" |
15 #include "net/base/url_util.h" | 15 #include "net/base/url_util.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 url.append(it->second.as_string()); | 160 url.append(it->second.as_string()); |
161 | 161 |
162 it = headers.find(":path"); | 162 it = headers.find(":path"); |
163 if (it == headers.end()) | 163 if (it == headers.end()) |
164 return GURL(); | 164 return GURL(); |
165 url.append(it->second.as_string()); | 165 url.append(it->second.as_string()); |
166 return GURL(url); | 166 return GURL(url); |
167 } | 167 } |
168 | 168 |
169 } // namespace net | 169 } // namespace net |
OLD | NEW |