| Index: webkit/child/weburlloader_impl.cc
|
| diff --git a/webkit/child/weburlloader_impl.cc b/webkit/child/weburlloader_impl.cc
|
| index 9ecf69a883f1aad21dbb377b364796210b96cd36..22844bb0633b0e9c1019cb68ec3f6b2792fb58e5 100644
|
| --- a/webkit/child/weburlloader_impl.cc
|
| +++ b/webkit/child/weburlloader_impl.cc
|
| @@ -224,6 +224,7 @@ class WebURLLoaderImpl::Context : public base::RefCounted<Context>,
|
| void Cancel();
|
| void SetDefersLoading(bool value);
|
| void DidChangePriority(WebURLRequest::Priority new_priority);
|
| + blink::WebParserResourceBridge* ConstructParserResourceBridge();
|
| void Start(
|
| const WebURLRequest& request,
|
| ResourceLoaderBridge::SyncLoadResponse* sync_load_response,
|
| @@ -247,7 +248,7 @@ class WebURLLoaderImpl::Context : public base::RefCounted<Context>,
|
| bool was_ignored_by_handler,
|
| const std::string& security_info,
|
| const base::TimeTicks& completion_time) OVERRIDE;
|
| -
|
| + virtual void OnParserResourceMessageFilterAdded() OVERRIDE;
|
| private:
|
| friend class base::RefCounted<Context>;
|
| virtual ~Context() {}
|
| @@ -300,6 +301,14 @@ void WebURLLoaderImpl::Context::DidChangePriority(
|
| ConvertWebKitPriorityToNetPriority(new_priority));
|
| }
|
|
|
| +blink::WebParserResourceBridge*
|
| +WebURLLoaderImpl::Context::ConstructParserResourceBridge() {
|
| + if (bridge_)
|
| + return bridge_->ConstructParserResourceBridge();
|
| +
|
| + return NULL;
|
| +}
|
| +
|
| void WebURLLoaderImpl::Context::Start(
|
| const WebURLRequest& request,
|
| ResourceLoaderBridge::SyncLoadResponse* sync_load_response,
|
| @@ -626,6 +635,11 @@ void WebURLLoaderImpl::Context::OnCompletedRequest(
|
| Release();
|
| }
|
|
|
| +void WebURLLoaderImpl::Context::OnParserResourceMessageFilterAdded() {
|
| + if (client_)
|
| + client_->didAddParserResourceMessageFilter();
|
| +}
|
| +
|
| bool WebURLLoaderImpl::Context::CanHandleDataURL(const GURL& url) const {
|
| DCHECK(url.SchemeIs("data"));
|
|
|
| @@ -854,4 +868,9 @@ void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) {
|
| context_->DidChangePriority(new_priority);
|
| }
|
|
|
| +blink::WebParserResourceBridge*
|
| +WebURLLoaderImpl::constructParserResourceBridge() {
|
| + return context_->ConstructParserResourceBridge();
|
| +}
|
| +
|
| } // namespace webkit_glue
|
|
|