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

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

Issue 394403002: Move weburlresponse_extradata_impl.* from webkit/ to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 years, 5 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/ftp_directory_listing_response_delegate.h" 15 #include "content/child/ftp_directory_listing_response_delegate.h"
16 #include "content/child/multipart_response_delegate.h" 16 #include "content/child/multipart_response_delegate.h"
17 #include "content/child/request_extra_data.h" 17 #include "content/child/request_extra_data.h"
18 #include "content/child/request_info.h" 18 #include "content/child/request_info.h"
19 #include "content/child/resource_dispatcher.h" 19 #include "content/child/resource_dispatcher.h"
20 #include "content/child/sync_load_response.h" 20 #include "content/child/sync_load_response.h"
21 #include "content/child/weburlresponse_extradata_impl.h"
21 #include "content/common/resource_request_body.h" 22 #include "content/common/resource_request_body.h"
22 #include "content/public/child/request_peer.h" 23 #include "content/public/child/request_peer.h"
23 #include "net/base/data_url.h" 24 #include "net/base/data_url.h"
24 #include "net/base/filename_util.h" 25 #include "net/base/filename_util.h"
25 #include "net/base/load_flags.h" 26 #include "net/base/load_flags.h"
26 #include "net/base/mime_util.h" 27 #include "net/base/mime_util.h"
27 #include "net/base/net_errors.h" 28 #include "net/base/net_errors.h"
28 #include "net/http/http_response_headers.h" 29 #include "net/http/http_response_headers.h"
29 #include "net/http/http_util.h" 30 #include "net/http/http_util.h"
30 #include "net/url_request/url_request.h" 31 #include "net/url_request/url_request.h"
31 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" 32 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h"
32 #include "third_party/WebKit/public/platform/WebHTTPLoadInfo.h" 33 #include "third_party/WebKit/public/platform/WebHTTPLoadInfo.h"
33 #include "third_party/WebKit/public/platform/WebURL.h" 34 #include "third_party/WebKit/public/platform/WebURL.h"
34 #include "third_party/WebKit/public/platform/WebURLError.h" 35 #include "third_party/WebKit/public/platform/WebURLError.h"
35 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h" 36 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h"
36 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" 37 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
37 #include "third_party/WebKit/public/platform/WebURLRequest.h" 38 #include "third_party/WebKit/public/platform/WebURLRequest.h"
38 #include "third_party/WebKit/public/platform/WebURLResponse.h" 39 #include "third_party/WebKit/public/platform/WebURLResponse.h"
39 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" 40 #include "third_party/WebKit/public/web/WebSecurityPolicy.h"
40 #include "webkit/child/resource_loader_bridge.h" 41 #include "webkit/child/resource_loader_bridge.h"
41 #include "webkit/child/weburlresponse_extradata_impl.h"
42 42
43 using base::Time; 43 using base::Time;
44 using base::TimeTicks; 44 using base::TimeTicks;
45 using blink::WebData; 45 using blink::WebData;
46 using blink::WebHTTPBody; 46 using blink::WebHTTPBody;
47 using blink::WebHTTPHeaderVisitor; 47 using blink::WebHTTPHeaderVisitor;
48 using blink::WebHTTPLoadInfo; 48 using blink::WebHTTPLoadInfo;
49 using blink::WebReferrerPolicy; 49 using blink::WebReferrerPolicy;
50 using blink::WebSecurityPolicy; 50 using blink::WebSecurityPolicy;
51 using blink::WebString; 51 using blink::WebString;
52 using blink::WebURL; 52 using blink::WebURL;
53 using blink::WebURLError; 53 using blink::WebURLError;
54 using blink::WebURLLoadTiming; 54 using blink::WebURLLoadTiming;
55 using blink::WebURLLoader; 55 using blink::WebURLLoader;
56 using blink::WebURLLoaderClient; 56 using blink::WebURLLoaderClient;
57 using blink::WebURLRequest; 57 using blink::WebURLRequest;
58 using blink::WebURLResponse; 58 using blink::WebURLResponse;
59 using webkit_glue::ResourceLoaderBridge; 59 using webkit_glue::ResourceLoaderBridge;
60 using webkit_glue::WebURLResponseExtraDataImpl;
61 60
62 namespace content { 61 namespace content {
63 62
64 // Utilities ------------------------------------------------------------------ 63 // Utilities ------------------------------------------------------------------
65 64
66 namespace { 65 namespace {
67 66
68 const char kThrottledErrorDescription[] = 67 const char kThrottledErrorDescription[] =
69 "Request throttled. Visit http://dev.chromium.org/throttling for more " 68 "Request throttled. Visit http://dev.chromium.org/throttling for more "
70 "information."; 69 "information.";
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 int intra_priority_value) { 893 int intra_priority_value) {
895 context_->DidChangePriority(new_priority, intra_priority_value); 894 context_->DidChangePriority(new_priority, intra_priority_value);
896 } 895 }
897 896
898 bool WebURLLoaderImpl::attachThreadedDataReceiver( 897 bool WebURLLoaderImpl::attachThreadedDataReceiver(
899 blink::WebThreadedDataReceiver* threaded_data_receiver) { 898 blink::WebThreadedDataReceiver* threaded_data_receiver) {
900 return context_->AttachThreadedDataReceiver(threaded_data_receiver); 899 return context_->AttachThreadedDataReceiver(threaded_data_receiver);
901 } 900 }
902 901
903 } // namespace content 902 } // namespace content
OLDNEW
« no previous file with comments | « content/child/ftp_directory_listing_response_delegate.cc ('k') | content/child/weburlresponse_extradata_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698