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

Issue 10546167: Create and store persistent unique ids for sessionStorage. (Closed)

Created:
8 years, 6 months ago by marja
Modified:
8 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, pam+watch_chromium.org, jochen+watch-content_chromium.org
Visibility:
Public.

Description

Create and store persistent unique ids for sessionStorage. This helps us to store / restore sessionStorages when doing a session restore (in a later CL). BUG=104292 TEST=existing tests+DomStorageContextTest.PersistentIds Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142735

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : rebased #

Total comments: 23

Patch Set 4 : code review #

Patch Set 5 : . #

Total comments: 11

Patch Set 6 : code review #

Total comments: 4

Patch Set 7 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -50 lines) Patch
M content/browser/dom_storage/session_storage_namespace_impl.h View 1 2 3 4 5 1 chunk +14 lines, -1 line 0 comments Download
M content/browser/dom_storage/session_storage_namespace_impl.cc View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M content/public/browser/session_storage_namespace.h View 1 2 3 4 5 6 1 chunk +16 lines, -2 lines 0 comments Download
M webkit/dom_storage/dom_storage_area.h View 1 2 3 4 chunks +12 lines, -2 lines 0 comments Download
M webkit/dom_storage/dom_storage_area.cc View 1 2 3 2 chunks +26 lines, -8 lines 0 comments Download
M webkit/dom_storage/dom_storage_area_unittest.cc View 1 2 3 4 10 chunks +12 lines, -13 lines 0 comments Download
M webkit/dom_storage/dom_storage_context.h View 1 chunk +6 lines, -2 lines 0 comments Download
M webkit/dom_storage/dom_storage_context.cc View 3 chunks +14 lines, -5 lines 0 comments Download
M webkit/dom_storage/dom_storage_context_unittest.cc View 1 chunk +29 lines, -0 lines 0 comments Download
M webkit/dom_storage/dom_storage_namespace.h View 1 2 3 3 chunks +7 lines, -1 line 0 comments Download
M webkit/dom_storage/dom_storage_namespace.cc View 1 2 3 4 chunks +17 lines, -7 lines 0 comments Download
M webkit/dom_storage/dom_storage_session.h View 1 2 3 2 chunks +18 lines, -1 line 0 comments Download
M webkit/dom_storage/dom_storage_session.cc View 2 chunks +21 lines, -6 lines 0 comments Download
M webkit/tools/test_shell/simple_dom_storage_system.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
marja
This is the first CL towards file-backed sessionStorage. It creates and maintains persistent IDs to ...
8 years, 6 months ago (2012-06-14 14:20:43 UTC) #1
marja
Hmm, sorry, I meant tony instead of brettw. So: michaeln: all tony: webkit/tools/test_shell/simple_dom_storage_system.cc (trivial additions)
8 years, 6 months ago (2012-06-14 14:29:40 UTC) #2
tony
webkit/tools LGTM.
8 years, 6 months ago (2012-06-14 18:11:32 UTC) #3
tony
http://codereview.chromium.org/10546167/diff/6001/webkit/tools/test_shell/simple_dom_storage_system.cc File webkit/tools/test_shell/simple_dom_storage_system.cc (right): http://codereview.chromium.org/10546167/diff/6001/webkit/tools/test_shell/simple_dom_storage_system.cc#newcode110 webkit/tools/test_shell/simple_dom_storage_system.cc:110: Context()->CloneSessionNamespace(namespace_id_, new_id, ""); Nit: std::string() http://codereview.chromium.org/10546167/diff/6001/webkit/tools/test_shell/simple_dom_storage_system.cc#newcode218 webkit/tools/test_shell/simple_dom_storage_system.cc:218: context_->CreateSessionNamespace(id, ""); ...
8 years, 6 months ago (2012-06-14 18:11:40 UTC) #4
michaeln
https://chromiumcodereview.appspot.com/10546167/diff/6001/content/browser/dom_storage/session_storage_namespace_impl.h File content/browser/dom_storage/session_storage_namespace_impl.h (right): https://chromiumcodereview.appspot.com/10546167/diff/6001/content/browser/dom_storage/session_storage_namespace_impl.h#newcode23 content/browser/dom_storage/session_storage_namespace_impl.h:23: explicit SessionStorageNamespaceImpl(DOMStorageContextImpl* context); ditto comments on ctor's might be ...
8 years, 6 months ago (2012-06-14 22:53:48 UTC) #5
marja
Thanks for comments! http://codereview.chromium.org/10546167/diff/6001/content/browser/dom_storage/session_storage_namespace_impl.h File content/browser/dom_storage/session_storage_namespace_impl.h (right): http://codereview.chromium.org/10546167/diff/6001/content/browser/dom_storage/session_storage_namespace_impl.h#newcode23 content/browser/dom_storage/session_storage_namespace_impl.h:23: explicit SessionStorageNamespaceImpl(DOMStorageContextImpl* context); On 2012/06/14 22:53:48, ...
8 years, 6 months ago (2012-06-15 09:17:42 UTC) #6
jochen (gone - plz use gerrit)
drive-by content nits http://codereview.chromium.org/10546167/diff/2003/content/browser/dom_storage/session_storage_namespace_impl.cc File content/browser/dom_storage/session_storage_namespace_impl.cc (right): http://codereview.chromium.org/10546167/diff/2003/content/browser/dom_storage/session_storage_namespace_impl.cc#newcode27 content/browser/dom_storage/session_storage_namespace_impl.cc:27: persistent_id)) { fits on previous line? ...
8 years, 6 months ago (2012-06-15 13:57:21 UTC) #7
marja
http://codereview.chromium.org/10546167/diff/2003/content/browser/dom_storage/session_storage_namespace_impl.cc File content/browser/dom_storage/session_storage_namespace_impl.cc (right): http://codereview.chromium.org/10546167/diff/2003/content/browser/dom_storage/session_storage_namespace_impl.cc#newcode27 content/browser/dom_storage/session_storage_namespace_impl.cc:27: persistent_id)) { On 2012/06/15 13:57:21, jochen wrote: > fits ...
8 years, 6 months ago (2012-06-15 14:31:32 UTC) #8
michaeln
lgtm https://chromiumcodereview.appspot.com/10546167/diff/17001/content/public/browser/session_storage_namespace.h File content/public/browser/session_storage_namespace.h (right): https://chromiumcodereview.appspot.com/10546167/diff/17001/content/public/browser/session_storage_namespace.h#newcode21 content/public/browser/session_storage_namespace.h:21: SessionStorageNamespace() {} is this ctor necessary?
8 years, 6 months ago (2012-06-15 18:29:51 UTC) #9
marja
Thanks for review! https://chromiumcodereview.appspot.com/10546167/diff/17001/content/public/browser/session_storage_namespace.h File content/public/browser/session_storage_namespace.h (right): https://chromiumcodereview.appspot.com/10546167/diff/17001/content/public/browser/session_storage_namespace.h#newcode21 content/public/browser/session_storage_namespace.h:21: SessionStorageNamespace() {} On 2012/06/15 18:29:51, michaeln ...
8 years, 6 months ago (2012-06-18 07:08:30 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/10546167/17001
8 years, 6 months ago (2012-06-18 07:08:46 UTC) #11
commit-bot: I haz the power
Presubmit check for 10546167-17001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 6 months ago (2012-06-18 07:08:52 UTC) #12
marja
Oops, my set cover algorithm to find the reviewers failed. avi, could you review the ...
8 years, 6 months ago (2012-06-18 07:15:14 UTC) #13
Avi (use Gerrit)
lgtm https://chromiumcodereview.appspot.com/10546167/diff/17001/content/public/browser/session_storage_namespace.h File content/public/browser/session_storage_namespace.h (right): https://chromiumcodereview.appspot.com/10546167/diff/17001/content/public/browser/session_storage_namespace.h#newcode26 content/public/browser/session_storage_namespace.h:26: // Returns the persistent ID for the |SessionStorageNamespace|. ...
8 years, 6 months ago (2012-06-18 14:40:14 UTC) #14
marja
Thanks! https://chromiumcodereview.appspot.com/10546167/diff/17001/content/public/browser/session_storage_namespace.h File content/public/browser/session_storage_namespace.h (right): https://chromiumcodereview.appspot.com/10546167/diff/17001/content/public/browser/session_storage_namespace.h#newcode26 content/public/browser/session_storage_namespace.h:26: // Returns the persistent ID for the |SessionStorageNamespace|. ...
8 years, 6 months ago (2012-06-18 15:00:11 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/10546167/18017
8 years, 6 months ago (2012-06-18 15:00:22 UTC) #16
commit-bot: I haz the power
Change committed as 142735
8 years, 6 months ago (2012-06-18 16:52:47 UTC) #17
marja
8 years, 6 months ago (2012-06-20 16:45:25 UTC) #18
jochen: fyi

http://codereview.chromium.org/10546167/diff/2003/content/public/browser/sess...
File content/public/browser/session_storage_namespace.h (right):

http://codereview.chromium.org/10546167/diff/2003/content/public/browser/sess...
content/public/browser/session_storage_namespace.h:25: };
On 2012/06/15 14:31:32, marja wrote:
> On 2012/06/15 13:57:21, jochen wrote:
> > disallow copy/assign
> 
> Done.

michaeln says here https://chromiumcodereview.appspot.com/10572015/ that we
shouldn't DISALLOW_.. for abstract classes. This class has no member variables
either, so conceptually copying/assigning it is a no op, and we could just allow
it..

Powered by Google App Engine
This is Rietveld 408576698