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

Issue 266373006: Blobs: Mechanism for creating Blobs in browser process, then transferring to renderer. (Closed)

Created:
6 years, 7 months ago by tommycli
Modified:
6 years, 7 months ago
Reviewers:
michaeln, jam
CC:
chromium-reviews, asanka, extensions-reviews_chromium.org, tzik, benjhayden+dwatch_chromium.org, nhiroki, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, kinuko+watch
Visibility:
Public.

Description

Blobs: Mechanism for creating Blobs in browser process, then transferring to renderer. This is in support of https://codereview.chromium.org/250143002, so see the comments there for motivation. BUG=304290 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270549

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : fix indent #

Patch Set 5 : remove a stray line #

Patch Set 6 : self review fixes #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 4

Patch Set 10 : address comments and associate blobs with rvhs #

Patch Set 11 : #

Total comments: 6

Patch Set 12 : strip out extensions stuff into its own patch #

Patch Set 13 : address comments #

Patch Set 14 : move blob_handle to own class #

Total comments: 2

Patch Set 15 : Remove BlobContext. Make a static method instead. #

Patch Set 16 : remove stray gyp entry #

Patch Set 17 : clean up threading issues #

Patch Set 18 : remove stray lines #

Total comments: 2

Patch Set 19 : Move typedef #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -0 lines) Patch
M content/browser/browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +16 lines, -0 lines 0 comments Download
M content/browser/fileapi/chrome_blob_storage_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/fileapi/chrome_blob_storage_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +42 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
A content/public/browser/blob_handle.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +25 lines, -0 lines 0 comments Download
M content/public/browser/browser_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
tommycli
michaeln: This patch is a spinoff of all the Blob-passing logic we discussed in the ...
6 years, 7 months ago (2014-05-07 21:35:58 UTC) #1
michaeln
this is looking pretty good https://codereview.chromium.org/266373006/diff/90001/content/public/browser/fileapi/blob_context.h File content/public/browser/fileapi/blob_context.h (right): https://codereview.chromium.org/266373006/diff/90001/content/public/browser/fileapi/blob_context.h#newcode6 content/public/browser/fileapi/blob_context.h:6: #define CONTENT_PUBLIC_BROWSER_FILEAPI_BLOB_CONTEXT_H_ It may ...
6 years, 7 months ago (2014-05-08 21:11:56 UTC) #2
tommycli
michaeln: Thanks! Here's some changes. https://codereview.chromium.org/266373006/diff/90001/content/public/browser/fileapi/blob_context.h File content/public/browser/fileapi/blob_context.h (right): https://codereview.chromium.org/266373006/diff/90001/content/public/browser/fileapi/blob_context.h#newcode6 content/public/browser/fileapi/blob_context.h:6: #define CONTENT_PUBLIC_BROWSER_FILEAPI_BLOB_CONTEXT_H_ On 2014/05/08 ...
6 years, 7 months ago (2014-05-08 22:43:02 UTC) #3
michaeln
https://codereview.chromium.org/266373006/diff/150001/content/browser/fileapi/chrome_blob_storage_context.cc File content/browser/fileapi/chrome_blob_storage_context.cc (right): https://codereview.chromium.org/266373006/diff/150001/content/browser/fileapi/chrome_blob_storage_context.cc#newcode19 content/browser/fileapi/chrome_blob_storage_context.cc:19: class ChromeBlobHandle : public BlobHandle { The ChromeXXX naming ...
6 years, 7 months ago (2014-05-08 23:03:18 UTC) #4
tommycli
michaeln: Addressed your comments and associated the Blobs with the lifetime of the RenderViewHosts instead ...
6 years, 7 months ago (2014-05-09 16:10:17 UTC) #5
tommycli
michaeln: ping +jam, since this has substantial content/ portion.
6 years, 7 months ago (2014-05-12 18:59:27 UTC) #6
jam
https://codereview.chromium.org/266373006/diff/190001/content/public/browser/browser_context.h File content/public/browser/browser_context.h (right): https://codereview.chromium.org/266373006/diff/190001/content/public/browser/browser_context.h#newcode82 content/public/browser/browser_context.h:82: static content::BlobContext* GetBlobContext(BrowserContext* browser_context); why expose this "blob context" ...
6 years, 7 months ago (2014-05-12 22:35:02 UTC) #7
michaeln
The blob impl parts of this look good and I think the new public api ...
6 years, 7 months ago (2014-05-12 22:43:16 UTC) #8
tommycli
michaeln, jam: Addressed your comments. I also stripped out the extension-specific stuff, and will put ...
6 years, 7 months ago (2014-05-12 23:35:04 UTC) #9
jam
https://codereview.chromium.org/266373006/diff/190001/content/public/browser/browser_context.h File content/public/browser/browser_context.h (right): https://codereview.chromium.org/266373006/diff/190001/content/public/browser/browser_context.h#newcode82 content/public/browser/browser_context.h:82: static content::BlobContext* GetBlobContext(BrowserContext* browser_context); On 2014/05/12 23:35:05, tommycli wrote: ...
6 years, 7 months ago (2014-05-13 02:44:23 UTC) #10
michaeln
> I haven't read through all the comments in that link; but I don't understand ...
6 years, 7 months ago (2014-05-13 03:34:43 UTC) #11
tommycli
jam: moved BlobHandle to a separate file. Thanks! https://codereview.chromium.org/266373006/diff/190001/content/public/browser/browser_context.h File content/public/browser/browser_context.h (right): https://codereview.chromium.org/266373006/diff/190001/content/public/browser/browser_context.h#newcode82 content/public/browser/browser_context.h:82: static ...
6 years, 7 months ago (2014-05-13 18:27:42 UTC) #12
michaeln
This lgtm. If jam would rather the CreateMemoryBackedBlob be a static method or instance method ...
6 years, 7 months ago (2014-05-13 20:59:03 UTC) #13
jam
On 2014/05/13 03:34:43, michaeln wrote: > > I haven't read through all the comments in ...
6 years, 7 months ago (2014-05-13 21:23:26 UTC) #14
jam
https://codereview.chromium.org/266373006/diff/170002/content/public/browser/blob_handle.h File content/public/browser/blob_handle.h (right): https://codereview.chromium.org/266373006/diff/170002/content/public/browser/blob_handle.h#newcode17 content/public/browser/blob_handle.h:17: virtual std::string uuid() = 0; nit: per style guide, ...
6 years, 7 months ago (2014-05-13 21:24:08 UTC) #15
michaeln
having this be a static BrowserContext::CreateFileBackedBlob method sgtm2 > re BlobReader, I imagine that would ...
6 years, 7 months ago (2014-05-13 22:04:51 UTC) #16
tommycli
jam: Removed BlobContext and rejiggered things per your comments. thx https://codereview.chromium.org/266373006/diff/170002/content/public/browser/blob_handle.h File content/public/browser/blob_handle.h (right): https://codereview.chromium.org/266373006/diff/170002/content/public/browser/blob_handle.h#newcode17 ...
6 years, 7 months ago (2014-05-14 00:15:28 UTC) #17
jam
lgtm https://codereview.chromium.org/266373006/diff/320001/content/public/browser/browser_context.h File content/public/browser/browser_context.h (right): https://codereview.chromium.org/266373006/diff/320001/content/public/browser/browser_context.h#newcode49 content/public/browser/browser_context.h:49: typedef base::Callback<void(scoped_ptr<BlobHandle>)> BlobCallback; nit: convention in content api ...
6 years, 7 months ago (2014-05-14 17:14:00 UTC) #18
tommycli
jam: thanks! https://codereview.chromium.org/266373006/diff/320001/content/public/browser/browser_context.h File content/public/browser/browser_context.h (right): https://codereview.chromium.org/266373006/diff/320001/content/public/browser/browser_context.h#newcode49 content/public/browser/browser_context.h:49: typedef base::Callback<void(scoped_ptr<BlobHandle>)> BlobCallback; On 2014/05/14 17:14:00, jam ...
6 years, 7 months ago (2014-05-14 18:07:04 UTC) #19
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 7 months ago (2014-05-14 18:07:11 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/266373006/340001
6 years, 7 months ago (2014-05-14 18:07:22 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 21:01:59 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 21:18:48 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/31498)
6 years, 7 months ago (2014-05-14 21:18:49 UTC) #24
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 7 months ago (2014-05-14 21:34:44 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/266373006/340001
6 years, 7 months ago (2014-05-14 21:36:34 UTC) #26
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 22:37:34 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 22:56:17 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/26946)
6 years, 7 months ago (2014-05-14 22:56:18 UTC) #29
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 7 months ago (2014-05-14 23:55:59 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/266373006/340001
6 years, 7 months ago (2014-05-14 23:56:27 UTC) #31
commit-bot: I haz the power
6 years, 7 months ago (2014-05-15 00:55:16 UTC) #32
Message was sent while issue was closed.
Change committed as 270549

Powered by Google App Engine
This is Rietveld 408576698