Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Issue 23898006: More Chromium Blob hacking (Closed)

Created:
7 years, 3 months ago by michaeln
Modified:
7 years, 3 months ago
Reviewers:
rkc, kinuko, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, chromium-apps-reviews_chromium.org, darin-cc_chromium.org, jam, extensions-reviews_chromium.org
Visibility:
Public.

Description

More Chromium Blob hacking to switch from bloburls to blobuuids. This cr patch is needed prior to continuing work over on the blnk side. One of many in multi-side-patch-tango. This change introduces a compile time flag, USE_BLOB_UUIDS, to switch over to the new model. The old and new style of identifying these things are currently in place at the webkit api level. This flag tells chromium which to use. Blink is currently still using the old style urls and USE_BLOB_UUIDS is not defined. The flag will be set in the Blink patch that switches it over (it will be defined in WebBlobData.h). There is one blob use case (feedback extension api) up in /chrome that is handled a little differently. Instead of the compile time flag, it relies on a runtime check due to layering/deps rules. There is nothing in the contentAPI about blobs yet and that consumer relies on reading the blob data by urlfetching given only the internalurl/uuid. Also in this change are some minor cleanup to better indicate when we're working with a FileSystemUrl in particular. TBR=kalman BUG=174200 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224906

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 3

Patch Set 9 : #

Total comments: 12

Patch Set 10 : #

Patch Set 11 : #

Total comments: 4

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -51 lines) Patch
M chrome/browser/extensions/api/feedback_private/blob_reader.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/feedback_private/blob_reader.cc View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/feedback_private/feedback_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/extensions/api/feedback_private/feedback_service.cc View 1 2 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/feedback/feedback_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +10 lines, -6 lines 0 comments Download
M chrome/common/extensions/api/feedback_private.idl View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/feedback_private_custom_bindings.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/renderer/resources/extensions/feedback_private_custom_bindings.js View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -8 lines 0 comments Download
M content/child/webblobregistry_impl.cc View 1 chunk +10 lines, -3 lines 0 comments Download
M content/common/page_state_serialization.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/page_state_serialization.cc View 1 2 3 4 5 6 7 8 6 chunks +44 lines, -0 lines 0 comments Download
M content/public/renderer/history_item_serialization.cc View 1 2 2 chunks +10 lines, -2 lines 0 comments Download
M webkit/browser/blob/blob_url_request_job_factory.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
M webkit/child/weburlloader_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
michaeln
@rkc, ptal at the feedback api related stuff and there are a couple of questions ...
7 years, 3 months ago (2013-09-14 00:56:24 UTC) #1
michaeln
I've started work on the blink patch to switch things over... https://codereview.chromium.org/23992003/ ... but need ...
7 years, 3 months ago (2013-09-14 01:36:54 UTC) #2
kinuko
content and fileapi change looks good, I have one question about feedback API's usage of ...
7 years, 3 months ago (2013-09-15 15:51:52 UTC) #3
michaeln
https://codereview.chromium.org/23898006/diff/34001/chrome/renderer/extensions/feedback_private_custom_bindings.cc File chrome/renderer/extensions/feedback_private_custom_bindings.cc (right): https://codereview.chromium.org/23898006/diff/34001/chrome/renderer/extensions/feedback_private_custom_bindings.cc#newcode29 chrome/renderer/extensions/feedback_private_custom_bindings.cc:29: // a BlobDataHandle given the uuid value. On 2013/09/15 ...
7 years, 3 months ago (2013-09-16 20:02:13 UTC) #4
michaeln
https://codereview.chromium.org/23898006/diff/7001/content/common/page_state_serialization.cc File content/common/page_state_serialization.cc (right): https://codereview.chromium.org/23898006/diff/7001/content/common/page_state_serialization.cc#newcode303 content/common/page_state_serialization.cc:303: void WriteStdString(const std::string& s, SerializeObject* obj) { Added these ...
7 years, 3 months ago (2013-09-16 22:43:19 UTC) #5
rkc
https://codereview.chromium.org/23898006/diff/7001/chrome/browser/extensions/api/feedback_private/blob_reader.cc File chrome/browser/extensions/api/feedback_private/blob_reader.cc (right): https://codereview.chromium.org/23898006/diff/7001/chrome/browser/extensions/api/feedback_private/blob_reader.cc#newcode20 chrome/browser/extensions/api/feedback_private/blob_reader.cc:20: // TODO(michaeln): remove support for deprecated blob urls We ...
7 years, 3 months ago (2013-09-17 02:01:02 UTC) #6
kinuko
https://codereview.chromium.org/23898006/diff/34001/chrome/renderer/extensions/feedback_private_custom_bindings.cc File chrome/renderer/extensions/feedback_private_custom_bindings.cc (right): https://codereview.chromium.org/23898006/diff/34001/chrome/renderer/extensions/feedback_private_custom_bindings.cc#newcode29 chrome/renderer/extensions/feedback_private_custom_bindings.cc:29: // a BlobDataHandle given the uuid value. On 2013/09/16 ...
7 years, 3 months ago (2013-09-17 03:13:56 UTC) #7
michaeln
Thnx for looking i'll upload a new patch soon. > To clarify-- when a user ...
7 years, 3 months ago (2013-09-17 20:25:22 UTC) #8
rkc
https://codereview.chromium.org/23898006/diff/7001/chrome/browser/extensions/api/feedback_private/blob_reader.cc File chrome/browser/extensions/api/feedback_private/blob_reader.cc (right): https://codereview.chromium.org/23898006/diff/7001/chrome/browser/extensions/api/feedback_private/blob_reader.cc#newcode20 chrome/browser/extensions/api/feedback_private/blob_reader.cc:20: // TODO(michaeln): remove support for deprecated blob urls On ...
7 years, 3 months ago (2013-09-17 20:40:12 UTC) #9
michaeln
> This might get complicated then; since the binding script will call either > GetBlobUrl ...
7 years, 3 months ago (2013-09-17 20:55:06 UTC) #10
michaeln
new patch, ptal
7 years, 3 months ago (2013-09-17 22:22:40 UTC) #11
asargent_no_longer_on_chrome
https://codereview.chromium.org/23898006/diff/7001/chrome/renderer/extensions/feedback_private_custom_bindings.cc File chrome/renderer/extensions/feedback_private_custom_bindings.cc (right): https://codereview.chromium.org/23898006/diff/7001/chrome/renderer/extensions/feedback_private_custom_bindings.cc#newcode27 chrome/renderer/extensions/feedback_private_custom_bindings.cc:27: // TODO: find where that generic extension plumbing happens? ...
7 years, 3 months ago (2013-09-17 22:29:20 UTC) #12
michaeln
https://codereview.chromium.org/23898006/diff/7001/chrome/renderer/extensions/feedback_private_custom_bindings.cc File chrome/renderer/extensions/feedback_private_custom_bindings.cc (right): https://codereview.chromium.org/23898006/diff/7001/chrome/renderer/extensions/feedback_private_custom_bindings.cc#newcode27 chrome/renderer/extensions/feedback_private_custom_bindings.cc:27: // TODO: find where that generic extension plumbing happens? ...
7 years, 3 months ago (2013-09-17 23:52:18 UTC) #13
michaeln
@kinuko and @rkc... ping
7 years, 3 months ago (2013-09-18 18:15:35 UTC) #14
rkc
lgtm
7 years, 3 months ago (2013-09-18 22:09:39 UTC) #15
kinuko
lgtm
7 years, 3 months ago (2013-09-19 00:33:24 UTC) #16
michaeln
@piman for content owners review
7 years, 3 months ago (2013-09-19 23:47:32 UTC) #17
piman
https://codereview.chromium.org/23898006/diff/14015/content/common/DEPS File content/common/DEPS (right): https://codereview.chromium.org/23898006/diff/14015/content/common/DEPS#newcode15 content/common/DEPS:15: "+third_party/WebKit/public/platform/WebBlobData.h", This is not a stricly enum/POD... https://codereview.chromium.org/23898006/diff/14015/content/common/page_state_serialization.h File ...
7 years, 3 months ago (2013-09-20 01:11:13 UTC) #18
michaeln
https://codereview.chromium.org/23898006/diff/14015/content/common/DEPS File content/common/DEPS (right): https://codereview.chromium.org/23898006/diff/14015/content/common/DEPS#newcode15 content/common/DEPS:15: "+third_party/WebKit/public/platform/WebBlobData.h", On 2013/09/20 01:11:14, piman wrote: > This is ...
7 years, 3 months ago (2013-09-20 19:17:58 UTC) #19
piman
On Fri, Sep 20, 2013 at 12:17 PM, <[email protected]> wrote: > > https://codereview.chromium.**org/23898006/diff/14015/** > content/common/DEPS<https://codereview.chromium.org/23898006/diff/14015/content/common/DEPS> ...
7 years, 3 months ago (2013-09-20 19:49:46 UTC) #20
michaeln
> Which #define? I don't see USE_BLOB_UUIDS in my WebBlobData.h (sigh) please read the cl ...
7 years, 3 months ago (2013-09-20 20:23:43 UTC) #21
michaeln
here's the next patch in the tango-dance... https://codereview.chromium.org/23992003/ I've got WebHTTPBody.h including WebBlobData.h in that ...
7 years, 3 months ago (2013-09-20 20:29:02 UTC) #22
piman
On 2013/09/20 20:23:43, michaeln wrote: > > Which #define? I don't see USE_BLOB_UUIDS in my ...
7 years, 3 months ago (2013-09-20 21:32:27 UTC) #23
michaeln
removed the DEPS addition
7 years, 3 months ago (2013-09-20 22:49:02 UTC) #24
piman
lgtm
7 years, 3 months ago (2013-09-20 22:50:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/23898006/81001
7 years, 3 months ago (2013-09-20 22:57:47 UTC) #26
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, cacheinvalidation_unittests, cc_unittests, check_deps, chrome_frame_net_tests, ...
7 years, 3 months ago (2013-09-21 01:42:29 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/23898006/81001
7 years, 3 months ago (2013-09-23 19:00:56 UTC) #28
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=201370
7 years, 3 months ago (2013-09-24 00:08:17 UTC) #29
michaeln
The CQ is not useful. More often than not, i regret trying to use it.
7 years, 3 months ago (2013-09-24 00:43:57 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/23898006/111001
7 years, 3 months ago (2013-09-24 00:46:32 UTC) #31
commit-bot: I haz the power
7 years, 3 months ago (2013-09-24 04:59:59 UTC) #32
Message was sent while issue was closed.
Change committed as 224906

Powered by Google App Engine
This is Rietveld 408576698