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

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

Issue 2751143003: Move FrameFetchContext::dispatchDidLoadResourceFromMemoryCache logic into ResourceFetcher (Closed)
Patch Set: addressed comments Created 3 years, 8 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 void FetchContext::prepareRequest(ResourceRequest&, RedirectType) {} 56 void FetchContext::prepareRequest(ResourceRequest&, RedirectType) {}
57 57
58 void FetchContext::dispatchWillSendRequest(unsigned long, 58 void FetchContext::dispatchWillSendRequest(unsigned long,
59 ResourceRequest&, 59 ResourceRequest&,
60 const ResourceResponse&, 60 const ResourceResponse&,
61 const FetchInitiatorInfo&) {} 61 const FetchInitiatorInfo&) {}
62 62
63 void FetchContext::dispatchDidLoadResourceFromMemoryCache( 63 void FetchContext::dispatchDidLoadResourceFromMemoryCache(
64 unsigned long, 64 unsigned long,
65 Resource*, 65 const ResourceRequest&,
66 WebURLRequest::FrameType, 66 const ResourceResponse&) {}
67 WebURLRequest::RequestContext) {}
68 67
69 void FetchContext::dispatchDidReceiveResponse(unsigned long, 68 void FetchContext::dispatchDidReceiveResponse(unsigned long,
70 const ResourceResponse&, 69 const ResourceResponse&,
71 WebURLRequest::FrameType, 70 WebURLRequest::FrameType,
72 WebURLRequest::RequestContext, 71 WebURLRequest::RequestContext,
73 Resource*) {} 72 Resource*,
73 ResourceResponseType) {}
74 74
75 void FetchContext::dispatchDidReceiveData(unsigned long, const char*, int) {} 75 void FetchContext::dispatchDidReceiveData(unsigned long, const char*, int) {}
76 76
77 void FetchContext::dispatchDidReceiveEncodedData(unsigned long, int) {} 77 void FetchContext::dispatchDidReceiveEncodedData(unsigned long, int) {}
78 78
79 void FetchContext::dispatchDidDownloadData(unsigned long, int, int) {} 79 void FetchContext::dispatchDidDownloadData(unsigned long, int, int) {}
80 80
81 void FetchContext::dispatchDidFinishLoading(unsigned long, 81 void FetchContext::dispatchDidFinishLoading(unsigned long,
82 double, 82 double,
83 int64_t, 83 int64_t,
(...skipping 20 matching lines...) Expand all
104 FetchContext::LogMessageType) const {} 104 FetchContext::LogMessageType) const {}
105 105
106 void FetchContext::populateResourceRequest(Resource::Type, 106 void FetchContext::populateResourceRequest(Resource::Type,
107 const ClientHintsPreferences&, 107 const ClientHintsPreferences&,
108 const FetchRequest::ResourceWidth&, 108 const FetchRequest::ResourceWidth&,
109 ResourceRequest&) {} 109 ResourceRequest&) {}
110 110
111 void FetchContext::setFirstPartyCookieAndRequestorOrigin(ResourceRequest&) {} 111 void FetchContext::setFirstPartyCookieAndRequestorOrigin(ResourceRequest&) {}
112 112
113 } // namespace blink 113 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698