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

Issue 9700007: ContentAPI change - Post DomStorage tasks via a SequencedTaskRunner instead of directly to WEBKIT_DE (Closed)

Created:
8 years, 9 months ago by michaeln
Modified:
8 years, 9 months ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, mihaip+watch_chromium.org, Aaron Boodman, benm (inactive), jsbell
Visibility:
Public.

Description

ContentAPI change - Post DomStorage tasks via a SequencedTaskRunner instead of directly to WEBKIT_DEPRECATED. BUG=106763 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=126720

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -51 lines) Patch
M chrome/browser/browsing_data_local_storage_helper.h View 1 2 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/browsing_data_local_storage_helper.cc View 1 6 chunks +18 lines, -19 lines 0 comments Download
M chrome/browser/browsing_data_remover.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data_remover.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_data_deleter.h View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_data_deleter.cc View 2 chunks +9 lines, -7 lines 0 comments Download
M content/browser/in_process_webkit/dom_storage_context_impl.h View 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/in_process_webkit/dom_storage_context_impl.cc View 2 chunks +8 lines, -1 line 0 comments Download
M content/public/browser/dom_storage_context.h View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
michaeln
ptal at this content layer api change and corresponding mods to existing consumers
8 years, 9 months ago (2012-03-14 02:12:59 UTC) #1
michaeln
http://codereview.chromium.org/9700007/diff/1/chrome/browser/browsing_data_local_storage_helper.cc File chrome/browser/browsing_data_local_storage_helper.cc (right): http://codereview.chromium.org/9700007/diff/1/chrome/browser/browsing_data_local_storage_helper.cc#newcode91 chrome/browser/browsing_data_local_storage_helper.cc:91: void BrowsingDataLocalStorageHelper::FetchLocalStorageInfoInWebKitThread() { i'll change these methods names to ...
8 years, 9 months ago (2012-03-14 05:17:26 UTC) #2
michaeln
http://codereview.chromium.org/9700007/diff/1/content/browser/browser_context.cc File content/browser/browser_context.cc (right): http://codereview.chromium.org/9700007/diff/1/content/browser/browser_context.cc#newcode255 content/browser/browser_context.cc:255: context->task_runner()->ReleaseSoon(FROM_HERE, context); On 2012/03/14 05:17:26, michaeln wrote: > to ...
8 years, 9 months ago (2012-03-14 05:18:58 UTC) #3
michaeln
new snapshot i've removed changes to content/browser/browser_context.cc from this CL which just addresses the public ...
8 years, 9 months ago (2012-03-14 18:52:27 UTC) #4
jam
it seems a little awkward to have an interface and say you must call the ...
8 years, 9 months ago (2012-03-14 18:59:40 UTC) #5
michaeln
agreed its not the best api (the functions return values directly instead of providing an ...
8 years, 9 months ago (2012-03-14 19:06:12 UTC) #6
jam
What is the motivation in doing this change? It's hard for me to understand that ...
8 years, 9 months ago (2012-03-14 19:09:40 UTC) #7
michaeln
On 2012/03/14 19:09:40, John Abd-El-Malek wrote: > What is the motivation in doing this change? ...
8 years, 9 months ago (2012-03-14 19:16:25 UTC) #8
michaeln
This change is on my critical path... https://chromiumcodereview.appspot.com/9695013/ I don't want to be distracted from ...
8 years, 9 months ago (2012-03-14 19:40:41 UTC) #9
jam
as discussed with Michael, I'm not a big fan of adding exposing the task runner ...
8 years, 9 months ago (2012-03-14 19:52:28 UTC) #10
michaeln
8 years, 9 months ago (2012-03-14 20:19:17 UTC) #11
On 2012/03/14 19:52:28, John Abd-El-Malek wrote:
> ...and i'll convert this class to use callbacks after he lands.

thnx john, if and when you take a stab at improving the content layer api, in
addition to relaxing the threading requirements and making the interfaces
async... another wart to remove is around the datatypes used in the interface...
'origins' should be expressed as GURLs and FilePath should be abstracted out...
the latter is to allow a later change from sqlite to leveldb backing in which
case there will be one leveldb file containing everything.

  struct UsageInfo {
    GURL origin;
    size_t data_size;
    base::Time last_modified_time;
  }

  // Returns info about all local storage usage.
  virtual std::vector<UsageInfo> GetAllUsageInfo() = 0;

  // Deletes the local storage file for the given origin.
  virtual void DeleteForOrigin(const GURL& origin) = 0;

  // Delete any local storage files that have been touched since the cutoff
  // date that's supplied. Protected origins, per the SpecialStoragePolicy,
  // are not deleted by this method.
  virtual void DeleteDataModifiedSince(const base::Time& cutoff) = 0;

Powered by Google App Engine
This is Rietveld 408576698