Don't send a SHChangeNotify for creating an app icon when creating a shortcut.
[chromium-blink-merge.git] / net / cookies / cookie_constants.h
blob7e27e14657d24d44945e5d34ec57620897e7fa86
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.
5 #ifndef NET_COOKIES_COOKIE_CONSTANTS_H_
6 #define NET_COOKIES_COOKIE_CONSTANTS_H_
8 #include <string>
10 #include "net/base/net_export.h"
12 namespace net {
14 enum CookiePriority {
15 COOKIE_PRIORITY_LOW = 0,
16 COOKIE_PRIORITY_MEDIUM = 1,
17 COOKIE_PRIORITY_HIGH = 2,
18 COOKIE_PRIORITY_DEFAULT = COOKIE_PRIORITY_MEDIUM
21 // Returns the Set-Cookie header priority token corresponding to |priority|.
22 NET_EXPORT const std::string CookiePriorityToString(CookiePriority priority);
24 // Converts the Set-Cookie header priority token |priority| to a CookiePriority.
25 // Defaults to COOKIE_PRIORITY_DEFAULT for empty or unrecognized strings.
26 NET_EXPORT CookiePriority StringToCookiePriority(const std::string& priority);
28 } // namespace net
30 #endif // NET_COOKIES_COOKIE_CONSTANTS_H_