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 #ifndef NET_COOKIES_COOKIE_UTIL_H_ | 5 #ifndef NET_COOKIES_COOKIE_UTIL_H_ |
6 #define NET_COOKIES_COOKIE_UTIL_H_ | 6 #define NET_COOKIES_COOKIE_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/time.h" | 10 #include "base/time/time.h" |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 | 12 |
13 class GURL; | 13 class GURL; |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 namespace cookie_util { | 16 namespace cookie_util { |
17 | 17 |
18 // Returns the effective TLD+1 for a given host. This only makes sense for http | 18 // Returns the effective TLD+1 for a given host. This only makes sense for http |
19 // and https schemes. For other schemes, the host will be returned unchanged | 19 // and https schemes. For other schemes, the host will be returned unchanged |
20 // (minus any leading period). | 20 // (minus any leading period). |
(...skipping 16 matching lines...) Expand all Loading... |
37 // Parses the string with the cookie time (very forgivingly). | 37 // Parses the string with the cookie time (very forgivingly). |
38 NET_EXPORT base::Time ParseCookieTime(const std::string& time_string); | 38 NET_EXPORT base::Time ParseCookieTime(const std::string& time_string); |
39 | 39 |
40 // Convenience for converting a cookie origin (domain and https pair) to a URL. | 40 // Convenience for converting a cookie origin (domain and https pair) to a URL. |
41 NET_EXPORT GURL CookieOriginToURL(const std::string& domain, bool is_https); | 41 NET_EXPORT GURL CookieOriginToURL(const std::string& domain, bool is_https); |
42 | 42 |
43 } // namspace cookie_util | 43 } // namspace cookie_util |
44 } // namespace net | 44 } // namespace net |
45 | 45 |
46 #endif // NET_COOKIES_COOKIE_UTIL_H_ | 46 #endif // NET_COOKIES_COOKIE_UTIL_H_ |
OLD | NEW |