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

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

Issue 2747203002: Make prepareRequest() a separate callback of FetchContext (Closed)
Patch Set: addressed comments Created 3 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void FetchContext::addAdditionalRequestHeaders(ResourceRequest&, 46 void FetchContext::addAdditionalRequestHeaders(ResourceRequest&,
47 FetchResourceType) {} 47 FetchResourceType) {}
48 48
49 WebCachePolicy FetchContext::resourceRequestCachePolicy( 49 WebCachePolicy FetchContext::resourceRequestCachePolicy(
50 ResourceRequest&, 50 ResourceRequest&,
51 Resource::Type, 51 Resource::Type,
52 FetchRequest::DeferOption defer) const { 52 FetchRequest::DeferOption defer) const {
53 return WebCachePolicy::UseProtocolCachePolicy; 53 return WebCachePolicy::UseProtocolCachePolicy;
54 } 54 }
55 55
56 void FetchContext::prepareRequest(ResourceRequest&, RedirectType) {}
57
56 void FetchContext::dispatchWillSendRequest(unsigned long, 58 void FetchContext::dispatchWillSendRequest(unsigned long,
57 ResourceRequest&, 59 ResourceRequest&,
58 const ResourceResponse&, 60 const ResourceResponse&,
59 const FetchInitiatorInfo&) {} 61 const FetchInitiatorInfo&) {}
60 62
61 void FetchContext::dispatchDidLoadResourceFromMemoryCache( 63 void FetchContext::dispatchDidLoadResourceFromMemoryCache(
62 unsigned long, 64 unsigned long,
63 Resource*, 65 Resource*,
64 WebURLRequest::FrameType, 66 WebURLRequest::FrameType,
65 WebURLRequest::RequestContext) {} 67 WebURLRequest::RequestContext) {}
(...skipping 13 matching lines...) Expand all
79 void FetchContext::dispatchDidFinishLoading(unsigned long, 81 void FetchContext::dispatchDidFinishLoading(unsigned long,
80 double, 82 double,
81 int64_t, 83 int64_t,
82 int64_t) {} 84 int64_t) {}
83 85
84 void FetchContext::dispatchDidFail(unsigned long, 86 void FetchContext::dispatchDidFail(unsigned long,
85 const ResourceError&, 87 const ResourceError&,
86 int64_t, 88 int64_t,
87 bool) {} 89 bool) {}
88 90
89 void FetchContext::willStartLoadingResource( 91 void FetchContext::recordLoadingActivity(
90 unsigned long, 92 unsigned long,
91 ResourceRequest&, 93 const ResourceRequest&,
92 Resource::Type, 94 Resource::Type,
93 const AtomicString& fetchInitiatorName, 95 const AtomicString& fetchInitiatorName) {}
94 V8ActivityLoggingPolicy) {}
95 96
96 void FetchContext::didLoadResource(Resource*) {} 97 void FetchContext::didLoadResource(Resource*) {}
97 98
98 void FetchContext::addResourceTiming(const ResourceTimingInfo&) {} 99 void FetchContext::addResourceTiming(const ResourceTimingInfo&) {}
99 100
100 void FetchContext::sendImagePing(const KURL&) {} 101 void FetchContext::sendImagePing(const KURL&) {}
101 102
102 void FetchContext::addConsoleMessage(const String&, 103 void FetchContext::addConsoleMessage(const String&,
103 FetchContext::LogMessageType) const {} 104 FetchContext::LogMessageType) const {}
104 105
105 void FetchContext::populateResourceRequest(Resource::Type, 106 void FetchContext::populateResourceRequest(Resource::Type,
106 const ClientHintsPreferences&, 107 const ClientHintsPreferences&,
107 const FetchRequest::ResourceWidth&, 108 const FetchRequest::ResourceWidth&,
108 ResourceRequest&) {} 109 ResourceRequest&) {}
109 110
110 void FetchContext::setFirstPartyCookieAndRequestorOrigin(ResourceRequest&) {} 111 void FetchContext::setFirstPartyCookieAndRequestorOrigin(ResourceRequest&) {}
111 112
112 } // namespace blink 113 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698