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

Issue 14113014: Adding Priority field to cookies. (Closed)

Created:
7 years, 8 months ago by huangs
Modified:
7 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, kkania, jam, joi+watch-content_chromium.org, Aaron Boodman, robertshield, darin-cc_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
http://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Adding Priority field to cookies. This CL focuses on cookie parser, CanonicalCookie, and making callers pass PRIORITY_DEFAULT where applicable. What's NOT included in this CL: - TODO(rogerm): Persistence in SQL database. - TODO(huangs): Using cookie priority to affect cookie eviction. - TODO(huangs): Make priorities available for extension API (right now default value is used to set). - TODO(lower priority): Cookie viewer update. - TODO(lower priority): WebCookie update in webkit/glue. BUG=232693 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195245

Patch Set 1 #

Total comments: 23

Patch Set 2 : Cleanups and renames; adding tests; fix API. #

Total comments: 2

Patch Set 3 : Style changes; adding cookie_constants_unittest.cc. #

Total comments: 2

Patch Set 4 : Undoing changes to extension API; saving it for later. #

Total comments: 2

Patch Set 5 : Small fix to tests. #

Patch Set 6 : Fixing test compilation issue, esp. for content\content_unittests and chrome\perf_tests. #

Patch Set 7 : Sync. #

Total comments: 1

Patch Set 8 : Renamed enums PRIORITY_* to COOKIE_PRIORITY_*. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+423 lines, -137 lines) Patch
M chrome/browser/automation/automation_util.cc View 1 2 3 4 5 6 7 5 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/cookies/cookies_api.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/cookies/cookies_unittest.cc View 1 2 3 4 5 6 7 6 chunks +11 lines, -7 lines 0 comments Download
M content/browser/net/sqlite_persistent_cookie_store.cc View 1 2 3 4 5 6 7 6 chunks +10 lines, -1 line 0 comments Download
M content/browser/net/sqlite_persistent_cookie_store_perftest.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/net/sqlite_persistent_cookie_store_unittest.cc View 1 2 3 4 5 6 7 5 chunks +11 lines, -5 lines 0 comments Download
M net/cookies/canonical_cookie.h View 5 chunks +7 lines, -2 lines 0 comments Download
M net/cookies/canonical_cookie.cc View 6 chunks +11 lines, -6 lines 0 comments Download
M net/cookies/canonical_cookie_unittest.cc View 1 2 3 4 5 6 7 10 chunks +25 lines, -14 lines 0 comments Download
A net/cookies/cookie_constants.h View 1 2 3 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
A net/cookies/cookie_constants.cc View 1 2 3 4 5 6 7 1 chunk +46 lines, -0 lines 0 comments Download
A net/cookies/cookie_constants_unittest.cc View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
M net/cookies/cookie_monster.h View 3 chunks +7 lines, -2 lines 0 comments Download
M net/cookies/cookie_monster.cc View 7 chunks +11 lines, -7 lines 0 comments Download
M net/cookies/cookie_monster_store_test.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -2 lines 0 comments Download
M net/cookies/cookie_monster_unittest.cc View 1 2 3 4 5 6 7 22 chunks +99 lines, -70 lines 0 comments Download
M net/cookies/parsed_cookie.h View 4 chunks +4 lines, -0 lines 0 comments Download
M net/cookies/parsed_cookie.cc View 1 2 3 4 5 6 7 6 chunks +16 lines, -2 lines 0 comments Download
M net/cookies/parsed_cookie_unittest.cc View 1 2 3 4 5 6 7 17 chunks +62 lines, -12 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 3 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
huangs
PTAL.
7 years, 8 months ago (2013-04-15 17:59:09 UTC) #1
erikwright (departed)
https://codereview.chromium.org/14113014/diff/1/chrome/common/extensions/api/cookies.json File chrome/common/extensions/api/cookies.json (right): https://codereview.chromium.org/14113014/diff/1/chrome/common/extensions/api/cookies.json#newcode21 chrome/common/extensions/api/cookies.json:21: "priority": {"type": "string", "optional": true, "description": "The priority of ...
7 years, 8 months ago (2013-04-15 19:00:37 UTC) #2
huangs
Note that chrome/browser/extensions/api/cookies/cookies_helpers.cc chrome/browser/extensions/api/cookies/cookies_unittest.cc were added. PTAL. https://codereview.chromium.org/14113014/diff/1/chrome/common/extensions/api/cookies.json File chrome/common/extensions/api/cookies.json (right): https://codereview.chromium.org/14113014/diff/1/chrome/common/extensions/api/cookies.json#newcode21 chrome/common/extensions/api/cookies.json:21: "priority": {"type": ...
7 years, 8 months ago (2013-04-15 21:29:40 UTC) #3
erikwright (departed)
LGTM. https://codereview.chromium.org/14113014/diff/1/net/cookies/cookie_constants.cc File net/cookies/cookie_constants.cc (right): https://codereview.chromium.org/14113014/diff/1/net/cookies/cookie_constants.cc#newcode21 net/cookies/cookie_constants.cc:21: ret = kPriorityHigh; On 2013/04/15 21:29:40, huangs1 wrote: ...
7 years, 8 months ago (2013-04-16 14:16:15 UTC) #4
huangs
Converted to use switch(), and removed redundant NL. Also isolated cookie_constants_unittest.cc. PTAL. https://codereview.chromium.org/14113014/diff/7001/net/cookies/cookie_constants.cc File net/cookies/cookie_constants.cc ...
7 years, 8 months ago (2013-04-16 16:04:42 UTC) #5
huangs
OWNER reviews to: mmenke@ for: net/net.gyp: Adding 3 files: net/cookies/cookie_constants* phajdan.jr@ for: chrome/browser/automation/automation_util.cc: Adding "priority" ...
7 years, 8 months ago (2013-04-16 17:36:41 UTC) #6
mmenke
On 2013/04/16 17:36:41, huangs1 wrote: > OWNER reviews to: > > mmenke@ for: > net/net.gyp: ...
7 years, 8 months ago (2013-04-16 17:49:44 UTC) #7
Paweł Hajdan Jr.
automation LGTM
7 years, 8 months ago (2013-04-16 17:52:49 UTC) #8
Use mkwst_at_chromium.org plz.
On 2013/04/16 17:36:41, huangs1 wrote: > OWNER reviews to: > ... > mkwst@ for: > ...
7 years, 8 months ago (2013-04-16 18:18:06 UTC) #9
Matt Perry
https://codereview.chromium.org/14113014/diff/16003/chrome/common/extensions/api/cookies.json File chrome/common/extensions/api/cookies.json (right): https://codereview.chromium.org/14113014/diff/16003/chrome/common/extensions/api/cookies.json#newcode21 chrome/common/extensions/api/cookies.json:21: "priority": {"type": "string", "description": "The retention priority of the ...
7 years, 8 months ago (2013-04-16 18:24:08 UTC) #10
huangs
@Matt Perry: Erik and I decided that we'll defer the changes to the extensions API, ...
7 years, 8 months ago (2013-04-16 19:43:14 UTC) #11
Matt Perry
lgtm
7 years, 8 months ago (2013-04-16 19:44:22 UTC) #12
erikwright (departed)
LGTM https://codereview.chromium.org/14113014/diff/26001/net/cookies/cookie_constants_unittest.cc File net/cookies/cookie_constants_unittest.cc (right): https://codereview.chromium.org/14113014/diff/26001/net/cookies/cookie_constants_unittest.cc#newcode13 net/cookies/cookie_constants_unittest.cc:13: class CookieConstantsTest : public testing::Test { }; This ...
7 years, 8 months ago (2013-04-16 20:25:55 UTC) #13
huangs
Done. https://codereview.chromium.org/14113014/diff/26001/net/cookies/cookie_constants_unittest.cc File net/cookies/cookie_constants_unittest.cc (right): https://codereview.chromium.org/14113014/diff/26001/net/cookies/cookie_constants_unittest.cc#newcode13 net/cookies/cookie_constants_unittest.cc:13: class CookieConstantsTest : public testing::Test { }; Done. ...
7 years, 8 months ago (2013-04-16 20:33:41 UTC) #14
huangs
Adding content\browser\net\sqlite_persistent_cookie_store_unittest.cc content\browser\net\sqlite_persistent_cookie_store_perftest.cc
7 years, 8 months ago (2013-04-16 21:06:31 UTC) #15
erikwright (departed)
still LGTM.
7 years, 8 months ago (2013-04-17 15:05:46 UTC) #16
erikwright (departed)
https://codereview.chromium.org/14113014/diff/40001/net/cookies/cookie_constants.h File net/cookies/cookie_constants.h (right): https://codereview.chromium.org/14113014/diff/40001/net/cookies/cookie_constants.h#newcode15 net/cookies/cookie_constants.h:15: PRIORITY_LOW = 0, Sorry to bring this up late ...
7 years, 8 months ago (2013-04-18 19:33:19 UTC) #17
huangs
Updated.
7 years, 8 months ago (2013-04-18 23:16:26 UTC) #18
erikwright (departed)
7 years, 8 months ago (2013-04-19 18:41:15 UTC) #19
Message was sent while issue was closed.
Committed patchset #8 manually as r195245 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698