Chromium Code Reviews| Index: content/renderer/render_view_impl.cc |
| =================================================================== |
| --- content/renderer/render_view_impl.cc (revision 122395) |
| +++ content/renderer/render_view_impl.cc (working copy) |
| @@ -38,6 +38,7 @@ |
| #include "content/common/pepper_plugin_registry.h" |
| #include "content/common/quota_dispatcher.h" |
| #include "content/common/request_extra_data.h" |
| +#include "content/common/response_extra_data.h" |
| #include "content/common/view_messages.h" |
| #include "content/public/common/bindings_policy.h" |
| #include "content/public/common/content_constants.h" |
| @@ -159,6 +160,7 @@ |
| #include "webkit/glue/webkit_constants.h" |
| #include "webkit/glue/webkit_glue.h" |
| #include "webkit/glue/weburlloader_impl.h" |
| +#include "webkit/glue/weburlresponse_extradata_impl.h" |
| #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" |
| #include "webkit/media/webmediaplayer_impl.h" |
| #include "webkit/plugins/npapi/plugin_list.h" |
| @@ -3003,6 +3005,11 @@ |
| // Record page load flags. |
| document_state->set_was_fetched_via_spdy(response.wasFetchedViaSPDY()); |
| document_state->set_was_npn_negotiated(response.wasNpnNegotiated()); |
| + webkit_glue::WebURLResponseExtraDataImpl* extra_data = |
| + static_cast<webkit_glue::WebURLResponseExtraDataImpl*>( |
| + response.extraData()); |
|
Ryan Sleevi
2012/02/17 05:37:08
Would this make more sense as a helper function on
ramant (doing other things)
2012/02/17 21:47:35
Done.
|
| + document_state->set_npn_negotiated_protocol( |
| + extra_data->npn_negotiated_protocol()); |
| document_state->set_was_alternate_protocol_available( |
| response.wasAlternateProtocolAvailable()); |
| document_state->set_was_fetched_via_proxy(response.wasFetchedViaProxy()); |