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

Issue 76703002: Media Galleries API Metadata: Make Blob native extension bindings available to multiple extensions. (Closed)

Created:
7 years, 1 month ago by tommycli
Modified:
7 years, 1 month ago
Reviewers:
Lei Zhang, rkc
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Media Galleries API Metadata: Make Blob native extension bindings available to multiple extensions. Feedback_private currently has a extension native handler for getting a Blob's UUID. Media Galleries API Metadata and other extensions that take a Blob will also want this. This simply moves the function from a Feedback_private specific custom binding to a general ObjectBackedNativeHandler called BlobNativeHandler. This follows the CssNativeHandler example. The parent class changed from ChromeV8Extension to ObjectBackedNativeHandler because ChromeV8Extension class has been deprecated. R=thestig@chromium.org BUG=318450 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236847

Patch Set 1 #

Total comments: 4

Patch Set 2 : add comment #

Patch Set 3 : address comments #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -69 lines) Patch
M chrome/chrome_renderer.gypi View 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/renderer/extensions/blob_native_handler.h View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
A + chrome/renderer/extensions/blob_native_handler.cc View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 4 chunks +3 lines, -4 lines 0 comments Download
D chrome/renderer/extensions/feedback_private_custom_bindings.h View 1 chunk +0 lines, -24 lines 0 comments Download
D chrome/renderer/extensions/feedback_private_custom_bindings.cc View 1 chunk +0 lines, -30 lines 0 comments Download
M chrome/renderer/resources/extensions/feedback_private_custom_bindings.js View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
tommycli
7 years, 1 month ago (2013-11-19 20:29:54 UTC) #1
tommycli
rkc: Any objections to making your Blob UUID native handler available to other extensions?
7 years, 1 month ago (2013-11-19 20:31:05 UTC) #2
Lei Zhang
couple nits https://codereview.chromium.org/76703002/diff/1/chrome/renderer/extensions/blob_native_handler.cc File chrome/renderer/extensions/blob_native_handler.cc (right): https://codereview.chromium.org/76703002/diff/1/chrome/renderer/extensions/blob_native_handler.cc#newcode22 chrome/renderer/extensions/blob_native_handler.cc:22: DCHECK(args.Length() == 1); DCHECK_EQ https://codereview.chromium.org/76703002/diff/1/chrome/renderer/extensions/blob_native_handler.h File chrome/renderer/extensions/blob_native_handler.h ...
7 years, 1 month ago (2013-11-19 21:28:41 UTC) #3
tommycli
https://codereview.chromium.org/76703002/diff/1/chrome/renderer/extensions/blob_native_handler.cc File chrome/renderer/extensions/blob_native_handler.cc (right): https://codereview.chromium.org/76703002/diff/1/chrome/renderer/extensions/blob_native_handler.cc#newcode22 chrome/renderer/extensions/blob_native_handler.cc:22: DCHECK(args.Length() == 1); On 2013/11/19 21:28:41, Lei Zhang wrote: ...
7 years, 1 month ago (2013-11-19 22:16:05 UTC) #4
tommycli
rkc: Ping
7 years, 1 month ago (2013-11-21 18:08:30 UTC) #5
rkc
lgtm Keep in mind though that this code was implemented as a hack. Currently the ...
7 years, 1 month ago (2013-11-21 21:46:34 UTC) #6
tommycli
thestig: Need OWNER review.
7 years, 1 month ago (2013-11-21 22:29:35 UTC) #7
tommycli
thestig: I restructured the cc file to be the same as before. I added some ...
7 years, 1 month ago (2013-11-22 18:53:15 UTC) #8
Lei Zhang
lgtm
7 years, 1 month ago (2013-11-22 20:10:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/76703002/270001
7 years, 1 month ago (2013-11-22 20:22:55 UTC) #10
commit-bot: I haz the power
7 years, 1 month ago (2013-11-22 22:30:17 UTC) #11
Message was sent while issue was closed.
Change committed as 236847

Powered by Google App Engine
This is Rietveld 408576698