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

Issue 251093: Modify extension request IPC messages to pass a ListValue instead of a string. (Closed)

Created:
11 years, 2 months ago by Matt Perry
Modified:
9 years, 7 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Modify extension request IPC messages to pass a ListValue instead of a string. This allows us to pass binary values through extension requests. I use this in my next CL to pass SkBitmaps. BUG=23269 TEST=no Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28130

Patch Set 1 #

Total comments: 6

Patch Set 2 : unit test compile fix #

Patch Set 3 : notreached messages #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -73 lines) Patch
M base/values.h View 2 chunks +2 lines, -1 line 0 comments Download
M base/values.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/automation/automation_extension_function.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/automation/automation_extension_function.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/dom_ui.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/dom_ui/dom_ui.cc View 2 chunks +2 lines, -14 lines 0 comments Download
M chrome/browser/extensions/extension_dom_ui.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_dom_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_function.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_function.cc View 1 chunk +2 lines, -13 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 4 chunks +23 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/render_messages_internal.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/extension_api_client_unittest.cc View 2 chunks +9 lines, -1 line 0 comments Download
M chrome/renderer/extensions/extension_process_bindings.cc View 1 2 2 chunks +19 lines, -2 lines 0 comments Download
M chrome/renderer/render_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_message_utils.cc View 3 chunks +25 lines, -19 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Matt Perry
11 years, 2 months ago (2009-10-05 22:09:53 UTC) #1
Aaron Boodman
Cool, my only real comment is about the weird situation with the 1-element list. http://codereview.chromium.org/251093/diff/1/16 ...
11 years, 2 months ago (2009-10-06 00:09:40 UTC) #2
Matt Perry
http://codereview.chromium.org/251093/diff/1/16 File chrome/browser/renderer_host/render_view_host.cc (right): http://codereview.chromium.org/251093/diff/1/16#newcode1227 Line 1227: NOTREACHED(); On 2009/10/06 00:09:40, Aaron Boodman wrote: > ...
11 years, 2 months ago (2009-10-06 00:34:12 UTC) #3
Aaron Boodman
We would have to change the js side to always send a list (delete code ...
11 years, 2 months ago (2009-10-06 00:51:15 UTC) #4
Matt Perry
On 2009/10/06 00:51:15, Aaron Boodman wrote: > We would have to change the js side ...
11 years, 2 months ago (2009-10-06 00:54:09 UTC) #5
Aaron Boodman
11 years, 2 months ago (2009-10-06 01:02:24 UTC) #6
Ok fine.

lgtm

On Mon, Oct 5, 2009 at 5:54 PM,  <mpcomplete@chromium.org> wrote:
> On 2009/10/06 00:51:15, Aaron Boodman wrote:
>>
>> We would have to change the js side to always send a list (delete code
>> that
>> special cases a single value), and change ExtensionFunction to make args_
>> a
>> ListValue, and then change all the ExtensionFunctions that are currently
>> just
>> casting it to some value to get the first item out and cast that. It seems
>
> like
>>
>> it should be pretty mechanical.
>
> Yeah. It just seems like a lot of grunt work for little gain.
>
> http://codereview.chromium.org/251093
>

Powered by Google App Engine
This is Rietveld 408576698