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

Issue 11958033: Implement Pepper proxy for PPB_DirectoryReader (Closed)

Created:
7 years, 11 months ago by nhiroki
Modified:
7 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Yusuke Sato, tzik, kinuko, jschuh
Visibility:
Public.

Description

Implement Pepper proxy for PPB_DirectoryReader This patch includes: - Adding proxy implementation (DircetoryReaderResource and PepperDirectoryReaderHost) - Merging PPB_DirectoryReader_impl into PepperDirectoryReaderHost BUG=106129 TEST=browser_tests --gtest_filter=\*DirectoryReader\* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182189

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 2

Patch Set 3 : fix #

Patch Set 4 : rebase #

Patch Set 5 : fix DirectoryReader creation thunk (crbug/171539) #

Total comments: 38

Patch Set 6 : review fix #

Total comments: 10

Patch Set 7 : rebase #

Patch Set 8 : review fix #

Patch Set 9 : merge PPB_DirectoryReader_Impl into PepperDirectoryReaderHost #

Total comments: 17

Patch Set 10 : fix resource management #

Patch Set 11 : fix test failure #

Total comments: 19

Patch Set 12 : fix resource management #

Total comments: 6

Patch Set 13 : review fix #

Patch Set 14 : rebase #

Total comments: 6

Patch Set 15 : review fix #

Total comments: 12

Patch Set 16 : review fix #

Patch Set 17 : rebase #

Patch Set 18 : test fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+548 lines, -275 lines) Patch
M chrome/test/ppapi/ppapi_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -4 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/content_renderer_pepper_host_factory.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
A content/renderer/pepper/pepper_directory_reader_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +72 lines, -0 lines 0 comments Download
A content/renderer/pepper/pepper_directory_reader_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +211 lines, -0 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 16 1 chunk +2 lines, -0 lines 0 comments Download
A ppapi/proxy/directory_reader_resource.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +73 lines, -0 lines 0 comments Download
A ppapi/proxy/directory_reader_resource.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +120 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 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 16 3 chunks +10 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc 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/tests/test_file_ref.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +22 lines, -23 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_dev.h View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/thunk/ppb_directory_reader_thunk.cc View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M ppapi/thunk/resource_creation_api.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/file_callbacks.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -3 lines 0 comments Download
M webkit/plugins/ppapi/file_callbacks.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -12 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
D webkit/plugins/ppapi/ppb_directory_reader_impl.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -55 lines 0 comments Download
D webkit/plugins/ppapi/ppb_directory_reader_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -156 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_ref_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +4 lines, -5 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_system_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
nhiroki
Hi, could you take a early look at this? Thanks!
7 years, 11 months ago (2013-01-18 02:39:13 UTC) #1
kinuko
David, Yuzhu, while API discussion is going on on the other CL (https://codereview.chromium.org/12026008/) is it ...
7 years, 11 months ago (2013-01-21 05:00:00 UTC) #2
nhiroki
Updated. I'll add tests for the resource and the host later.
7 years, 11 months ago (2013-01-21 11:15:07 UTC) #3
yzshen1
Haven't read pepper_directory_reader_host.h. Thanks! https://codereview.chromium.org/11958033/diff/5001/ppapi/ppapi_proxy.gypi File ppapi/ppapi_proxy.gypi (right): https://codereview.chromium.org/11958033/diff/5001/ppapi/ppapi_proxy.gypi#newcode40 ppapi/ppapi_proxy.gypi:40: 'proxy/directory_reader_resource.cc', alphabetically, please. https://codereview.chromium.org/11958033/diff/5001/ppapi/proxy/ppapi_messages.h File ...
7 years, 11 months ago (2013-01-24 21:55:43 UTC) #4
nhiroki
Updated. Thanks for your review! https://codereview.chromium.org/11958033/diff/36002/content/renderer/pepper/pepper_directory_reader_host.h File content/renderer/pepper/pepper_directory_reader_host.h (right): https://codereview.chromium.org/11958033/diff/36002/content/renderer/pepper/pepper_directory_reader_host.h#newcode15 content/renderer/pepper/pepper_directory_reader_host.h:15: #include "ppapi/proxy/enter_proxy.h" On 2013/01/24 ...
7 years, 11 months ago (2013-01-25 12:27:16 UTC) #5
yzshen1
https://codereview.chromium.org/11958033/diff/36002/content/renderer/pepper/pepper_directory_reader_host.cc File content/renderer/pepper/pepper_directory_reader_host.cc (right): https://codereview.chromium.org/11958033/diff/36002/content/renderer/pepper/pepper_directory_reader_host.cc#newcode106 content/renderer/pepper/pepper_directory_reader_host.cc:106: PpapiPluginMsg_DirectoryReader_GetNextEntryReply(host_resources_, Do you need to clear this and file_types_? ...
7 years, 10 months ago (2013-01-28 17:52:34 UTC) #6
brettw
LGTM for content owners gypi. I did not look at any details, I'll have that ...
7 years, 10 months ago (2013-01-28 20:29:56 UTC) #7
nhiroki
Thank you for reviewing! PTAL https://codereview.chromium.org/11958033/diff/36002/content/renderer/pepper/pepper_directory_reader_host.cc File content/renderer/pepper/pepper_directory_reader_host.cc (right): https://codereview.chromium.org/11958033/diff/36002/content/renderer/pepper/pepper_directory_reader_host.cc#newcode106 content/renderer/pepper/pepper_directory_reader_host.cc:106: PpapiPluginMsg_DirectoryReader_GetNextEntryReply(host_resources_, On 2013/01/28 17:52:34, ...
7 years, 10 months ago (2013-01-29 05:10:34 UTC) #8
nhiroki
I merged PPB_DirectoryReader_Impl into PepperDirectoryReaderHost. Could you take another look? Thanks!
7 years, 10 months ago (2013-01-29 17:18:06 UTC) #9
dmichael (off chromium)
https://codereview.chromium.org/11958033/diff/39005/content/renderer/pepper/pepper_directory_reader_host.h File content/renderer/pepper/pepper_directory_reader_host.h (right): https://codereview.chromium.org/11958033/diff/39005/content/renderer/pepper/pepper_directory_reader_host.h#newcode27 content/renderer/pepper/pepper_directory_reader_host.h:27: public base::SupportsWeakPtr<PepperDirectoryReaderHost> { ^^^ Please just use a WeakPtrFactory, ...
7 years, 10 months ago (2013-01-29 21:22:42 UTC) #10
dmichael (off chromium)
https://codereview.chromium.org/11958033/diff/53008/ppapi/proxy/directory_reader_resource.h File ppapi/proxy/directory_reader_resource.h (right): https://codereview.chromium.org/11958033/diff/53008/ppapi/proxy/directory_reader_resource.h#newcode50 ppapi/proxy/directory_reader_resource.h:50: PP_Resource directory_ref_; On 2013/01/29 21:22:42, dmichael wrote: > Probably ...
7 years, 10 months ago (2013-01-29 21:25:31 UTC) #11
nhiroki
Thank you for comments! Updated. https://codereview.chromium.org/11958033/diff/39005/content/renderer/pepper/pepper_directory_reader_host.h File content/renderer/pepper/pepper_directory_reader_host.h (right): https://codereview.chromium.org/11958033/diff/39005/content/renderer/pepper/pepper_directory_reader_host.h#newcode27 content/renderer/pepper/pepper_directory_reader_host.h:27: public base::SupportsWeakPtr<PepperDirectoryReaderHost> { On ...
7 years, 10 months ago (2013-01-30 09:24:51 UTC) #12
yzshen1
https://codereview.chromium.org/11958033/diff/70005/content/renderer/pepper/pepper_directory_reader_host.cc File content/renderer/pepper/pepper_directory_reader_host.cc (right): https://codereview.chromium.org/11958033/diff/70005/content/renderer/pepper/pepper_directory_reader_host.cc#newcode57 content/renderer/pepper/pepper_directory_reader_host.cc:57: explicit ReadDirectoryCallback(OnReadDirectoryCallback callback) Please use const ref. https://codereview.chromium.org/11958033/diff/70005/content/renderer/pepper/pepper_directory_reader_host.cc#newcode124 content/renderer/pepper/pepper_directory_reader_host.cc:124: ...
7 years, 10 months ago (2013-01-31 08:50:54 UTC) #13
nhiroki
PTAL, thanks! https://codereview.chromium.org/11958033/diff/70005/content/renderer/pepper/pepper_directory_reader_host.cc File content/renderer/pepper/pepper_directory_reader_host.cc (right): https://codereview.chromium.org/11958033/diff/70005/content/renderer/pepper/pepper_directory_reader_host.cc#newcode57 content/renderer/pepper/pepper_directory_reader_host.cc:57: explicit ReadDirectoryCallback(OnReadDirectoryCallback callback) On 2013/01/31 08:50:54, yzshen1 ...
7 years, 10 months ago (2013-02-01 08:19:47 UTC) #14
yzshen1
https://codereview.chromium.org/11958033/diff/70005/content/renderer/pepper/pepper_directory_reader_host.cc File content/renderer/pepper/pepper_directory_reader_host.cc (right): https://codereview.chromium.org/11958033/diff/70005/content/renderer/pepper/pepper_directory_reader_host.cc#newcode176 content/renderer/pepper/pepper_directory_reader_host.cc:176: for (Entries::const_iterator it = entries.begin(); > In my understanding, ...
7 years, 10 months ago (2013-02-01 23:57:47 UTC) #15
nhiroki
Updated, thanks! https://codereview.chromium.org/11958033/diff/58047/content/renderer/pepper/pepper_directory_reader_host.cc File content/renderer/pepper/pepper_directory_reader_host.cc (right): https://codereview.chromium.org/11958033/diff/58047/content/renderer/pepper/pepper_directory_reader_host.cc#newcode183 content/renderer/pepper/pepper_directory_reader_host.cc:183: file_ref->GetReference(); On 2013/02/01 23:57:47, yzshen1 wrote: > ...
7 years, 10 months ago (2013-02-02 05:14:57 UTC) #16
yzshen1
LGTM Only a few more nits. Thanks for all the work in response to my ...
7 years, 10 months ago (2013-02-05 05:55:44 UTC) #17
nhiroki
Thank you for a lot of informative comments! https://codereview.chromium.org/11958033/diff/89001/content/renderer/pepper/pepper_directory_reader_host.cc File content/renderer/pepper/pepper_directory_reader_host.cc (right): https://codereview.chromium.org/11958033/diff/89001/content/renderer/pepper/pepper_directory_reader_host.cc#newcode191 content/renderer/pepper/pepper_directory_reader_host.cc:191: it->file_ref->GetReference(); ...
7 years, 10 months ago (2013-02-05 08:24:37 UTC) #18
nhiroki
+jln@, could you review "ppapi_messages.h"? Thanks!
7 years, 10 months ago (2013-02-05 08:43:29 UTC) #19
jln (very slow on Chromium)
On 2013/02/05 08:43:29, nhiroki wrote: > +jln@, could you review "ppapi_messages.h"? Thanks! Hello, sorry for ...
7 years, 10 months ago (2013-02-06 06:36:28 UTC) #20
nhiroki
On 2013/02/06 06:36:28, Julien Tinnes wrote: > On 2013/02/05 08:43:29, nhiroki wrote: > > +jln@, ...
7 years, 10 months ago (2013-02-06 08:37:32 UTC) #21
jln (very slow on Chromium)
Thanks. I think this warrants a closer look, which I won't be able to provide ...
7 years, 10 months ago (2013-02-06 22:29:25 UTC) #22
dmichael (off chromium)
lgtm mostly nits https://codereview.chromium.org/11958033/diff/100001/ppapi/proxy/directory_reader_resource.cc File ppapi/proxy/directory_reader_resource.cc (right): https://codereview.chromium.org/11958033/diff/100001/ppapi/proxy/directory_reader_resource.cc#newcode81 ppapi/proxy/directory_reader_resource.cc:81: has_more_ = false; has_more_ is a ...
7 years, 10 months ago (2013-02-06 22:44:21 UTC) #23
nhiroki
Updated, thanks https://codereview.chromium.org/11958033/diff/100001/ppapi/proxy/directory_reader_resource.cc File ppapi/proxy/directory_reader_resource.cc (right): https://codereview.chromium.org/11958033/diff/100001/ppapi/proxy/directory_reader_resource.cc#newcode81 ppapi/proxy/directory_reader_resource.cc:81: has_more_ = false; On 2013/02/06 22:44:21, dmichael ...
7 years, 10 months ago (2013-02-07 09:37:26 UTC) #24
nhiroki
On 2013/02/06 22:29:25, Julien Tinnes wrote: > If you want to make the branch cut, ...
7 years, 10 months ago (2013-02-07 09:52:10 UTC) #25
nhiroki
+jschuh@ Julien, thanks for your suggestion on chat! Hi Justin, could you review ppapi_messages.h on ...
7 years, 10 months ago (2013-02-08 04:03:37 UTC) #26
nhiroki
Ping jschuh@, do you have time to look at this? Thanks.
7 years, 10 months ago (2013-02-13 02:19:47 UTC) #27
jln (very slow on Chromium)
I've spent some time looking at this. As all changes related to PPAPI and the ...
7 years, 10 months ago (2013-02-13 03:33:28 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/11958033/110001
7 years, 10 months ago (2013-02-13 03:51:41 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/11958033/107011
7 years, 10 months ago (2013-02-13 07:39:36 UTC) #30
commit-bot: I haz the power
7 years, 10 months ago (2013-02-13 11:41:42 UTC) #31
Message was sent while issue was closed.
Change committed as 182189

Powered by Google App Engine
This is Rietveld 408576698