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

Issue 131082: Add getFileSize support to chromium... (Closed)

Created:
11 years, 6 months ago by Victor Wang
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), Ben Goodger (Google)
Visibility:
Public.

Description

Add getFileSize support to chromium The current implementation only allows getting file size if the child process has been granted permission to upload file. May need to update the policy checking code if getFileSize is needed in other cases. Here is the webkit implementation to support this: https://bugs.webkit.org/show_bug.cgi?id=26521 TEST=none BUG=9102 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=19866

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Total comments: 6

Patch Set 6 : '' #

Total comments: 15

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 4

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+332 lines, -1 line) Patch
M DEPS View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/in_process_webkit/browser_webkitclient_impl.h View 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/in_process_webkit/browser_webkitclient_impl.cc View 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/file_system_accessor.h View 3 4 5 6 1 chunk +74 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/file_system_accessor.cc View 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/file_system_accessor_unittest.cc View 7 8 9 10 11 12 1 chunk +117 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_sandbox_host_linux.cc View 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +32 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_webkitclient_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/renderer_webkitclient_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/worker/worker_webkitclient_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/worker/worker_webkitclient_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/api/public/WebKitClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/api/src/ChromiumBridge.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell_webkit_init.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_worker/test_worker_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Victor Wang
11 years, 6 months ago (2009-06-19 00:11:17 UTC) #1
jam
http://codereview.chromium.org/131082/diff/1017/1023 File chrome/browser/renderer_host/resource_message_filter.cc (right): http://codereview.chromium.org/131082/diff/1017/1023#newcode910 Line 910: if (file_util::GetFileSize(path, result)) we avoid doing file access ...
11 years, 6 months ago (2009-06-19 00:20:09 UTC) #2
Victor Wang
On 2009/06/19 00:20:09, John Abd-El-Malek wrote: > http://codereview.chromium.org/131082/diff/1017/1023 > File chrome/browser/renderer_host/resource_message_filter.cc (right): > > http://codereview.chromium.org/131082/diff/1017/1023#newcode910 ...
11 years, 6 months ago (2009-06-19 23:11:30 UTC) #3
jam
since ResourceMessageFilter is refcounted, why add this new class? I think it'll be simpler if ...
11 years, 6 months ago (2009-06-19 23:35:57 UTC) #4
Victor Wang
On 2009/06/19 23:35:57, John Abd-El-Malek wrote: > since ResourceMessageFilter is refcounted, why add this new ...
11 years, 6 months ago (2009-06-19 23:46:12 UTC) #5
darin (slow to review)
Looking at this now, in its entirety, I suspect it would be simpler to just ...
11 years, 6 months ago (2009-06-22 19:15:08 UTC) #6
abarth-chromium
http://codereview.chromium.org/131082/diff/3021/3026 File chrome/browser/renderer_host/file_system_accessor.cc (right): http://codereview.chromium.org/131082/diff/3021/3026#newcode25 Line 25: return false; This security check is correct, but ...
11 years, 6 months ago (2009-06-22 19:23:58 UTC) #7
Victor Wang
On 2009/06/22 19:15:08, darin wrote: > Looking at this now, in its entirety, I suspect ...
11 years, 6 months ago (2009-06-23 19:12:46 UTC) #8
Victor Wang
On 2009/06/22 19:23:58, abarth wrote: > http://codereview.chromium.org/131082/diff/3021/3026 > File chrome/browser/renderer_host/file_system_accessor.cc (right): > > http://codereview.chromium.org/131082/diff/3021/3026#newcode25 > ...
11 years, 6 months ago (2009-06-23 19:13:48 UTC) #9
darin (slow to review)
http://codereview.chromium.org/131082/diff/4001/5005 File chrome/browser/renderer_host/file_system_accessor.cc (right): http://codereview.chromium.org/131082/diff/4001/5005#newcode17 Line 17: }; nit: extraneous semicolon here http://codereview.chromium.org/131082/diff/4001/5008 File chrome/browser/renderer_host/file_system_accessor.h ...
11 years, 6 months ago (2009-06-25 23:16:14 UTC) #10
Victor Wang
http://codereview.chromium.org/131082/diff/4001/5005 File chrome/browser/renderer_host/file_system_accessor.cc (right): http://codereview.chromium.org/131082/diff/4001/5005#newcode17 Line 17: }; On 2009/06/25 23:16:14, darin wrote: > nit: ...
11 years, 6 months ago (2009-06-26 00:17:52 UTC) #11
darin (slow to review)
More comments... sorry for not catching all of these earlier. http://codereview.chromium.org/131082/diff/6001/5038 File chrome/browser/renderer_host/file_system_accessor.h (right): http://codereview.chromium.org/131082/diff/6001/5038#newcode4 ...
11 years, 6 months ago (2009-06-26 03:33:44 UTC) #12
Victor Wang
Hi Darin, Unit test has been added in the new patch. Please take a look ...
11 years, 6 months ago (2009-06-27 00:27:21 UTC) #13
darin (slow to review)
http://codereview.chromium.org/131082/diff/6001/5033 File webkit/api/src/ChromiumBridge.cpp (right): http://codereview.chromium.org/131082/diff/6001/5033#newcode148 Line 148: bool ChromiumBridge::getFileSize(const String& path, long long& result) > ...
11 years, 6 months ago (2009-06-27 03:30:34 UTC) #14
darin (slow to review)
OK, LGTM http://codereview.chromium.org/131082/diff/6017/5087 File chrome/renderer/renderer_webkitclient_impl.h (right): http://codereview.chromium.org/131082/diff/6017/5087#newcode31 Line 31: virtual bool getFileSize(const WebKit::WebString& path, int64& ...
11 years, 6 months ago (2009-06-27 03:34:48 UTC) #15
Victor Wang
http://codereview.chromium.org/131082/diff/6017/5087 File chrome/renderer/renderer_webkitclient_impl.h (right): http://codereview.chromium.org/131082/diff/6017/5087#newcode31 Line 31: virtual bool getFileSize(const WebKit::WebString& path, int64& result); On ...
11 years, 6 months ago (2009-06-27 23:35:53 UTC) #16
Victor Wang
A new WebKit client "BrowserWebKitClientImpl" was checked in recently, add getFileSize to this class.
11 years, 5 months ago (2009-06-29 18:46:56 UTC) #17
darin (slow to review)
OK, LGTM
11 years, 5 months ago (2009-06-29 19:50:17 UTC) #18
Victor Wang
some minor updates so it can work for mac and linux, sorry for not catching ...
11 years, 5 months ago (2009-07-02 20:18:46 UTC) #19
darin (slow to review)
11 years, 5 months ago (2009-07-02 20:27:13 UTC) #20
LGTM

Powered by Google App Engine
This is Rietveld 408576698