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

Side by Side Diff: content/child/web_url_loader_impl.cc

Issue 186193005: Move resource_loader_bridge to content/public/child/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "content/child/blink_platform_impl.h" 15 #include "content/child/blink_platform_impl.h"
16 #include "content/public/child/resource_loader_bridge.h"
16 #include "net/base/data_url.h" 17 #include "net/base/data_url.h"
17 #include "net/base/load_flags.h" 18 #include "net/base/load_flags.h"
18 #include "net/base/mime_util.h" 19 #include "net/base/mime_util.h"
19 #include "net/base/net_errors.h" 20 #include "net/base/net_errors.h"
20 #include "net/base/net_util.h" 21 #include "net/base/net_util.h"
21 #include "net/http/http_response_headers.h" 22 #include "net/http/http_response_headers.h"
22 #include "net/http/http_util.h" 23 #include "net/http/http_util.h"
23 #include "net/url_request/url_request.h" 24 #include "net/url_request/url_request.h"
24 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" 25 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h"
25 #include "third_party/WebKit/public/platform/WebHTTPLoadInfo.h" 26 #include "third_party/WebKit/public/platform/WebHTTPLoadInfo.h"
26 #include "third_party/WebKit/public/platform/WebURL.h" 27 #include "third_party/WebKit/public/platform/WebURL.h"
27 #include "third_party/WebKit/public/platform/WebURLError.h" 28 #include "third_party/WebKit/public/platform/WebURLError.h"
28 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h" 29 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h"
29 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" 30 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
30 #include "third_party/WebKit/public/platform/WebURLRequest.h" 31 #include "third_party/WebKit/public/platform/WebURLRequest.h"
31 #include "third_party/WebKit/public/platform/WebURLResponse.h" 32 #include "third_party/WebKit/public/platform/WebURLResponse.h"
32 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" 33 #include "third_party/WebKit/public/web/WebSecurityPolicy.h"
33 #include "webkit/child/ftp_directory_listing_response_delegate.h" 34 #include "webkit/child/ftp_directory_listing_response_delegate.h"
34 #include "webkit/child/multipart_response_delegate.h" 35 #include "webkit/child/multipart_response_delegate.h"
35 #include "webkit/child/resource_loader_bridge.h"
36 #include "webkit/child/weburlrequest_extradata_impl.h" 36 #include "webkit/child/weburlrequest_extradata_impl.h"
37 #include "webkit/child/weburlresponse_extradata_impl.h" 37 #include "webkit/child/weburlresponse_extradata_impl.h"
38 #include "webkit/common/resource_request_body.h" 38 #include "webkit/common/resource_request_body.h"
39 39
40 using base::Time; 40 using base::Time;
41 using base::TimeTicks; 41 using base::TimeTicks;
42 using blink::WebData; 42 using blink::WebData;
43 using blink::WebHTTPBody; 43 using blink::WebHTTPBody;
44 using blink::WebHTTPHeaderVisitor; 44 using blink::WebHTTPHeaderVisitor;
45 using blink::WebHTTPLoadInfo; 45 using blink::WebHTTPLoadInfo;
46 using blink::WebReferrerPolicy; 46 using blink::WebReferrerPolicy;
47 using blink::WebSecurityPolicy; 47 using blink::WebSecurityPolicy;
48 using blink::WebString; 48 using blink::WebString;
49 using blink::WebURL; 49 using blink::WebURL;
50 using blink::WebURLError; 50 using blink::WebURLError;
51 using blink::WebURLLoadTiming; 51 using blink::WebURLLoadTiming;
52 using blink::WebURLLoader; 52 using blink::WebURLLoader;
53 using blink::WebURLLoaderClient; 53 using blink::WebURLLoaderClient;
54 using blink::WebURLRequest; 54 using blink::WebURLRequest;
55 using blink::WebURLResponse; 55 using blink::WebURLResponse;
56 using webkit_glue::FtpDirectoryListingResponseDelegate; 56 using webkit_glue::FtpDirectoryListingResponseDelegate;
57 using webkit_glue::MultipartResponseDelegate; 57 using webkit_glue::MultipartResponseDelegate;
58 using webkit_glue::ResourceDevToolsInfo; 58 using webkit_glue::ResourceDevToolsInfo;
59 using webkit_glue::ResourceLoaderBridge;
60 using webkit_glue::ResourceRequestBody; 59 using webkit_glue::ResourceRequestBody;
61 using webkit_glue::ResourceResponseInfo; 60 using webkit_glue::ResourceResponseInfo;
62 using webkit_glue::WebURLResponseExtraDataImpl; 61 using webkit_glue::WebURLResponseExtraDataImpl;
63 62
64 namespace content { 63 namespace content {
65 64
66 // Utilities ------------------------------------------------------------------ 65 // Utilities ------------------------------------------------------------------
67 66
68 namespace { 67 namespace {
69 68
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 867
869 void WebURLLoaderImpl::setDefersLoading(bool value) { 868 void WebURLLoaderImpl::setDefersLoading(bool value) {
870 context_->SetDefersLoading(value); 869 context_->SetDefersLoading(value);
871 } 870 }
872 871
873 void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) { 872 void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) {
874 context_->DidChangePriority(new_priority); 873 context_->DidChangePriority(new_priority);
875 } 874 }
876 875
877 } // namespace content 876 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698