OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef NET_TOOLS_FLIP_SERVER_SPDY_UTIL_H_ | 5 #ifndef NET_TOOLS_FLIP_SERVER_SPDY_UTIL_H_ |
6 #define NET_TOOLS_FLIP_SERVER_SPDY_UTIL_H_ | 6 #define NET_TOOLS_FLIP_SERVER_SPDY_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 | 11 |
12 // Flag indicating if we need to encode urls into filenames (legacy). | 12 // Flag indicating if we need to encode urls into filenames (legacy). |
13 extern bool g_need_to_encode_url; | 13 extern bool g_need_to_encode_url; |
14 | 14 |
15 // Encode the URL. | 15 // Encode the URL. |
16 std::string EncodeURL(std::string uri, std::string host, std::string method); | 16 std::string EncodeURL(const std::string& uri, |
| 17 const std::string& host, |
| 18 const std::string& method); |
17 | 19 |
18 } // namespace net | 20 } // namespace net |
19 | 21 |
20 #endif // NET_TOOLS_FLIP_SERVER_SPDY_UTIL_H_ | 22 #endif // NET_TOOLS_FLIP_SERVER_SPDY_UTIL_H_ |
OLD | NEW |