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

Issue 11026070: Add API to construct new vector interchange MIME data type. (Closed)

Created:
8 years, 2 months ago by Greg Billock
Modified:
8 years, 2 months ago
CC:
chromium-reviews, groby+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, gbillock+watch_chromium.org, smckay+watch_chromium.org, rouslan+watch_chromium.org
Visibility:
Public.

Description

Add API to construct new vector interchange MIME data type. Add test for web intents host. R=groby@chromium.org BUG=153695 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162239

Patch Set 1 #

Total comments: 12

Patch Set 2 : Factor out WebIntent creation #

Patch Set 3 : Export symbol needed for test #

Total comments: 8

Patch Set 4 : Review comment changes #

Total comments: 8

Patch Set 5 : Use current v8 context #

Patch Set 6 : Serialize list directly #

Patch Set 7 : Switch to DidCreateScriptContext #

Total comments: 12

Patch Set 8 : Remove v8 scope creation #

Patch Set 9 : Take out blob #

Total comments: 10

Patch Set 10 : Switch to switch #

Total comments: 4

Patch Set 11 : Improve comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -79 lines) Patch
M content/browser/intents/intent_injector.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/web_intents_host.h View 1 2 3 4 5 6 3 chunks +24 lines, -10 lines 0 comments Download
M content/renderer/web_intents_host.cc View 1 2 3 4 5 6 7 8 9 3 chunks +94 lines, -65 lines 0 comments Download
A content/renderer/web_intents_host_browsertest.cc View 1 chunk +120 lines, -0 lines 0 comments Download
M webkit/glue/web_intent_data.h View 1 6 chunks +21 lines, -2 lines 0 comments Download
M webkit/glue/web_intent_data.cc View 2 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (0 generated)
Greg Billock
8 years, 2 months ago (2012-10-05 17:22:30 UTC) #1
groby-ooo-7-16
http://codereview.chromium.org/11026070/diff/1/content/renderer/web_intents_host.cc File content/renderer/web_intents_host.cc (right): http://codereview.chromium.org/11026070/diff/1/content/renderer/web_intents_host.cc#newcode195 content/renderer/web_intents_host.cc:195: // Do stuffs. You're fixing that comment, right? ;) ...
8 years, 2 months ago (2012-10-05 17:56:35 UTC) #2
Greg Billock
http://codereview.chromium.org/11026070/diff/1/content/renderer/web_intents_host.cc File content/renderer/web_intents_host.cc (right): http://codereview.chromium.org/11026070/diff/1/content/renderer/web_intents_host.cc#newcode195 content/renderer/web_intents_host.cc:195: // Do stuffs. :-) On 2012/10/05 17:56:35, groby wrote: ...
8 years, 2 months ago (2012-10-05 22:03:26 UTC) #3
Greg Billock
On 2012/10/05 22:03:26, Greg Billock wrote: > http://codereview.chromium.org/11026070/diff/1/content/renderer/web_intents_host.cc > File content/renderer/web_intents_host.cc (right): > > http://codereview.chromium.org/11026070/diff/1/content/renderer/web_intents_host.cc#newcode195 ...
8 years, 2 months ago (2012-10-08 17:11:08 UTC) #4
groby-ooo-7-16
http://codereview.chromium.org/11026070/diff/5002/content/renderer/web_intents_host.cc File content/renderer/web_intents_host.cc (right): http://codereview.chromium.org/11026070/diff/5002/content/renderer/web_intents_host.cc#newcode143 content/renderer/web_intents_host.cc:143: // Must be called with v8 scope held. Can ...
8 years, 2 months ago (2012-10-08 19:01:04 UTC) #5
Greg Billock
http://codereview.chromium.org/11026070/diff/5002/content/renderer/web_intents_host.cc File content/renderer/web_intents_host.cc (right): http://codereview.chromium.org/11026070/diff/5002/content/renderer/web_intents_host.cc#newcode143 content/renderer/web_intents_host.cc:143: // Must be called with v8 scope held. I ...
8 years, 2 months ago (2012-10-08 21:26:35 UTC) #6
groby-ooo-7-16
LGTM (mod refactor) http://codereview.chromium.org/11026070/diff/6013/webkit/glue/web_intent_data.h File webkit/glue/web_intent_data.h (right): http://codereview.chromium.org/11026070/diff/6013/webkit/glue/web_intent_data.h#newcode82 webkit/glue/web_intent_data.h:82: WebIntentData(const string16& action_in, Both the proliferation ...
8 years, 2 months ago (2012-10-09 20:55:14 UTC) #7
Greg Billock
http://codereview.chromium.org/11026070/diff/6013/webkit/glue/web_intent_data.h File webkit/glue/web_intent_data.h (right): http://codereview.chromium.org/11026070/diff/6013/webkit/glue/web_intent_data.h#newcode82 webkit/glue/web_intent_data.h:82: WebIntentData(const string16& action_in, On 2012/10/09 20:55:14, groby wrote: > ...
8 years, 2 months ago (2012-10-09 21:25:17 UTC) #8
Greg Billock
On 2012/10/09 21:25:17, Greg Billock wrote: > http://codereview.chromium.org/11026070/diff/6013/webkit/glue/web_intent_data.h > File webkit/glue/web_intent_data.h (right): > > http://codereview.chromium.org/11026070/diff/6013/webkit/glue/web_intent_data.h#newcode82 ...
8 years, 2 months ago (2012-10-10 16:48:22 UTC) #9
abarth-chromium
http://codereview.chromium.org/11026070/diff/6013/content/renderer/web_intents_host.cc File content/renderer/web_intents_host.cc (right): http://codereview.chromium.org/11026070/diff/6013/content/renderer/web_intents_host.cc#newcode137 content/renderer/web_intents_host.cc:137: WebIntent web_intent = CreateWebIntent(frame, *(intent_.get())); Why do you need ...
8 years, 2 months ago (2012-10-11 19:29:34 UTC) #10
Greg Billock
http://codereview.chromium.org/11026070/diff/6013/content/renderer/web_intents_host.cc File content/renderer/web_intents_host.cc (right): http://codereview.chromium.org/11026070/diff/6013/content/renderer/web_intents_host.cc#newcode137 content/renderer/web_intents_host.cc:137: WebIntent web_intent = CreateWebIntent(frame, *(intent_.get())); On 2012/10/11 19:29:34, abarth ...
8 years, 2 months ago (2012-10-11 19:48:53 UTC) #11
abarth-chromium
On 2012/10/11 19:48:53, Greg Billock wrote: > http://codereview.chromium.org/11026070/diff/6013/content/renderer/web_intents_host.cc > File content/renderer/web_intents_host.cc (right): > > http://codereview.chromium.org/11026070/diff/6013/content/renderer/web_intents_host.cc#newcode137 ...
8 years, 2 months ago (2012-10-11 20:03:52 UTC) #12
abarth-chromium
I ran a quick test: Object.prototype.__defineSetter__("foo", function() { alert(99) }); var ttt = {}; ttt.foo ...
8 years, 2 months ago (2012-10-11 20:08:43 UTC) #13
Greg Billock
On 2012/10/11 20:03:52, abarth wrote: > On 2012/10/11 19:48:53, Greg Billock wrote: > > > ...
8 years, 2 months ago (2012-10-11 20:55:57 UTC) #14
abarth-chromium
It's very unlikely that you should be creating a new v8::Context for this work. All ...
8 years, 2 months ago (2012-10-11 21:12:22 UTC) #15
abarth-chromium
If I had to guess, though, I would guess that the correct design here involves ...
8 years, 2 months ago (2012-10-11 21:12:47 UTC) #16
Greg Billock
Agreed it would be nicer not to touch the v8 api here. Since we aren't ...
8 years, 2 months ago (2012-10-11 21:34:39 UTC) #17
abarth-chromium
Our experience with "go with this for now" and clean up later has been pretty ...
8 years, 2 months ago (2012-10-11 21:43:36 UTC) #18
Greg Billock
:-) I hear you. Let's talk tomorrow. Here's an idea: Looking at the context, the ...
8 years, 2 months ago (2012-10-12 04:39:06 UTC) #19
abarth-chromium
DidClearWindowObject doesn't work correctly with isolated worlds yet. We're working on fixing it, but there ...
8 years, 2 months ago (2012-10-12 04:41:50 UTC) #20
Greg Billock
Sounds good. Shall I send you a patch to propagate didCreateScriptContext? Or shall we just ...
8 years, 2 months ago (2012-10-12 04:49:27 UTC) #21
abarth-chromium
You'll probably need to send the didCreateScriptContext patch to someone else. I'm not an OWNER ...
8 years, 2 months ago (2012-10-12 05:24:18 UTC) #22
Greg Billock
On 2012/10/12 05:24:18, abarth wrote: > You'll probably need to send the didCreateScriptContext patch to ...
8 years, 2 months ago (2012-10-12 19:46:17 UTC) #23
abarth-chromium
This definitely seems like an improvement since we're not longer assuming that the main world ...
8 years, 2 months ago (2012-10-12 19:59:09 UTC) #24
abarth-chromium
Does this happen for every frame, or is the work limited to a single frame ...
8 years, 2 months ago (2012-10-12 19:59:59 UTC) #25
Greg Billock
http://codereview.chromium.org/11026070/diff/34001/content/renderer/web_intents_host.cc File content/renderer/web_intents_host.cc (right): http://codereview.chromium.org/11026070/diff/34001/content/renderer/web_intents_host.cc#newcode135 content/renderer/web_intents_host.cc:135: v8::Context::Scope cscope(ctx); On 2012/10/12 19:59:09, abarth wrote: > Do ...
8 years, 2 months ago (2012-10-12 21:32:39 UTC) #26
abarth-chromium
> But see V8ValueConverterImpl, for instance. It uses v8::Object::New, and then > result->Set on the ...
8 years, 2 months ago (2012-10-12 21:37:21 UTC) #27
Greg Billock
On 2012/10/12 19:59:59, abarth wrote: > Does this happen for every frame, or is the ...
8 years, 2 months ago (2012-10-13 07:47:15 UTC) #28
abarth-chromium
We might also use them for the web insector, but not delivering sounds like the ...
8 years, 2 months ago (2012-10-13 07:54:17 UTC) #29
Greg Billock
On 2012/10/12 21:37:21, abarth wrote: > > But see V8ValueConverterImpl, for instance. It uses v8::Object::New, ...
8 years, 2 months ago (2012-10-13 07:56:52 UTC) #30
abarth-chromium
Thanks for iterating on this patch. The use of the V8 API in this patch ...
8 years, 2 months ago (2012-10-13 08:01:24 UTC) #31
Greg Billock
On 2012/10/13 08:01:24, abarth wrote: > Thanks for iterating on this patch. The use of ...
8 years, 2 months ago (2012-10-14 03:51:53 UTC) #32
jamesr
http://codereview.chromium.org/11026070/diff/44001/content/renderer/web_intents_host.cc File content/renderer/web_intents_host.cc (right): http://codereview.chromium.org/11026070/diff/44001/content/renderer/web_intents_host.cc#newcode137 content/renderer/web_intents_host.cc:137: WebIntent web_intent = CreateWebIntent(frame, *(intent_.get())); scoped_ptr<> has an operator* ...
8 years, 2 months ago (2012-10-15 01:58:29 UTC) #33
Greg Billock
http://codereview.chromium.org/11026070/diff/44001/content/renderer/web_intents_host.cc File content/renderer/web_intents_host.cc (right): http://codereview.chromium.org/11026070/diff/44001/content/renderer/web_intents_host.cc#newcode137 content/renderer/web_intents_host.cc:137: WebIntent web_intent = CreateWebIntent(frame, *(intent_.get())); On 2012/10/15 01:58:29, jamesr ...
8 years, 2 months ago (2012-10-15 19:23:31 UTC) #34
jamesr
webkit/glue and content/renderer lgtm
8 years, 2 months ago (2012-10-15 19:28:22 UTC) #35
Steve McKay
Drive by nits. https://codereview.chromium.org/11026070/diff/53001/content/browser/intents/intent_injector.cc File content/browser/intents/intent_injector.cc (right): https://codereview.chromium.org/11026070/diff/53001/content/browser/intents/intent_injector.cc#newcode85 content/browser/intents/intent_injector.cc:85: if (source_intent_->data_type == webkit_glue::WebIntentData::BLOB || The ...
8 years, 2 months ago (2012-10-15 19:31:10 UTC) #36
jamesr
https://codereview.chromium.org/11026070/diff/53001/content/renderer/web_intents_host.h > File content/renderer/web_intents_host.h (right): > > https://codereview.chromium.org/11026070/diff/53001/content/renderer/web_intents_host.h#newcode50 > content/renderer/web_intents_host.h:50: virtual void > DidCreateScriptContext(WebKit::WebFrame* frame, ...
8 years, 2 months ago (2012-10-15 19:32:51 UTC) #37
Greg Billock
http://codereview.chromium.org/11026070/diff/53001/content/browser/intents/intent_injector.cc File content/browser/intents/intent_injector.cc (right): http://codereview.chromium.org/11026070/diff/53001/content/browser/intents/intent_injector.cc#newcode85 content/browser/intents/intent_injector.cc:85: if (source_intent_->data_type == webkit_glue::WebIntentData::BLOB || On 2012/10/15 19:31:10, Steve ...
8 years, 2 months ago (2012-10-15 21:01:43 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/11026070/43002
8 years, 2 months ago (2012-10-15 21:02:24 UTC) #39
commit-bot: I haz the power
Presubmit check for 11026070-43002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-15 21:02:36 UTC) #40
Greg Billock
On 2012/10/15 21:02:36, I haz the power (commit-bot) wrote: > Presubmit check for 11026070-43002 failed ...
8 years, 2 months ago (2012-10-15 21:41:06 UTC) #41
jam
On 2012/10/15 21:41:06, Greg Billock wrote: > On 2012/10/15 21:02:36, I haz the power (commit-bot) ...
8 years, 2 months ago (2012-10-16 18:05:08 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/11026070/43002
8 years, 2 months ago (2012-10-16 18:30:40 UTC) #43
commit-bot: I haz the power
8 years, 2 months ago (2012-10-16 20:41:22 UTC) #44
Change committed as 162239

Powered by Google App Engine
This is Rietveld 408576698