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

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

Issue 2751143003: Move FrameFetchContext::dispatchDidLoadResourceFromMemoryCache logic into ResourceFetcher (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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/FrameFetchContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 FetchRequest::DeferOption) const override; 80 FetchRequest::DeferOption) const override;
81 void dispatchDidChangeResourcePriority(unsigned long identifier, 81 void dispatchDidChangeResourcePriority(unsigned long identifier,
82 ResourceLoadPriority, 82 ResourceLoadPriority,
83 int intraPriorityValue) override; 83 int intraPriorityValue) override;
84 void prepareRequest(ResourceRequest&, RedirectType) override; 84 void prepareRequest(ResourceRequest&, RedirectType) 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 ResourceResponseType) 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // FIXME: Oilpan: Ideally this should just be a traced Member but that will 205 // FIXME: Oilpan: Ideally this should just be a traced Member but that will
207 // currently leak because ComputedStyle and its data are not on the heap. 206 // currently leak because ComputedStyle and its data are not on the heap.
208 // See crbug.com/383860 for details. 207 // See crbug.com/383860 for details.
209 WeakMember<Document> m_document; 208 WeakMember<Document> m_document;
210 Member<DocumentLoader> m_documentLoader; 209 Member<DocumentLoader> m_documentLoader;
211 }; 210 };
212 211
213 } // namespace blink 212 } // namespace blink
214 213
215 #endif 214 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/FrameFetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698