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

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/FetchContext.cpp

Issue 2584423002: Loading: move core/fetch to platform/loader/fetch (Closed)
Patch Set: rebase Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 10 matching lines...) Expand all
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "core/fetch/FetchContext.h" 31 #include "platform/loader/fetch/FetchContext.h"
32 32
33 #include "public/platform/WebCachePolicy.h" 33 #include "public/platform/WebCachePolicy.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 FetchContext& FetchContext::nullInstance() { 37 FetchContext& FetchContext::nullInstance() {
38 DEFINE_STATIC_LOCAL(FetchContext, instance, (new FetchContext)); 38 DEFINE_STATIC_LOCAL(FetchContext, instance, (new FetchContext));
39 return instance; 39 return instance;
40 } 40 }
41 41
(...skipping 25 matching lines...) Expand all
67 Resource*, 67 Resource*,
68 WebURLRequest::FrameType, 68 WebURLRequest::FrameType,
69 WebURLRequest::RequestContext) {} 69 WebURLRequest::RequestContext) {}
70 70
71 void FetchContext::dispatchDidReceiveResponse(unsigned long, 71 void FetchContext::dispatchDidReceiveResponse(unsigned long,
72 const ResourceResponse&, 72 const ResourceResponse&,
73 WebURLRequest::FrameType, 73 WebURLRequest::FrameType,
74 WebURLRequest::RequestContext, 74 WebURLRequest::RequestContext,
75 Resource*) {} 75 Resource*) {}
76 76
77 void FetchContext::dispatchDidReceiveData(unsigned long, 77 void FetchContext::dispatchDidReceiveData(unsigned long, const char*, int) {}
78 const char*,
79 int) {}
80 78
81 void FetchContext::dispatchDidReceiveEncodedData(unsigned long, int) {} 79 void FetchContext::dispatchDidReceiveEncodedData(unsigned long, int) {}
82 80
83 void FetchContext::dispatchDidDownloadData(unsigned long, int, int) {} 81 void FetchContext::dispatchDidDownloadData(unsigned long, int, int) {}
84 82
85 void FetchContext::dispatchDidFinishLoading(unsigned long, double, int64_t) {} 83 void FetchContext::dispatchDidFinishLoading(unsigned long, double, int64_t) {}
86 84
87 void FetchContext::dispatchDidFail(unsigned long, 85 void FetchContext::dispatchDidFail(unsigned long,
88 const ResourceError&, 86 const ResourceError&,
89 int64_t, 87 int64_t,
(...skipping 16 matching lines...) Expand all
106 FetchContext::LogMessageType) const {} 104 FetchContext::LogMessageType) const {}
107 105
108 void FetchContext::populateResourceRequest(Resource::Type, 106 void FetchContext::populateResourceRequest(Resource::Type,
109 const ClientHintsPreferences&, 107 const ClientHintsPreferences&,
110 const FetchRequest::ResourceWidth&, 108 const FetchRequest::ResourceWidth&,
111 ResourceRequest&) {} 109 ResourceRequest&) {}
112 110
113 void FetchContext::setFirstPartyCookieAndRequestorOrigin(ResourceRequest&) {} 111 void FetchContext::setFirstPartyCookieAndRequestorOrigin(ResourceRequest&) {}
114 112
115 } // namespace blink 113 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698