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

Side by Side Diff: net/base/cookie_store.h

Issue 6969075: MAC Cookies (patch 5 of N) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Brought to you by number 42. 5 // Brought to you by number 42.
6 6
7 #ifndef NET_BASE_COOKIE_STORE_H_ 7 #ifndef NET_BASE_COOKIE_STORE_H_
8 #define NET_BASE_COOKIE_STORE_H_ 8 #define NET_BASE_COOKIE_STORE_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 19 matching lines...) Expand all
30 // be stored with cookies; currently just MAC information, see: 30 // be stored with cookies; currently just MAC information, see:
31 // http://tools.ietf.org/html/draft-ietf-oauth-v2-http-mac 31 // http://tools.ietf.org/html/draft-ietf-oauth-v2-http-mac
32 struct CookieInfo { 32 struct CookieInfo {
33 CookieInfo(); 33 CookieInfo();
34 ~CookieInfo(); 34 ~CookieInfo();
35 35
36 // The name of the cookie. 36 // The name of the cookie.
37 std::string name; 37 std::string name;
38 // TODO(abarth): Add value if any clients need it. 38 // TODO(abarth): Add value if any clients need it.
39 39
40 // The time at which the cookie was created.
41 base::Time creation_date;
42
40 // The value of the MAC-Key and MAC-Algorithm attributes, if present. 43 // The value of the MAC-Key and MAC-Algorithm attributes, if present.
41 std::string mac_key; 44 std::string mac_key;
42 std::string mac_algorithm; 45 std::string mac_algorithm;
43
44 // The URL from which we received the cookie.
45 std::string source;
46 }; 46 };
47 47
48 // Sets a single cookie. Expects a cookie line, like "a=1; domain=b.com". 48 // Sets a single cookie. Expects a cookie line, like "a=1; domain=b.com".
49 virtual bool SetCookieWithOptions(const GURL& url, 49 virtual bool SetCookieWithOptions(const GURL& url,
50 const std::string& cookie_line, 50 const std::string& cookie_line,
51 const CookieOptions& options) = 0; 51 const CookieOptions& options) = 0;
52 52
53 // TODO(???): what if the total size of all the cookies >4k, can we have a 53 // TODO(???): what if the total size of all the cookies >4k, can we have a
54 // header that big or do we need multiple Cookie: headers? 54 // header that big or do we need multiple Cookie: headers?
55 // Note: Some sites, such as Facebook, occationally use Cookie headers >4k. 55 // Note: Some sites, such as Facebook, occationally use Cookie headers >4k.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 protected: 95 protected:
96 friend class base::RefCountedThreadSafe<CookieStore>; 96 friend class base::RefCountedThreadSafe<CookieStore>;
97 CookieStore(); 97 CookieStore();
98 virtual ~CookieStore(); 98 virtual ~CookieStore();
99 }; 99 };
100 100
101 } // namespace net 101 } // namespace net
102 102
103 #endif // NET_BASE_COOKIE_STORE_H_ 103 #endif // NET_BASE_COOKIE_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698