Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NET_COOKIES_COOKIE_CONSTANTS_H_ | |
| 6 #define NET_COOKIES_COOKIE_CONSTANTS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "net/base/net_export.h" | |
| 11 | |
| 12 namespace net { | |
| 13 | |
| 14 enum CookiePriority { | |
| 15 PRIORITY_LOW = 0, | |
|
erikwright (departed)
2013/04/18 19:33:19
Sorry to bring this up late in the game, but after
| |
| 16 PRIORITY_MEDIUM = 1, | |
| 17 PRIORITY_HIGH = 2, | |
| 18 PRIORITY_DEFAULT = PRIORITY_MEDIUM | |
| 19 }; | |
| 20 | |
| 21 // Returns the Set-Cookie header priority token corresponding to |priority|. | |
| 22 NET_EXPORT const std::string CookiePriorityToString(CookiePriority priority); | |
| 23 | |
| 24 // Converts the Set-Cookie header priority token |priority| to a CookiePriority. | |
| 25 // Defaults to PRIORITY_DEFAULT for empty or unrecognized strings. | |
| 26 NET_EXPORT CookiePriority StringToCookiePriority(const std::string& priority); | |
| 27 | |
| 28 } // namespace net | |
| 29 | |
| 30 #endif // NET_COOKIES_COOKIE_CONSTANTS_H_ | |
| OLD | NEW |