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

Issue 273513005: Avoid sync IPCs for FileSystem API [chromium] (2/4) (Closed)

Created:
6 years, 7 months ago by Xi Han
Modified:
6 years, 7 months ago
CC:
chromium-reviews, markusheintz_
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Avoid sync IPCs for FileSystem API This patch continues the work of issue 170733004(https://codereview.chromium.org/170733004). Two things are done in this patch: 1) Update the patch to compile again. 2) Move IPC handler to chrome_render_message_filter, and update content_settings_observer.cc. BUG=343382 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272676

Patch Set 1 #

Total comments: 6

Patch Set 2 : Changes are made. #

Patch Set 3 : Fix a bug #

Total comments: 7

Patch Set 4 : Use PostTaskAndReply(). #

Total comments: 4

Patch Set 5 : Add DCHECK. #

Total comments: 8

Patch Set 6 : Refactory #

Patch Set 7 : Add the missing code changes for shared worker. #

Total comments: 6

Patch Set 8 : Small changes are made. #

Total comments: 2

Patch Set 9 : Remove unused sync method in content_settings_observer. #

Patch Set 10 : A little clean up of code. #

Total comments: 5

Patch Set 11 : Use IPC_message_control. #

Total comments: 4

Patch Set 12 : Remove PostTaskAndReply(). #

Patch Set 13 : Changes are made. #

Total comments: 1

Patch Set 14 : clean up. #

Patch Set 15 : rebase origin/master #

Patch Set 16 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -30 lines) Patch
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +34 lines, -5 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +14 lines, -1 line 0 comments Download
M chrome/renderer/content_settings_observer.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/renderer/content_settings_observer.cc View 1 2 3 4 5 6 7 8 6 chunks +48 lines, -3 lines 0 comments Download
M chrome/renderer/worker_permission_client_proxy.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/worker_permission_client_proxy.cc View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -1 line 0 comments Download
M content/browser/shared_worker/shared_worker_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/shared_worker/shared_worker_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/worker_host/worker_process_host.h View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/worker_host/worker_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -4 lines 0 comments Download
M content/common/worker_messages.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/worker/shared_worker_permission_client_proxy.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/worker/shared_worker_permission_client_proxy.cc View 1 2 3 4 5 6 1 chunk +12 lines, -1 line 0 comments Download

Messages

Total messages: 44 (0 generated)
Xi Han
jochen: I update Fady's patch according to your comments. please take a look at of ...
6 years, 7 months ago (2014-05-07 18:01:20 UTC) #1
jochen (gone - plz use gerrit)
https://codereview.chromium.org/273513005/diff/1/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/273513005/diff/1/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode22 chrome/browser/content_settings/tab_specific_content_settings.cc:22: #include "chrome/browser/content_settings/cookie_settings.h" unrelated change? https://codereview.chromium.org/273513005/diff/1/chrome/renderer/content_settings_observer.cc File chrome/renderer/content_settings_observer.cc (right): https://codereview.chromium.org/273513005/diff/1/chrome/renderer/content_settings_observer.cc#newcode641 ...
6 years, 7 months ago (2014-05-08 07:38:52 UTC) #2
Xi Han
https://codereview.chromium.org/273513005/diff/1/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/273513005/diff/1/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode22 chrome/browser/content_settings/tab_specific_content_settings.cc:22: #include "chrome/browser/content_settings/cookie_settings.h" On 2014/05/08 07:38:53, jochen wrote: > unrelated ...
6 years, 7 months ago (2014-05-08 19:48:30 UTC) #3
Xi Han
A bug from my previous CL is fixed. Please take another look at. Thanks a ...
6 years, 7 months ago (2014-05-13 14:52:37 UTC) #4
Xi Han
A bug from my previous CL is fixed. Please take another look at. Thanks a ...
6 years, 7 months ago (2014-05-13 15:02:51 UTC) #5
Fady Samuel
https://codereview.chromium.org/273513005/diff/60001/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/273513005/diff/60001/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode208 chrome/browser/content_settings/tab_specific_content_settings.cc:208: void TabSpecificContentSettings::FileSystemAccessedAsyn( No need for this function. https://codereview.chromium.org/273513005/diff/60001/chrome/browser/renderer_host/chrome_render_message_filter.cc File ...
6 years, 7 months ago (2014-05-13 17:22:25 UTC) #6
Xi Han
https://codereview.chromium.org/273513005/diff/60001/chrome/browser/content_settings/tab_specific_content_settings.cc File chrome/browser/content_settings/tab_specific_content_settings.cc (right): https://codereview.chromium.org/273513005/diff/60001/chrome/browser/content_settings/tab_specific_content_settings.cc#newcode208 chrome/browser/content_settings/tab_specific_content_settings.cc:208: void TabSpecificContentSettings::FileSystemAccessedAsyn( On 2014/05/13 17:22:25, Fady Samuel wrote: > ...
6 years, 7 months ago (2014-05-13 18:08:37 UTC) #7
Fady Samuel
https://codereview.chromium.org/273513005/diff/80001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/273513005/diff/80001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode452 chrome/browser/renderer_host/chrome_render_message_filter.cc:452: const IPC::Message& message) { Add a DCHECK to verify ...
6 years, 7 months ago (2014-05-13 18:11:49 UTC) #8
Xi Han
https://codereview.chromium.org/273513005/diff/80001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/273513005/diff/80001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode452 chrome/browser/renderer_host/chrome_render_message_filter.cc:452: const IPC::Message& message) { On 2014/05/13 18:11:49, Fady Samuel ...
6 years, 7 months ago (2014-05-13 18:21:29 UTC) #9
Fady Samuel
lgtm, but I'm not an OWNER. Jochen should review this.
6 years, 7 months ago (2014-05-13 18:22:52 UTC) #10
jochen (gone - plz use gerrit)
i think it's odd to have both a sync and async code path. https://codereview.chromium.org/273513005/diff/100001/chrome/browser/renderer_host/chrome_render_message_filter.cc File ...
6 years, 7 months ago (2014-05-14 08:27:23 UTC) #11
kinuko
https://codereview.chromium.org/273513005/diff/100001/chrome/renderer/worker_permission_client_proxy.cc File chrome/renderer/worker_permission_client_proxy.cc (right): https://codereview.chromium.org/273513005/diff/100001/chrome/renderer/worker_permission_client_proxy.cc#newcode58 chrome/renderer/worker_permission_client_proxy.cc:58: sync_message_filter_->Send(new ChromeViewHostMsg_AllowFileSystem( Having sync and async path feels a ...
6 years, 7 months ago (2014-05-14 08:48:49 UTC) #12
Xi Han
The rename in blink ends up with another review. Please refer to https://codereview.chromium.org/289793002/. My cl ...
6 years, 7 months ago (2014-05-14 19:55:07 UTC) #13
jochen (gone - plz use gerrit)
On 2014/05/14 19:55:07, hanxi wrote: > sync_message_filter_->Send(new ChromeViewHostMsg_AllowFileSystem( > I asked the same question to ...
6 years, 7 months ago (2014-05-15 10:33:05 UTC) #14
Xi Han
I realized that I missed the changes of shared worker, and now add them to ...
6 years, 7 months ago (2014-05-15 15:57:51 UTC) #15
Fady Samuel
https://codereview.chromium.org/273513005/diff/180001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/273513005/diff/180001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode483 chrome/browser/renderer_host/chrome_render_message_filter.cc:483: void ChromeRenderMessageFilter::OnRequestFileSyatemAccessAsyncCallbacks( Spelling error: ChromeRenderMessageFilter::OnRequestFileSystemAccessAsyncCallbacks. https://codereview.chromium.org/273513005/diff/180001/chrome/renderer/worker_permission_client_proxy.cc File chrome/renderer/worker_permission_client_proxy.cc (right): ...
6 years, 7 months ago (2014-05-15 16:08:09 UTC) #16
Xi Han
https://codereview.chromium.org/273513005/diff/180001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/273513005/diff/180001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode483 chrome/browser/renderer_host/chrome_render_message_filter.cc:483: void ChromeRenderMessageFilter::OnRequestFileSyatemAccessAsyncCallbacks( On 2014/05/15 16:08:09, Fady Samuel wrote: > ...
6 years, 7 months ago (2014-05-15 16:19:58 UTC) #17
Fady Samuel
https://codereview.chromium.org/273513005/diff/200001/chrome/renderer/content_settings_observer.cc File chrome/renderer/content_settings_observer.cc (right): https://codereview.chromium.org/273513005/diff/200001/chrome/renderer/content_settings_observer.cc#newcode282 chrome/renderer/content_settings_observer.cc:282: bool ContentSettingsObserver::requestFileSystemAccessSync() { Delete this. This code should only ...
6 years, 7 months ago (2014-05-15 16:26:07 UTC) #18
Xi Han
https://codereview.chromium.org/273513005/diff/200001/chrome/renderer/content_settings_observer.cc File chrome/renderer/content_settings_observer.cc (right): https://codereview.chromium.org/273513005/diff/200001/chrome/renderer/content_settings_observer.cc#newcode282 chrome/renderer/content_settings_observer.cc:282: bool ContentSettingsObserver::requestFileSystemAccessSync() { On 2014/05/15 16:26:07, Fady Samuel wrote: ...
6 years, 7 months ago (2014-05-15 18:35:39 UTC) #19
Xi Han
Remove function WorkerPermissionClientProxy::requestFileSystemAccessAsync() which uses sync_message_filter to send async message. This function is no longer ...
6 years, 7 months ago (2014-05-15 21:02:59 UTC) #20
jochen (gone - plz use gerrit)
lgtm
6 years, 7 months ago (2014-05-16 09:25:51 UTC) #21
Xi Han
dcheng: Please take a look at the following two files: chrome/common/render_messages.h content/common/worker_messages.h Thanks a lot!
6 years, 7 months ago (2014-05-16 13:22:52 UTC) #22
dcheng
https://codereview.chromium.org/273513005/diff/230001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/273513005/diff/230001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode129 chrome/browser/renderer_host/chrome_render_message_filter.cc:129: IPC_MESSAGE_HANDLER_GENERIC(ChromeViewHostMsg_RequestFileSystemAccessAsync, Why use GENERIC here instead of using the ...
6 years, 7 months ago (2014-05-20 21:16:03 UTC) #23
Xi Han
https://codereview.chromium.org/273513005/diff/230001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/273513005/diff/230001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode129 chrome/browser/renderer_host/chrome_render_message_filter.cc:129: IPC_MESSAGE_HANDLER_GENERIC(ChromeViewHostMsg_RequestFileSystemAccessAsync, On 2014/05/20 21:16:04, dcheng wrote: > Why use ...
6 years, 7 months ago (2014-05-20 21:18:31 UTC) #24
dcheng
https://codereview.chromium.org/273513005/diff/230001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/273513005/diff/230001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode129 chrome/browser/renderer_host/chrome_render_message_filter.cc:129: IPC_MESSAGE_HANDLER_GENERIC(ChromeViewHostMsg_RequestFileSystemAccessAsync, On 2014/05/20 21:18:32, hanxi wrote: > On 2014/05/20 ...
6 years, 7 months ago (2014-05-20 21:48:10 UTC) #25
jam
https://codereview.chromium.org/273513005/diff/230001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/273513005/diff/230001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode129 chrome/browser/renderer_host/chrome_render_message_filter.cc:129: IPC_MESSAGE_HANDLER_GENERIC(ChromeViewHostMsg_RequestFileSystemAccessAsync, On 2014/05/20 21:48:10, dcheng wrote: > On 2014/05/20 ...
6 years, 7 months ago (2014-05-20 22:08:06 UTC) #26
Xi Han
jam & dcheng: I have adopted the control IPC, please take another look at the ...
6 years, 7 months ago (2014-05-21 22:04:27 UTC) #27
jam
On 2014/05/21 22:04:27, hanxi wrote: > jam & dcheng: I have adopted the control IPC, ...
6 years, 7 months ago (2014-05-21 22:10:15 UTC) #28
dcheng
https://codereview.chromium.org/273513005/diff/250001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/273513005/diff/250001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode463 chrome/browser/renderer_host/chrome_render_message_filter.cc:463: BrowserThread::PostTaskAndReply( Why use PostTaskAndReply here? You can queue the ...
6 years, 7 months ago (2014-05-21 22:20:34 UTC) #29
kinuko
lgtm (if dcheng's comment is addressed), modulo one nit https://codereview.chromium.org/273513005/diff/250001/chrome/renderer/content_settings_observer.cc File chrome/renderer/content_settings_observer.cc (right): https://codereview.chromium.org/273513005/diff/250001/chrome/renderer/content_settings_observer.cc#newcode288 chrome/renderer/content_settings_observer.cc:288: ...
6 years, 7 months ago (2014-05-22 10:54:44 UTC) #30
Xi Han
https://codereview.chromium.org/273513005/diff/250001/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): https://codereview.chromium.org/273513005/diff/250001/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode463 chrome/browser/renderer_host/chrome_render_message_filter.cc:463: BrowserThread::PostTaskAndReply( On 2014/05/21 22:20:35, dcheng wrote: > Why use ...
6 years, 7 months ago (2014-05-22 17:24:48 UTC) #31
Xi Han
Daniel: according to the discussion offline, I update the code to send the IPC message ...
6 years, 7 months ago (2014-05-22 18:29:43 UTC) #32
dcheng
LGTM https://codereview.chromium.org/273513005/diff/290001/chrome/browser/renderer_host/chrome_render_message_filter.h File chrome/browser/renderer_host/chrome_render_message_filter.h (right): https://codereview.chromium.org/273513005/diff/290001/chrome/browser/renderer_host/chrome_render_message_filter.h#newcode150 chrome/browser/renderer_host/chrome_render_message_filter.h:150: bool allowed); Nit: remove this, since we no ...
6 years, 7 months ago (2014-05-22 22:06:05 UTC) #33
Xi Han
The CQ bit was checked by hanxi@chromium.org
6 years, 7 months ago (2014-05-23 13:13:25 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hanxi@chromium.org/273513005/310001
6 years, 7 months ago (2014-05-23 13:13:44 UTC) #35
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-23 15:54:38 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-23 15:59:15 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/69508) linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/34665)
6 years, 7 months ago (2014-05-23 15:59:16 UTC) #38
Xi Han
The CQ bit was checked by hanxi@chromium.org
6 years, 7 months ago (2014-05-23 16:25:58 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hanxi@chromium.org/273513005/330001
6 years, 7 months ago (2014-05-23 16:26:29 UTC) #40
Xi Han
The CQ bit was checked by hanxi@chromium.org
6 years, 7 months ago (2014-05-23 17:51:28 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hanxi@chromium.org/273513005/350001
6 years, 7 months ago (2014-05-23 17:52:41 UTC) #42
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-23 22:03:30 UTC) #43
commit-bot: I haz the power
6 years, 7 months ago (2014-05-24 01:38:01 UTC) #44
Message was sent while issue was closed.
Change committed as 272676

Powered by Google App Engine
This is Rietveld 408576698