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

Issue 14472008: [FileAPI] Add file open ID and close callback (Closed)

Created:
7 years, 8 months ago by tzik
Modified:
7 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, kinuko+watch, jam, tzik+watch_chromium.org
Visibility:
Public.

Description

[FileAPI] Add file open ID and close callback This CL changes opened file tracking from URL based to sequence number based. On close file sequence, current impl passes its URL only to FileSystemOperation to notify file close, and new version calls a callback registered on file open. The callback can have more context than URL, such as, which file was opened. BUG=220029, 235736 TEST='no functional change. should not break existing test.' Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197290

Patch Set 1 #

Patch Set 2 : "" #

Patch Set 3 : chromeos part #

Total comments: 4

Patch Set 4 : s/close_callback/on_close_callback/, use IDMap #

Total comments: 2

Patch Set 5 : fix leak with IDMapOwnPointer #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -70 lines) Patch
M chrome/browser/chromeos/drive/file_system_proxy.h View 1 2 3 4 5 5 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system_proxy.cc View 1 2 3 4 5 5 chunks +8 lines, -5 lines 0 comments Download
M content/browser/fileapi/fileapi_message_filter.h View 1 2 3 4 5 6 3 chunks +5 lines, -4 lines 0 comments Download
M content/browser/fileapi/fileapi_message_filter.cc View 1 2 3 4 5 6 3 chunks +22 lines, -28 lines 0 comments Download
M content/common/fileapi/file_system_dispatcher.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/common/fileapi/file_system_dispatcher.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M content/common/fileapi/file_system_messages.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/pepper/null_file_system_callback_dispatcher.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/null_file_system_callback_dispatcher.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 3 chunks +11 lines, -14 lines 0 comments Download
M webkit/chromeos/fileapi/remote_file_system_operation.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webkit/chromeos/fileapi/remote_file_system_operation.cc View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_callback_dispatcher.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/fileapi/file_system_callback_dispatcher.cc View 1 chunk +3 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_operation.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/fileapi/local_file_system_operation.cc View 1 2 3 4 5 6 6 chunks +11 lines, -1 line 0 comments Download
M webkit/fileapi/remote_file_system_proxy.h View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
tzik
Hi, all. I'd like to change file Open-Close sequence for better open file tracking. Could ...
7 years, 8 months ago (2013-04-25 03:22:24 UTC) #1
kinuko
(higher-level comments first) https://codereview.chromium.org/14472008/diff/5001/content/browser/fileapi/fileapi_message_filter.h File content/browser/fileapi/fileapi_message_filter.h (right): https://codereview.chromium.org/14472008/diff/5001/content/browser/fileapi/fileapi_message_filter.h#newcode202 content/browser/fileapi/fileapi_message_filter.h:202: std::map<int, base::Closure> close_file_callbacks_; If we don't ...
7 years, 8 months ago (2013-04-25 05:55:52 UTC) #2
tzik
Thanks! Updated! https://codereview.chromium.org/14472008/diff/5001/content/browser/fileapi/fileapi_message_filter.h File content/browser/fileapi/fileapi_message_filter.h (right): https://codereview.chromium.org/14472008/diff/5001/content/browser/fileapi/fileapi_message_filter.h#newcode202 content/browser/fileapi/fileapi_message_filter.h:202: std::map<int, base::Closure> close_file_callbacks_; On 2013/04/25 05:55:52, kinuko ...
7 years, 8 months ago (2013-04-25 06:43:46 UTC) #3
kinuko
lgtm
7 years, 8 months ago (2013-04-25 09:10:14 UTC) #4
kinaba
https://codereview.chromium.org/14472008/diff/11001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/14472008/diff/11001/content/browser/fileapi/fileapi_message_filter.cc#newcode470 content/browser/fileapi/fileapi_message_filter.cc:470: on_close_callback->Run(); If I understand correctly, you need to delete ...
7 years, 8 months ago (2013-04-25 09:31:13 UTC) #5
tzik
Updated! https://codereview.chromium.org/14472008/diff/11001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/14472008/diff/11001/content/browser/fileapi/fileapi_message_filter.cc#newcode470 content/browser/fileapi/fileapi_message_filter.cc:470: on_close_callback->Run(); On 2013/04/25 09:31:14, kinaba wrote: > If ...
7 years, 8 months ago (2013-04-25 10:38:25 UTC) #6
kinaba
lgtm
7 years, 8 months ago (2013-04-25 14:12:14 UTC) #7
tzik
Adding Cris as a content/common/fileapi/*_messages.h OWNERS. Cris: Please take a look to content/common/fileapi/file_system_messages.h change. I'm ...
7 years, 8 months ago (2013-04-26 04:22:17 UTC) #8
Cris Neckar
IPC security audit LGTM
7 years, 7 months ago (2013-04-29 16:49:19 UTC) #9
yzshen1
On 2013/04/29 16:49:19, Cris Neckar wrote: > IPC security audit LGTM pepper LGTM Thanks!
7 years, 7 months ago (2013-04-29 17:36:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tzik@chromium.org/14472008/27001
7 years, 7 months ago (2013-04-30 03:26:47 UTC) #11
commit-bot: I haz the power
7 years, 7 months ago (2013-04-30 05:57:45 UTC) #12
Message was sent while issue was closed.
Change committed as 197290

Powered by Google App Engine
This is Rietveld 408576698