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

Issue 11359097: Refactored the PPB_Flash_File_ModuleLocal/FileRef to the new ppapi resource model (Closed)

Created:
8 years, 1 month ago by raymes
Modified:
8 years ago
Reviewers:
Tom Sepez, brettw, yzshen1
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, yzshen+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, raymes+watch_chromium.org, piman+watch_chromium.org, native-client-reviews_googlegroups.com, ihf+watch_chromium.org
Visibility:
Public.

Description

Refactored the PPB_Flash_File_ModuleLocal/FileRef to the new ppapi resource model The refactors PPB_Flash_File_ModuleLocal/FileRef to the new resource model. Calls for both these interfaces are now made directly to the browser. This removes the in-process implementation for these interfaces also (as they are flash-only). Tests are added for PPB_Flash_File_ModuleLocal. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171902

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : y #

Patch Set 9 : . #

Total comments: 58

Patch Set 10 : . #

Patch Set 11 : . #

Total comments: 4

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : . #

Patch Set 15 : . #

Patch Set 16 : . #

Patch Set 17 : . #

Patch Set 18 : . #

Patch Set 19 : . #

Patch Set 20 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1256 lines, -1637 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/nacl/nacl_ipc_adapter.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/ppapi/ppapi_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/plugin_data_remover_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.h View 1 2 chunks +0 lines, -4 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +8 lines, -6 lines 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +9 lines, -1 line 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +22 lines, -4 lines 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
D content/browser/renderer_host/pepper/pepper_file_message_filter.h View 1 chunk +0 lines, -138 lines 0 comments Download
D content/browser/renderer_host/pepper/pepper_file_message_filter.cc View 1 chunk +0 lines, -367 lines 0 comments Download
A content/browser/renderer_host/pepper/pepper_flash_file_host.h View 1 2 3 4 5 6 7 8 9 1 chunk +44 lines, -0 lines 0 comments Download
A content/browser/renderer_host/pepper/pepper_flash_file_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +367 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +0 lines, -7 lines 0 comments Download
M content/common/all_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -1 line 0 comments Download
M content/common/pepper_plugin_registry.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/browser/browser_ppapi_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 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 13 14 15 1 chunk +0 lines, -20 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 14 15 2 chunks +0 lines, -81 lines 0 comments Download
M ppapi/c/private/ppb_flash_file.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -11 lines 0 comments Download
M ppapi/ppapi_ipc.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
A ppapi/proxy/flash_file_resource.h View 1 2 3 4 5 6 7 8 9 1 chunk +73 lines, -0 lines 0 comments Download
A ppapi/proxy/flash_file_resource.cc View 1 2 3 4 5 6 7 8 9 1 chunk +231 lines, -0 lines 0 comments Download
D ppapi/proxy/pepper_file_messages.h View 1 chunk +0 lines, -82 lines 0 comments Download
D ppapi/proxy/pepper_file_messages.cc View 1 chunk +0 lines, -68 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -3 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/plugin_resource.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +17 lines, -10 lines 0 comments Download
M ppapi/proxy/plugin_resource.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +7 lines, -6 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +30 lines, -11 lines 0 comments Download
M ppapi/proxy/ppapi_param_traits.h View 2 chunks +9 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_param_traits.cc View 1 2 3 chunks +44 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +2 lines, -41 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +0 lines, -234 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +5 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_message_params.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -2 lines 0 comments Download
M ppapi/proxy/resource_message_params.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M ppapi/proxy/serialized_structs.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +14 lines, -3 lines 0 comments Download
M ppapi/proxy/serialized_structs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +13 lines, -4 lines 0 comments Download
M ppapi/shared_impl/file_path.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -6 lines 0 comments Download
M ppapi/shared_impl/file_path.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -31 lines 0 comments Download
D ppapi/shared_impl/ppb_flash_shared.h View 1 chunk +0 lines, -30 lines 0 comments Download
D ppapi/shared_impl/ppb_flash_shared.cc View 1 chunk +0 lines, -23 lines 0 comments Download
M ppapi/shared_impl/resource.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/shared_impl/singleton_resource_id.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/tests/test_flash_file.h View 1 2 3 1 chunk +13 lines, -2 lines 0 comments Download
M ppapi/tests/test_flash_file.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +209 lines, -1 line 0 comments Download
M ppapi/thunk/ppb_file_ref_api.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/thunk/ppb_flash_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -34 lines 0 comments Download
A ppapi/thunk/ppb_flash_file_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +63 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_flash_file_fileref_thunk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -8 lines 0 comments Download
M ppapi/thunk/ppb_flash_file_modulelocal_thunk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +18 lines, -31 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -20 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -41 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -21 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -30 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +0 lines, -229 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
raymes
8 years, 1 month ago (2012-11-19 18:37:21 UTC) #1
raymes
About 300 lines saved (even with tests added). brettw: High level and a few details. ...
8 years, 1 month ago (2012-11-19 18:45:04 UTC) #2
brettw
browser_ppapi_host and pepper_plugin_registry lgtm. It sucks adding all of this stuff to browser_ppapi_host, but I ...
8 years, 1 month ago (2012-11-20 00:09:34 UTC) #3
raymes
> It sucks adding all of this stuff to browser_ppapi_host, but I don't think > ...
8 years, 1 month ago (2012-11-20 00:26:39 UTC) #4
raymes
> It sucks adding all of this stuff to browser_ppapi_host, but I don't think > ...
8 years, 1 month ago (2012-11-20 00:26:40 UTC) #5
yzshen1
https://codereview.chromium.org/11359097/diff/10032/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc File content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc (right): https://codereview.chromium.org/11359097/diff/10032/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc#newcode26 content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc:26: // PPB_Flash_File interfaces and so it doesn't matter. nit: ...
8 years, 1 month ago (2012-11-21 00:38:59 UTC) #6
raymes
https://codereview.chromium.org/11359097/diff/10032/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc File content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc (right): https://codereview.chromium.org/11359097/diff/10032/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc#newcode26 content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc:26: // PPB_Flash_File interfaces and so it doesn't matter. On ...
8 years, 1 month ago (2012-11-21 22:44:52 UTC) #7
yzshen1
LGTM with two nits Thanks! https://codereview.chromium.org/11359097/diff/14078/content/browser/renderer_host/pepper/pepper_flash_file_host.cc File content/browser/renderer_host/pepper/pepper_flash_file_host.cc (right): https://codereview.chromium.org/11359097/diff/14078/content/browser/renderer_host/pepper/pepper_flash_file_host.cc#newcode45 content/browser/renderer_host/pepper/pepper_flash_file_host.cc:45: const FilePath& profile_data_directory, wrong ...
8 years ago (2012-12-03 18:12:23 UTC) #8
raymes
+tsepez for ppapi_messages.h. Note that the attack surface is unchanged.
8 years ago (2012-12-04 00:37:18 UTC) #9
Tom Sepez
LGTM on _messages.h
8 years ago (2012-12-04 00:46:00 UTC) #10
raymes
https://chromiumcodereview.appspot.com/11359097/diff/14078/content/browser/renderer_host/pepper/pepper_flash_file_host.cc File content/browser/renderer_host/pepper/pepper_flash_file_host.cc (right): https://chromiumcodereview.appspot.com/11359097/diff/14078/content/browser/renderer_host/pepper/pepper_flash_file_host.cc#newcode45 content/browser/renderer_host/pepper/pepper_flash_file_host.cc:45: const FilePath& profile_data_directory, On 2012/12/03 18:12:23, yzshen1 wrote: > ...
8 years ago (2012-12-04 20:06:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/11359097/11108
8 years ago (2012-12-04 20:19:15 UTC) #12
commit-bot: I haz the power
Presubmit check for 11359097-11108 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-04 20:19:48 UTC) #13
raymes
yzshen: PTAL. The only change is that I fixed the issue causing http://code.google.com/p/chromium/issues/detail?id=164450 where the ...
8 years ago (2012-12-07 19:51:53 UTC) #14
yzshen1
I have difficulty to find out what is the real change. Could you please tell ...
8 years ago (2012-12-07 20:10:23 UTC) #15
raymes
You can diff patch set 14. Thanks. On Fri, Dec 7, 2012 at 12:10 PM, ...
8 years ago (2012-12-07 20:45:08 UTC) #16
raymes
You can diff patch set 14. Thanks. On Fri, Dec 7, 2012 at 12:10 PM, ...
8 years ago (2012-12-07 20:45:10 UTC) #17
yzshen1
lgtm
8 years ago (2012-12-07 21:06:17 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/11359097/47005
8 years ago (2012-12-07 21:07:40 UTC) #19
commit-bot: I haz the power
8 years ago (2012-12-07 21:08:12 UTC) #20
Presubmit check for 11359097-47005 failed and returned exit status 1.


Running presubmit commit checks ...

** Presubmit Messages **
If this change has an associated bug, add BUG=[bug number].

** Presubmit Warnings **
Missing PPAPI IDL for private interface, please generate IDL:

***************
  ppapi/c/private/ppb_flash_file.h
***************

Presubmit checks took 5.9s to calculate.

Powered by Google App Engine
This is Rietveld 408576698