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

Issue 306403005: Pepper: Use an adaptor to invoke FileSystemOperationRunner::OpenFile (Closed)

Created:
6 years, 6 months ago by rvargas (doing something else)
Modified:
6 years, 6 months ago
Reviewers:
bbudge
CC:
chromium-reviews, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Pepper: Use an adaptor to invoke FileSystemOperationRunner::OpenFile PepperFileIOHost keeps a weak pointer of FileSystemOperationRunner so when it goes away it cannot delete the runner as expected by the fileapi implementation. This CL adds an adapter class in the middle so that when OpenFile completes after PepperFileIOHost destruction, the file is bounced back to another thread to be closed. BUG=377599 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274782

Patch Set 1 : #

Total comments: 5

Patch Set 2 : Review comments #

Patch Set 3 : Invoke on_close_callback #

Total comments: 2

Patch Set 4 : add base:: #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -21 lines) Patch
M chrome/test/ppapi/ppapi_browsertest.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_file_io_host.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_file_io_host.cc View 1 2 3 12 chunks +39 lines, -14 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
rvargas (doing something else)
PTAL
6 years, 6 months ago (2014-06-03 17:54:46 UTC) #1
bbudge
https://codereview.chromium.org/306403005/diff/20001/content/browser/renderer_host/pepper/pepper_file_io_host.cc File content/browser/renderer_host/pepper/pepper_file_io_host.cc (right): https://codereview.chromium.org/306403005/diff/20001/content/browser/renderer_host/pepper/pepper_file_io_host.cc#newcode110 content/browser/renderer_host/pepper/pepper_file_io_host.cc:110: base::Bind(&FileCloser, Passed(&file))); Shouldn't we call 'on_close_callback' on this path ...
6 years, 6 months ago (2014-06-03 18:21:52 UTC) #2
rvargas (doing something else)
https://codereview.chromium.org/306403005/diff/20001/content/browser/renderer_host/pepper/pepper_file_io_host.cc File content/browser/renderer_host/pepper/pepper_file_io_host.cc (right): https://codereview.chromium.org/306403005/diff/20001/content/browser/renderer_host/pepper/pepper_file_io_host.cc#newcode110 content/browser/renderer_host/pepper/pepper_file_io_host.cc:110: base::Bind(&FileCloser, Passed(&file))); On 2014/06/03 18:21:53, bbudge wrote: > Shouldn't ...
6 years, 6 months ago (2014-06-03 23:04:54 UTC) #3
rvargas (doing something else)
thanks https://codereview.chromium.org/306403005/diff/20001/content/browser/renderer_host/pepper/pepper_file_io_host.cc File content/browser/renderer_host/pepper/pepper_file_io_host.cc (right): https://codereview.chromium.org/306403005/diff/20001/content/browser/renderer_host/pepper/pepper_file_io_host.cc#newcode110 content/browser/renderer_host/pepper/pepper_file_io_host.cc:110: base::Bind(&FileCloser, Passed(&file))); On second thought, now there is ...
6 years, 6 months ago (2014-06-03 23:19:58 UTC) #4
bbudge
LGTM (one nit). Thanks for doing this! https://codereview.chromium.org/306403005/diff/50001/content/browser/renderer_host/pepper/pepper_file_io_host.cc File content/browser/renderer_host/pepper/pepper_file_io_host.cc (right): https://codereview.chromium.org/306403005/diff/50001/content/browser/renderer_host/pepper/pepper_file_io_host.cc#newcode99 content/browser/renderer_host/pepper/pepper_file_io_host.cc:99: base::Bind(&FileCloser, Passed(&file)), ...
6 years, 6 months ago (2014-06-03 23:43:09 UTC) #5
rvargas (doing something else)
Thanks https://codereview.chromium.org/306403005/diff/50001/content/browser/renderer_host/pepper/pepper_file_io_host.cc File content/browser/renderer_host/pepper/pepper_file_io_host.cc (right): https://codereview.chromium.org/306403005/diff/50001/content/browser/renderer_host/pepper/pepper_file_io_host.cc#newcode99 content/browser/renderer_host/pepper/pepper_file_io_host.cc:99: base::Bind(&FileCloser, Passed(&file)), On 2014/06/03 23:43:09, bbudge wrote: > ...
6 years, 6 months ago (2014-06-04 01:36:12 UTC) #6
rvargas (doing something else)
The CQ bit was checked by rvargas@chromium.org
6 years, 6 months ago (2014-06-04 01:36:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/306403005/70001
6 years, 6 months ago (2014-06-04 01:38:40 UTC) #8
commit-bot: I haz the power
6 years, 6 months ago (2014-06-04 12:15:14 UTC) #9
Message was sent while issue was closed.
Change committed as 274782

Powered by Google App Engine
This is Rietveld 408576698