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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.h

Issue 2751143003: Move FrameFetchContext::dispatchDidLoadResourceFromMemoryCache logic into ResourceFetcher (Closed)
Patch Set: . 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 Resource::Type, 80 Resource::Type,
81 FetchRequest::DeferOption) const override; 81 FetchRequest::DeferOption) const override;
82 void dispatchDidChangeResourcePriority(unsigned long identifier, 82 void dispatchDidChangeResourcePriority(unsigned long identifier,
83 ResourceLoadPriority, 83 ResourceLoadPriority,
84 int intraPriorityValue) override; 84 int intraPriorityValue) override;
85 void dispatchWillSendRequest( 85 void dispatchWillSendRequest(
86 unsigned long identifier, 86 unsigned long identifier,
87 ResourceRequest&, 87 ResourceRequest&,
88 const ResourceResponse& redirectResponse, 88 const ResourceResponse& redirectResponse,
89 const FetchInitiatorInfo& = FetchInitiatorInfo()) override; 89 const FetchInitiatorInfo& = FetchInitiatorInfo()) override;
90 void dispatchDidLoadResourceFromMemoryCache( 90 void dispatchDidLoadResourceFromMemoryCache(unsigned long identifier,
91 unsigned long identifier, 91 const ResourceRequest&,
92 Resource*, 92 const ResourceResponse&) override;
93 WebURLRequest::FrameType,
94 WebURLRequest::RequestContext) override;
95 void dispatchDidReceiveResponse(unsigned long identifier, 93 void dispatchDidReceiveResponse(unsigned long identifier,
96 const ResourceResponse&, 94 const ResourceResponse&,
97 WebURLRequest::FrameType, 95 WebURLRequest::FrameType,
98 WebURLRequest::RequestContext, 96 WebURLRequest::RequestContext,
99 Resource*) override; 97 Resource*,
98 ResourceLoadStartType) override;
100 void dispatchDidReceiveData(unsigned long identifier, 99 void dispatchDidReceiveData(unsigned long identifier,
101 const char* data, 100 const char* data,
102 int dataLength) override; 101 int dataLength) override;
103 void dispatchDidReceiveEncodedData(unsigned long identifier, 102 void dispatchDidReceiveEncodedData(unsigned long identifier,
104 int encodedDataLength) override; 103 int encodedDataLength) override;
105 void dispatchDidDownloadData(unsigned long identifier, 104 void dispatchDidDownloadData(unsigned long identifier,
106 int dataLength, 105 int dataLength,
107 int encodedDataLength) override; 106 int encodedDataLength) override;
108 void dispatchDidFinishLoading(unsigned long identifier, 107 void dispatchDidFinishLoading(unsigned long identifier,
109 double finishTime, 108 double finishTime,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // FIXME: Oilpan: Ideally this should just be a traced Member but that will 208 // FIXME: Oilpan: Ideally this should just be a traced Member but that will
210 // currently leak because ComputedStyle and its data are not on the heap. 209 // currently leak because ComputedStyle and its data are not on the heap.
211 // See crbug.com/383860 for details. 210 // See crbug.com/383860 for details.
212 WeakMember<Document> m_document; 211 WeakMember<Document> m_document;
213 Member<DocumentLoader> m_documentLoader; 212 Member<DocumentLoader> m_documentLoader;
214 }; 213 };
215 214
216 } // namespace blink 215 } // namespace blink
217 216
218 #endif 217 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698