| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // An implementation of WebURLLoader in terms of ResourceLoaderBridge. | 5 // An implementation of WebURLLoader in terms of ResourceLoaderBridge. |
| 6 | 6 |
| 7 #include "content/child/web_url_loader_impl.h" | 7 #include "content/child/web_url_loader_impl.h" |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 using blink::WebURL; | 53 using blink::WebURL; |
| 54 using blink::WebURLError; | 54 using blink::WebURLError; |
| 55 using blink::WebURLLoadTiming; | 55 using blink::WebURLLoadTiming; |
| 56 using blink::WebURLLoader; | 56 using blink::WebURLLoader; |
| 57 using blink::WebURLLoaderClient; | 57 using blink::WebURLLoaderClient; |
| 58 using blink::WebURLRequest; | 58 using blink::WebURLRequest; |
| 59 using blink::WebURLResponse; | 59 using blink::WebURLResponse; |
| 60 using webkit_glue::MultipartResponseDelegate; | 60 using webkit_glue::MultipartResponseDelegate; |
| 61 using webkit_glue::ResourceDevToolsInfo; | 61 using webkit_glue::ResourceDevToolsInfo; |
| 62 using webkit_glue::ResourceLoaderBridge; | 62 using webkit_glue::ResourceLoaderBridge; |
| 63 using webkit_glue::ResourceResponseInfo; | |
| 64 using webkit_glue::WebURLResponseExtraDataImpl; | 63 using webkit_glue::WebURLResponseExtraDataImpl; |
| 65 | 64 |
| 66 namespace content { | 65 namespace content { |
| 67 | 66 |
| 68 // Utilities ------------------------------------------------------------------ | 67 // Utilities ------------------------------------------------------------------ |
| 69 | 68 |
| 70 namespace { | 69 namespace { |
| 71 | 70 |
| 72 const char kThrottledErrorDescription[] = | 71 const char kThrottledErrorDescription[] = |
| 73 "Request throttled. Visit http://dev.chromium.org/throttling for more " | 72 "Request throttled. Visit http://dev.chromium.org/throttling for more " |
| (...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 void WebURLLoaderImpl::setDefersLoading(bool value) { | 869 void WebURLLoaderImpl::setDefersLoading(bool value) { |
| 871 context_->SetDefersLoading(value); | 870 context_->SetDefersLoading(value); |
| 872 } | 871 } |
| 873 | 872 |
| 874 void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority, | 873 void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority, |
| 875 int intra_priority_value) { | 874 int intra_priority_value) { |
| 876 context_->DidChangePriority(new_priority, intra_priority_value); | 875 context_->DidChangePriority(new_priority, intra_priority_value); |
| 877 } | 876 } |
| 878 | 877 |
| 879 } // namespace content | 878 } // namespace content |
| OLD | NEW |