Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: net/cookies/cookie_constants.h

Issue 14113014: Adding Priority field to cookies. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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,
16 PRIORITY_MEDIUM = 1,
17 PRIORITY_HIGH = 2,
18 PRIORITY_DEFAULT = PRIORITY_MEDIUM
19 };
20
21 // Returns a constant string for a given |priority|.
erikwright (departed) 2013/04/15 19:00:37 "Returns the Set-Cookie header priority token corr
huangs 2013/04/15 21:29:40 Done.
22 NET_EXPORT const std::string PriorityToString(CookiePriority priority);
erikwright (departed) 2013/04/15 19:00:37 CookiePriorityToString
huangs 2013/04/15 21:29:40 Done.
23
24 // Returns enum for cookie priority string (case-insentive compare). Defaults to
25 // PRIORITY_DEFAULT for empty or unrecognized strings.
erikwright (departed) 2013/04/15 19:00:37 Converts the Set-Cookie header priority token |pri
huangs 2013/04/15 21:29:40 Done.
26 NET_EXPORT CookiePriority StringToPriority(const std::string& priority_str);
erikwright (departed) 2013/04/15 19:00:37 remove "_str". Optionally, "priority_token"
erikwright (departed) 2013/04/15 19:00:37 StringToCookiePriority
huangs 2013/04/15 21:29:40 Done.
huangs 2013/04/15 21:29:40 Done (using just |priority|).
27
28 } // namespace net
29
30 #endif // NET_COOKIES_COOKIE_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698