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

Issue 2896: This CB fixes the following issues:-... (Closed)

Created:
12 years, 3 months ago by ananta
Modified:
7 years, 3 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

This CB fixes the following issue1. http://code.google.com/p/chromium/issues/detail?id=206This is a performance issue while loading PDF documents. The fix is to support PDF fast webview, which is basically support for the NPN_RequestRead API, which allows a plugin to request specific byte ranges in HTTP GET requests. This also needs support for seekable streams. Our support for seekable streams is limited to HTTP servers which allow byte range requests. Firefox also supports a mode in which the the browser caches the file on disk for servers which don't support byte range requests. The plugin_data_stream.cc/.h files are being removed as there is not much value in their existence. The needed functionality is available in the PluginStreamUrl class, which now services manual data streams as well. Testing this is a touch tricky as we need a HTTP server which serves byte range requests. Will add those in a subsequent CB.Also fixed a bug in the multipart parser where we need to ignore leading newline characters while parsing the header. Bug=206 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=2400

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+594 lines, -182 lines) Patch
M chrome/common/plugin_messages.h View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
M chrome/common/plugin_messages_internal.h View 1 2 3 4 5 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/plugin/webplugin_delegate_stub.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/plugin/webplugin_delegate_stub.cc View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/plugin/webplugin_proxy.h View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/plugin/webplugin_proxy.cc View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/renderer/webplugin_delegate_proxy.h View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M chrome/renderer/webplugin_delegate_proxy.cc View 1 2 3 4 8 chunks +21 lines, -6 lines 0 comments Download
M webkit/build/glue/glue.vcproj View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download
M webkit/glue/SConscript View 3 4 1 chunk +0 lines, -1 line 0 comments Download
M webkit/glue/multipart_response_delegate.h View 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
M webkit/glue/multipart_response_delegate.cc View 3 4 5 2 chunks +80 lines, -0 lines 0 comments Download
M webkit/glue/multipart_response_delegate_unittest.cc View 3 4 1 chunk +89 lines, -0 lines 0 comments Download
D webkit/glue/plugins/plugin_data_stream.h View 2 3 4 1 chunk +0 lines, -42 lines 0 comments Download
D webkit/glue/plugins/plugin_data_stream.cc View 1 2 3 4 1 chunk +0 lines, -46 lines 0 comments Download
M webkit/glue/plugins/plugin_host.cc View 1 2 3 4 1 chunk +13 lines, -4 lines 0 comments Download
M webkit/glue/plugins/plugin_instance.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M webkit/glue/plugins/plugin_instance.cc View 1 2 3 4 4 chunks +64 lines, -15 lines 0 comments Download
M webkit/glue/plugins/plugin_stream.h View 1 2 3 4 6 chunks +24 lines, -8 lines 0 comments Download
M webkit/glue/plugins/plugin_stream.cc View 1 2 3 4 12 chunks +37 lines, -18 lines 0 comments Download
M webkit/glue/plugins/plugin_stream_url.h View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M webkit/glue/plugins/plugin_stream_url.cc View 1 2 3 4 4 chunks +17 lines, -12 lines 0 comments Download
M webkit/glue/plugins/plugin_string_stream.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl.cc View 1 2 3 4 5 6 7 1 chunk +12 lines, -1 line 0 comments Download
M webkit/glue/webplugin.h View 1 2 3 4 2 chunks +12 lines, -1 line 0 comments Download
M webkit/glue/webplugin_delegate.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M webkit/glue/webplugin_impl.h View 1 2 3 4 5 chunks +21 lines, -1 line 0 comments Download
M webkit/glue/webplugin_impl.cc View 1 2 3 4 10 chunks +121 lines, -6 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
ananta
12 years, 3 months ago (2008-09-16 17:57:29 UTC) #1
jam
Since this isn't a small change, can you split this up into separate changelists, one ...
12 years, 3 months ago (2008-09-17 21:27:42 UTC) #2
ananta
Done. Please take another look. Thanks Ananta
12 years, 3 months ago (2008-09-17 21:54:12 UTC) #3
jam
cool, some comments: http://codereview.chromium.org/2896/diff/225/48 File chrome/common/plugin_messages_internal.h (right): http://codereview.chromium.org/2896/diff/225/48#newcode147 Line 147: int /* Offset of data ...
12 years, 3 months ago (2008-09-17 23:54:08 UTC) #4
ananta
Hi John I have updated the CB as per your comments. Added unit tests for ...
12 years, 3 months ago (2008-09-18 07:34:12 UTC) #5
john.abdelmalek
12 years, 3 months ago (2008-09-18 20:46:55 UTC) #6
lgtm looks much better, you can check in after fixing these nits

http://codereview.chromium.org/2896/diff/289/106
File chrome/common/plugin_messages_internal.h (right):

http://codereview.chromium.org/2896/diff/289/106#newcode252
Line 252: std::string /* range info */,
add underscores here too

http://codereview.chromium.org/2896/diff/289/110
File webkit/glue/multipart_response_delegate.cc (right):

http://codereview.chromium.org/2896/diff/289/110#newcode301
Line 301: StringToInt(byte_range_upper_bound, content_range_upper_bound);
should check the return value of both calls to StringToInt and return false on
error.

http://codereview.chromium.org/2896/diff/289/93
File webkit/glue/plugins/webplugin_delegate_impl.cc (right):

http://codereview.chromium.org/2896/diff/289/93#newcode1010
Line 1010: // A better way of doing this.
you can take out this comment now

Powered by Google App Engine
This is Rietveld 408576698