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

Issue 3282003: Support handling blob URL and resolve blob references in upload data.... (Closed)

Created:
10 years, 3 months ago by jianli
Modified:
9 years, 6 months ago
CC:
Kavita Kanetkar, chromium-reviews, dpranke+watch_chromium.org, ben+cc_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, pam+watch_chromium.org, kinuko (google)
Visibility:
Public.

Description

Support handling blob URL and resolve blob references in upload data. BUG=none TEST=unittest

Patch Set 1 #

Total comments: 24

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 28

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 18

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 22

Patch Set 11 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+1721 lines, -64 lines) Patch
M base/file_util_proxy.h View 7 8 9 10 2 chunks +14 lines, -0 lines 1 comment Download
M base/file_util_proxy.cc View 7 8 9 10 3 chunks +38 lines, -0 lines 0 comments Download
M chrome/browser/browser_main.cc View 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/child_process_security_policy.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/net/blob_url_request_job_factory.h View 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/browser/net/blob_url_request_job_factory.cc View 9 10 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host_request_info.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/resource_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/renderer_glue.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M net/base/upload_data.h View 4 5 6 7 8 9 10 1 chunk +25 lines, -0 lines 0 comments Download
M webkit/blob/blob_data.h View 9 10 3 chunks +46 lines, -44 lines 0 comments Download
M webkit/blob/blob_data.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -1 line 0 comments Download
M webkit/blob/blob_storage_controller.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M webkit/blob/blob_storage_controller.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +73 lines, -8 lines 0 comments Download
M webkit/blob/blob_storage_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +163 lines, -9 lines 0 comments Download
A webkit/blob/blob_url_request_job.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +87 lines, -0 lines 0 comments Download
A webkit/blob/blob_url_request_job.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +532 lines, -0 lines 1 comment Download
A webkit/blob/blob_url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +454 lines, -0 lines 0 comments Download
M webkit/blob/webkit_blob.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/glue/mock_resource_loader_bridge.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/resource_loader_bridge.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/glue/weburlloader_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/support/webkit_support.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +20 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +16 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell_request_context.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell_request_context.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
A webkit/tools/test_shell/test_shell_webblobregistry_impl.h View 1 chunk +47 lines, -0 lines 0 comments Download
A webkit/tools/test_shell/test_shell_webblobregistry_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +90 lines, -0 lines 1 comment Download
M webkit/tools/test_shell/test_shell_webkit_init.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -0 lines 1 comment Download
M webkit/tools/test_shell/test_shell_webkit_init.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
jianli
10 years, 3 months ago (2010-08-27 22:01:33 UTC) #1
michaeln
Some preliminary comments. Many/most of these are me just thinking out loud a bit. I ...
10 years, 3 months ago (2010-08-28 00:55:14 UTC) #2
darin (slow to review)
I know michael mentioned doing registration on the IO thread, but that's not necessary if ...
10 years, 3 months ago (2010-08-28 06:08:46 UTC) #3
jianli
http://codereview.chromium.org/3282003/diff/1/2 File chrome/browser/browser_init.cc (right): http://codereview.chromium.org/3282003/diff/1/2#newcode582 chrome/browser/browser_init.cc:582: &BlobURLRequestJobFactory); On 2010/08/28 00:55:14, michaeln wrote: > Would be ...
10 years, 3 months ago (2010-08-28 06:55:42 UTC) #4
jianli
Updated the patch to use "#if 0/#endif" to temporarily disable BlobStorageController usages in test_shell. This ...
10 years, 3 months ago (2010-08-29 03:35:16 UTC) #5
michaeln
http://codereview.chromium.org/3282003/diff/23003/7003 File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/3282003/diff/23003/7003#newcode1341 chrome/browser/browser_main.cc:1341: RegisterBlobURLRequestHandler(); where the others are is good... thnx for ...
10 years, 3 months ago (2010-08-29 22:41:43 UTC) #6
jianli
http://codereview.chromium.org/3282003/diff/23003/7005 File chrome/browser/renderer_host/resource_dispatcher_host.cc (right): http://codereview.chromium.org/3282003/diff/23003/7005#newcode72 chrome/browser/renderer_host/resource_dispatcher_host.cc:72: #include "webkit/blob/blob_data.h" On 2010/08/29 22:41:43, michaeln wrote: > needed? ...
10 years, 3 months ago (2010-08-30 01:30:17 UTC) #7
darin (slow to review)
overall, looks great to me. http://codereview.chromium.org/3282003/diff/19004/48002 File base/file_util_proxy.cc (right): http://codereview.chromium.org/3282003/diff/19004/48002#newcode208 base/file_util_proxy.cc:208: class RelayGetFileListInfo : public ...
10 years, 3 months ago (2010-08-30 06:41:57 UTC) #8
jianli
http://codereview.chromium.org/3282003/diff/19004/48002 File base/file_util_proxy.cc (right): http://codereview.chromium.org/3282003/diff/19004/48002#newcode208 base/file_util_proxy.cc:208: class RelayGetFileListInfo : public MessageLoopRelay { On 2010/08/30 06:41:58, ...
10 years, 3 months ago (2010-08-30 18:17:11 UTC) #9
Paweł Hajdan Jr.
Drive-by with some test comments. Please let me take another look at the ScopedTempDir bits ...
10 years, 3 months ago (2010-08-30 18:18:40 UTC) #10
jianli
http://codereview.chromium.org/3282003/diff/19004/48016 File webkit/blob/blob_storage_controller_unittest.cc (right): http://codereview.chromium.org/3282003/diff/19004/48016#newcode136 webkit/blob/blob_storage_controller_unittest.cc:136: ASSERT_EQ(upload_data->elements()->size(), static_cast<size_t>(2)); On 2010/08/30 18:18:40, Paweł Hajdan Jr. wrote: ...
10 years, 3 months ago (2010-08-30 18:39:09 UTC) #11
Paweł Hajdan Jr.
Please note that gtest creates a fresh test fixture for each test. http://codereview.chromium.org/3282003/diff/32005/51026 File webkit/blob/blob_url_request_job_unittest.cc ...
10 years, 3 months ago (2010-08-30 18:42:15 UTC) #12
jianli
http://codereview.chromium.org/3282003/diff/32005/51026 File webkit/blob/blob_url_request_job_unittest.cc (right): http://codereview.chromium.org/3282003/diff/32005/51026#newcode128 webkit/blob/blob_url_request_job_unittest.cc:128: temp_dir_.reset(new ScopedTempDir()); On 2010/08/30 18:42:16, Paweł Hajdan Jr. wrote: ...
10 years, 3 months ago (2010-08-30 18:59:18 UTC) #13
Paweł Hajdan Jr.
Oh, I have just noticed it re-uses Thread and ScopedTempDir between tests. Please don't do ...
10 years, 3 months ago (2010-08-30 20:22:39 UTC) #14
michaeln
http://codereview.chromium.org/3282003/diff/32005/51007 File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/3282003/diff/32005/51007#newcode1325 chrome/browser/browser_main.cc:1325: extra blank line got inserted here http://codereview.chromium.org/3282003/diff/32005/51009 File chrome/browser/net/blob_url_request_job_factory.cc ...
10 years, 3 months ago (2010-08-30 22:50:38 UTC) #15
jianli
http://codereview.chromium.org/3282003/diff/32005/51007 File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/3282003/diff/32005/51007#newcode1325 chrome/browser/browser_main.cc:1325: On 2010/08/30 22:50:38, michaeln wrote: > extra blank line ...
10 years, 3 months ago (2010-08-30 23:30:51 UTC) #16
michaeln
> I got some wield errors when I use the proxy of current thread for ...
10 years, 3 months ago (2010-08-31 01:11:38 UTC) #17
jianli
It could be, but I can't repro this locally. I only saw this in try ...
10 years, 3 months ago (2010-08-31 01:16:22 UTC) #18
michaeln
Lgtm I can tell we're going to want to refactor the BlobUrlRequestJob class so the ...
10 years, 3 months ago (2010-08-31 01:27:22 UTC) #19
Paweł Hajdan Jr.
Why has this change been committed without proper review? I have raised concerns about re-using ...
10 years, 3 months ago (2010-08-31 03:39:34 UTC) #20
jianli
Yes, we have a discussion. But I think it is not a wrong way to ...
10 years, 3 months ago (2010-08-31 03:42:31 UTC) #21
michaeln
I'm sorry, I meant to comment on that. Jian's reusing a technique from other test ...
10 years, 3 months ago (2010-08-31 05:46:53 UTC) #22
michaeln
10 years, 3 months ago (2010-08-31 06:02:15 UTC) #23
Oh... i meant to publish this comment but apparently didn't :(

I've cc'd Kavita so she can reconcile the difference.

http://codereview.chromium.org/3282003/diff/13005/1042
File base/file_util_proxy.h (right):

http://codereview.chromium.org/3282003/diff/13005/1042#newcode67
base/file_util_proxy.h:67: static bool GetFileInfo(
Oh... it looks like kavita is adding a very similar method in this CL...
http://codereview.chromium.org/3212002/diff/37001/38002?context=50&column_wid...

The only difference being the first param to the callback...

  61   typedef Callback2<int /* error code */,
  62       file_util::FileInfo>::Type GetFileInfoCallback;
  63   static bool GetFileInfo(scoped_refptr<MessageLoopProxy>
message_loop_proxy,
  64                           const FilePath& file_path,
  65                           GetFileInfoCallback* callback);

Can you update your CL to match this sig instead.

Powered by Google App Engine
This is Rietveld 408576698