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

Issue 1599413005: Use BlobCallback in toBlob instead of FileCallback (Closed)

Created:
4 years, 11 months ago by xlai (Olivia)
Modified:
4 years, 9 months ago
CC:
chromium-reviews, dshwang, tzik, ajuma+watch-canvas_chromium.org, blink-reviews-html_chromium.org, nhiroki, dglazkov+blink, Rik, blink-reviews, kinuko+fileapi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use BlobCallback in toBlob instead of FileCallback Recently there's a spec change: https://github.com/whatwg/html/pull/391. As FileCallback is used extensively in existing DOM File System, I try not to simply rename it to BlobCallback. Adding a new BlobCallback.idl is a temporary definition to suit the needs of toBlob, before crbug.com/569301 feature is available. BUG=568603

Patch Set 1 : Adding BlobCallback for toBlob Use #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -42 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fileapi/Blob.h View 1 chunk +2 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/core/fileapi/Blob.cpp View 1 chunk +12 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/core/fileapi/BlobCallback.h View 1 chunk +8 lines, -8 lines 2 comments Download
A + third_party/WebKit/Source/core/fileapi/BlobCallback.idl View 1 chunk +2 lines, -2 lines 2 comments Download
M third_party/WebKit/Source/core/fileapi/File.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fileapi/File.cpp View 1 chunk +0 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp View 5 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
xlai (Olivia)
I had replaced FileCallback in toBlob to BlobCallback due to recent spec change. In http://crbug.com/568603, ...
4 years, 11 months ago (2016-01-19 21:42:46 UTC) #5
Justin Novosad
Adding philipj as reviewer (API owner + author of the spec change)
4 years, 11 months ago (2016-01-19 22:09:37 UTC) #8
Justin Novosad
lgtm with nits. https://codereview.chromium.org/1599413005/diff/2/third_party/WebKit/Source/core/fileapi/BlobCallback.h File third_party/WebKit/Source/core/fileapi/BlobCallback.h (right): https://codereview.chromium.org/1599413005/diff/2/third_party/WebKit/Source/core/fileapi/BlobCallback.h#newcode2 third_party/WebKit/Source/core/fileapi/BlobCallback.h:2: * Copyright (C) 2010 Google Inc. ...
4 years, 11 months ago (2016-01-19 22:15:49 UTC) #9
Justin Novosad
https://codereview.chromium.org/1599413005/diff/2/third_party/WebKit/Source/core/fileapi/BlobCallback.h File third_party/WebKit/Source/core/fileapi/BlobCallback.h (right): https://codereview.chromium.org/1599413005/diff/2/third_party/WebKit/Source/core/fileapi/BlobCallback.h#newcode40 third_party/WebKit/Source/core/fileapi/BlobCallback.h:40: class BlobCallback : public GarbageCollectedFinalized<BlobCallback> { Why "Finalized"? destructor ...
4 years, 11 months ago (2016-01-19 22:17:37 UTC) #10
philipj_slow
Aren't there any tests that need updating? Given that has been confused, I'd say that ...
4 years, 11 months ago (2016-01-19 22:28:14 UTC) #11
xlai (Olivia)
philipj@: I am trying out a different solution in this issue: https://codereview.chromium.org/1609313002/. The changes about ...
4 years, 11 months ago (2016-01-20 17:54:11 UTC) #12
Justin Novosad
4 years, 11 months ago (2016-01-20 17:57:22 UTC) #13
On 2016/01/20 17:54:11, Olivia wrote:

> junov@: Do I still need to change the (C) to 2016 if the whole file is just a
> renamed file from a older one?

It's not technically a rename (old file still exists). It's a new file -> new
date.

Powered by Google App Engine
This is Rietveld 408576698