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

Issue 7046019: Implement DatabaseQuotaClient's DeteleteOriginData method. (Closed)

Created:
9 years, 7 months ago by michaeln
Modified:
9 years, 7 months ago
Reviewers:
kinuko, tzik
CC:
chromium-reviews, darin-cc_chromium.org, dgrogan
Visibility:
Public.

Description

Implement DatabaseQuotaClient's DeteleteOriginData method. TEST=database_quota_client_unittest.cc BUG=61676 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86561

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 1

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 7

Patch Set 12 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -16 lines) Patch
M webkit/database/database_quota_client.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M webkit/database/database_quota_client.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +74 lines, -9 lines 0 comments Download
M webkit/database/database_quota_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +65 lines, -3 lines 0 comments Download
M webkit/quota/quota_task.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -2 lines 0 comments Download
M webkit/quota/quota_task.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
michaeln
i still have to write some tests
9 years, 7 months ago (2011-05-20 00:40:30 UTC) #1
kinuko
http://codereview.chromium.org/7046019/diff/1/webkit/database/database_quota_client.cc File webkit/database/database_quota_client.cc (right): http://codereview.chromium.org/7046019/diff/1/webkit/database/database_quota_client.cc#newcode150 webkit/database/database_quota_client.cc:150: caller_callback_.reset(); // should i call it with the ABORT ...
9 years, 7 months ago (2011-05-20 02:13:24 UTC) #2
tzik
http://codereview.chromium.org/7046019/diff/1/webkit/database/database_quota_client.cc File webkit/database/database_quota_client.cc (right): http://codereview.chromium.org/7046019/diff/1/webkit/database/database_quota_client.cc#newcode276 webkit/database/database_quota_client.cc:276: callback->Run(quota::kQuotaStatusOk); maybe callback->Run(quota::kQuotaErrorNotSupported); ?
9 years, 7 months ago (2011-05-20 03:19:54 UTC) #3
michaeln
http://codereview.chromium.org/7046019/diff/1/webkit/database/database_quota_client.cc File webkit/database/database_quota_client.cc (right): http://codereview.chromium.org/7046019/diff/1/webkit/database/database_quota_client.cc#newcode150 webkit/database/database_quota_client.cc:150: caller_callback_.reset(); // should i call it with the ABORT ...
9 years, 7 months ago (2011-05-20 05:14:23 UTC) #4
tzik
http://codereview.chromium.org/7046019/diff/1/webkit/database/database_quota_client.cc File webkit/database/database_quota_client.cc (right): http://codereview.chromium.org/7046019/diff/1/webkit/database/database_quota_client.cc#newcode276 webkit/database/database_quota_client.cc:276: callback->Run(quota::kQuotaStatusOk); On 2011/05/20 05:14:23, michaeln wrote: > On 2011/05/20 ...
9 years, 7 months ago (2011-05-20 13:26:49 UTC) #5
michaeln
added a test, ptal
9 years, 7 months ago (2011-05-21 03:23:31 UTC) #6
michaeln
http://codereview.chromium.org/7046019/diff/7002/webkit/database/database_quota_client_unittest.cc File webkit/database/database_quota_client_unittest.cc (right): http://codereview.chromium.org/7046019/diff/7002/webkit/database/database_quota_client_unittest.cc#newcode69 webkit/database/database_quota_client_unittest.cc:69: virtual int DeleteDataForOrigin( oh... i need to include a ...
9 years, 7 months ago (2011-05-21 03:27:25 UTC) #7
michaeln
> webkit/database/database_quota_client_unittest.cc:69: virtual int > DeleteDataForOrigin( > oh... i need to include a change in ...
9 years, 7 months ago (2011-05-21 03:34:46 UTC) #8
michaeln
kinuko, i found and fixed some bugs in the DeleteTask * it was using the ...
9 years, 7 months ago (2011-05-22 21:22:33 UTC) #9
kinuko
lgtm http://codereview.chromium.org/7046019/diff/13007/webkit/database/database_quota_client.cc File webkit/database/database_quota_client.cc (right): http://codereview.chromium.org/7046019/diff/13007/webkit/database/database_quota_client.cc#newcode167 webkit/database/database_quota_client.cc:167: Release(); // balanced in RunOnTargetThread nit: RunOnTargetThread -> ...
9 years, 7 months ago (2011-05-23 04:55:53 UTC) #10
tzik
LGTM http://codereview.chromium.org/7046019/diff/13007/webkit/quota/quota_task.h File webkit/quota/quota_task.h (right): http://codereview.chromium.org/7046019/diff/13007/webkit/quota/quota_task.h#newcode69 webkit/quota/quota_task.h:69: // One of the following should be overriden. ...
9 years, 7 months ago (2011-05-23 05:30:59 UTC) #11
michaeln
9 years, 7 months ago (2011-05-23 21:56:52 UTC) #12
http://codereview.chromium.org/7046019/diff/13007/webkit/database/database_qu...
File webkit/database/database_quota_client.cc (right):

http://codereview.chromium.org/7046019/diff/13007/webkit/database/database_qu...
webkit/database/database_quota_client.cc:167: Release();  // balanced in
RunOnTargetThread
On 2011/05/23 04:55:53, kinuko wrote:
> nit: RunOnTargetThread -> ...Async (in the comment)

Done.

http://codereview.chromium.org/7046019/diff/13007/webkit/database/database_qu...
webkit/database/database_quota_client.cc:264: // All databases are in the temp
namespace for now.
On 2011/05/23 04:55:53, kinuko wrote:
> Can we also say something like '... and no need to delete anything for other
> types.'?  I was about to make the same comment as tzik-san did.

Done.

http://codereview.chromium.org/7046019/diff/13007/webkit/quota/quota_task.h
File webkit/quota/quota_task.h (right):

http://codereview.chromium.org/7046019/diff/13007/webkit/quota/quota_task.h#n...
webkit/quota/quota_task.h:69: // One of the following should be overriden.
On 2011/05/23 05:30:59, tzik wrote:
> Could you add some more comment for RunOnTargetThreadAsync?

Done.

  // One of the following Run methods should be overriden for execution
  // on the target thread.

  // A task to invoke the CallCompleted() method on the original thread will
  // be scheduled immediately upon return from RunOnTargetThread().
  virtual void RunOnTargetThread();

  // A task to invoke the CallCompleted() method on the original thread will
  // only be scheduled if RunOnTargetThreadAsync returns true. If false is
  // returned, the derived class should schedule a task to do so upon actual
  // completion.
  virtual bool RunOnTargetThreadAsync();

Powered by Google App Engine
This is Rietveld 408576698