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

Issue 10544089: Implement the file chooser as a new resource "host" (Closed)

Created:
8 years, 6 months ago by brettw
Modified:
8 years, 5 months ago
Reviewers:
bbudge, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jochen+watch-content_chromium.org
Visibility:
Public.

Description

This implements the PPB_FileChooser resource as a new-style IPC-only resource. Note that the new file name is file_chooser_resource in the proxy. I decided to drop the ppb_ prefix for the "new-style" files to help differentiate them, and also because it's technically wrong. PPB is an interface, and a resource "object" may support multiple interfaces. I think FooResource is easier to type and read. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=146737

Patch Set 1 #

Patch Set 2 : runs in process #

Patch Set 3 : unit test works #

Patch Set 4 : #

Patch Set 5 : merged #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 21

Patch Set 11 : #

Patch Set 12 : #

Total comments: 3

Patch Set 13 : #

Patch Set 14 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1308 lines, -928 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -0 lines 3 comments Download
M content/renderer/pepper/content_renderer_pepper_host_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -2 lines 0 comments Download
M content/renderer/pepper/content_renderer_pepper_host_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +23 lines, -3 lines 0 comments Download
A content/renderer/pepper/pepper_file_chooser_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +68 lines, -0 lines 0 comments Download
A content/renderer/pepper/pepper_file_chooser_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +176 lines, -0 lines 0 comments Download
A content/renderer/pepper/pepper_file_chooser_host_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +175 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_in_process_resource_creation.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_in_process_resource_creation.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +17 lines, -2 lines 0 comments Download
A content/renderer/pepper/pepper_instance_state_accessor.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +33 lines, -0 lines 0 comments Download
A content/renderer/pepper/pepper_instance_state_accessor_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +45 lines, -0 lines 0 comments Download
A content/renderer/pepper/pepper_instance_state_accessor_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +50 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -5 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +31 lines, -16 lines 0 comments Download
M ppapi/examples/2d/paint_manager_example.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
A ppapi/host/dispatch_host_message.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +78 lines, -0 lines 0 comments Download
M ppapi/ppapi_host.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -2 lines 0 comments Download
M ppapi/ppapi_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A ppapi/proxy/file_chooser_resource.h View 1 2 3 4 5 6 7 8 1 chunk +89 lines, -0 lines 0 comments Download
A ppapi/proxy/file_chooser_resource.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +149 lines, -0 lines 0 comments Download
A ppapi/proxy/file_chooser_resource_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +140 lines, -0 lines 0 comments Download
M ppapi/proxy/host_dispatcher.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/proxy/plugin_dispatcher.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +17 lines, -0 lines 0 comments Download
A ppapi/proxy/plugin_resource.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +64 lines, -0 lines 0 comments Download
A ppapi/proxy/plugin_resource.cc View 1 2 3 4 5 6 7 8 1 chunk +52 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +13 lines, -19 lines 0 comments Download
M ppapi/proxy/ppapi_proxy_test.h View 1 2 3 4 5 6 7 5 chunks +14 lines, -3 lines 0 comments Download
M ppapi/proxy/ppapi_proxy_test.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
D ppapi/proxy/ppb_file_chooser_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -75 lines 0 comments Download
D ppapi/proxy/ppb_file_chooser_proxy.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -311 lines 0 comments Download
M ppapi/proxy/ppb_file_ref_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +5 lines, -6 lines 0 comments Download
M ppapi/proxy/ppb_file_ref_proxy.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -3 lines 0 comments Download
M ppapi/shared_impl/ppb_file_ref_shared.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/thunk/interfaces_ppb_private.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_dev.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -3 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -6 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -7 lines 0 comments Download
D webkit/plugins/ppapi/ppb_file_chooser_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -114 lines 0 comments Download
D webkit/plugins/ppapi/ppb_file_chooser_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -288 lines 0 comments Download
D webkit/plugins/ppapi/ppb_file_chooser_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -39 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_ref_impl.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.cc View 1 2 3 4 5 6 7 9 10 2 chunks +0 lines, -8 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
brettw
This looks scarier than it is. It builds on this patch still under review: https://chromiumcodereview.appspot.com/10578043/ ...
8 years, 5 months ago (2012-06-30 18:53:03 UTC) #1
brettw
https://chromiumcodereview.appspot.com/10544089/diff/24001/ppapi/examples/2d/paint_manager_example.cc File ppapi/examples/2d/paint_manager_example.cc (right): https://chromiumcodereview.appspot.com/10544089/diff/24001/ppapi/examples/2d/paint_manager_example.cc#newcode14 ppapi/examples/2d/paint_manager_example.cc:14: #include "ppapi/cpp/dev/file_chooser_dev.h" Ignore the changes in this file; I'll ...
8 years, 5 months ago (2012-06-30 19:01:58 UTC) #2
bbudge
https://chromiumcodereview.appspot.com/10544089/diff/24001/content/renderer/pepper/pepper_file_chooser_host.cc File content/renderer/pepper/pepper_file_chooser_host.cc (right): https://chromiumcodereview.appspot.com/10544089/diff/24001/content/renderer/pepper/pepper_file_chooser_host.cc#newcode145 content/renderer/pepper/pepper_file_chooser_host.cc:145: std::vector<WebKit::WebString> web_accept(accept_mime_types.size()); I like 'mime_types' or 'web_accept_mime_types' better here. ...
8 years, 5 months ago (2012-07-02 20:06:06 UTC) #3
brettw
New snap up. I think I got everything. https://chromiumcodereview.appspot.com/10544089/diff/24001/content/renderer/pepper/pepper_file_chooser_host.cc File content/renderer/pepper/pepper_file_chooser_host.cc (right): https://chromiumcodereview.appspot.com/10544089/diff/24001/content/renderer/pepper/pepper_file_chooser_host.cc#newcode147 content/renderer/pepper/pepper_file_chooser_host.cc:147: web_accept[0] ...
8 years, 5 months ago (2012-07-07 05:28:04 UTC) #4
bbudge
A few questions, otherwise LGTM. http://codereview.chromium.org/10544089/diff/32001/content/renderer/pepper/content_instance_glue.h File content/renderer/pepper/content_instance_glue.h (right): http://codereview.chromium.org/10544089/diff/32001/content/renderer/pepper/content_instance_glue.h#newcode16 content/renderer/pepper/content_instance_glue.h:16: class ContentInstanceGlue { Can ...
8 years, 5 months ago (2012-07-09 20:41:36 UTC) #5
brettw
http://codereview.chromium.org/10544089/diff/32001/ppapi/proxy/host_dispatcher.cc File ppapi/proxy/host_dispatcher.cc (right): http://codereview.chromium.org/10544089/diff/32001/ppapi/proxy/host_dispatcher.cc#newcode189 ppapi/proxy/host_dispatcher.cc:189: } That;s actually what allows the host to receive ...
8 years, 5 months ago (2012-07-13 04:57:41 UTC) #6
jam
http://codereview.chromium.org/10544089/diff/43001/content/content_tests.gypi File content/content_tests.gypi (right): http://codereview.chromium.org/10544089/diff/43001/content/content_tests.gypi#newcode545 content/content_tests.gypi:545: 'renderer/pepper/pepper_file_chooser_host_browsertest.cc', did you mean to add this to content_unittests ...
8 years, 5 months ago (2012-07-18 00:52:19 UTC) #7
brettw
http://codereview.chromium.org/10544089/diff/43001/content/content_tests.gypi File content/content_tests.gypi (right): http://codereview.chromium.org/10544089/diff/43001/content/content_tests.gypi#newcode545 content/content_tests.gypi:545: 'renderer/pepper/pepper_file_chooser_host_browsertest.cc', Do I lose anything by moving it? I ...
8 years, 5 months ago (2012-07-18 19:15:33 UTC) #8
jam
8 years, 5 months ago (2012-07-18 21:45:40 UTC) #9
http://codereview.chromium.org/10544089/diff/43001/content/content_tests.gypi
File content/content_tests.gypi (right):

http://codereview.chromium.org/10544089/diff/43001/content/content_tests.gypi...
content/content_tests.gypi:545:
'renderer/pepper/pepper_file_chooser_host_browsertest.cc',
On 2012/07/18 19:15:33, brettw wrote:
> Do I lose anything by moving it? I thought I needed a browsertest. I actually
> did run this test, although I had to --gtest_filter to run only this one test.

I'm not sure what you mean by needing a browsertest. That binary, for now, is
basically just like content_unittests since there's no content browser test
infrastructure yet.

content_browsertests doesn't run any buildbot, so this test isn't running
anywhere now.

Powered by Google App Engine
This is Rietveld 408576698