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

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

Issue 2519893002: Stop dispatching encoded-data-length on each data chunk arrival (Closed)
Patch Set: fix Created 4 years 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 Resource*, 86 Resource*,
87 WebURLRequest::FrameType, 87 WebURLRequest::FrameType,
88 WebURLRequest::RequestContext) override; 88 WebURLRequest::RequestContext) override;
89 void dispatchDidReceiveResponse(unsigned long identifier, 89 void dispatchDidReceiveResponse(unsigned long identifier,
90 const ResourceResponse&, 90 const ResourceResponse&,
91 WebURLRequest::FrameType, 91 WebURLRequest::FrameType,
92 WebURLRequest::RequestContext, 92 WebURLRequest::RequestContext,
93 Resource*) override; 93 Resource*) override;
94 void dispatchDidReceiveData(unsigned long identifier, 94 void dispatchDidReceiveData(unsigned long identifier,
95 const char* data, 95 const char* data,
96 int dataLength, 96 int dataLength) override;
97 int encodedDataLength) override; 97 void dispatchDidReceiveEncodedData(unsigned long identifier,
98 int encodedDataLength) override;
98 void dispatchDidDownloadData(unsigned long identifier, 99 void dispatchDidDownloadData(unsigned long identifier,
99 int dataLength, 100 int dataLength,
100 int encodedDataLength) override; 101 int encodedDataLength) override;
101 void dispatchDidFinishLoading(unsigned long identifier, 102 void dispatchDidFinishLoading(unsigned long identifier,
102 double finishTime, 103 double finishTime,
103 int64_t encodedDataLength) override; 104 int64_t encodedDataLength) override;
104 void dispatchDidFail(unsigned long identifier, 105 void dispatchDidFail(unsigned long identifier,
105 const ResourceError&, 106 const ResourceError&,
107 int64_t encodedDataLength,
106 bool isInternalRequest) override; 108 bool isInternalRequest) override;
107 109
108 bool shouldLoadNewResource(Resource::Type) const override; 110 bool shouldLoadNewResource(Resource::Type) const override;
109 void willStartLoadingResource(unsigned long identifier, 111 void willStartLoadingResource(unsigned long identifier,
110 ResourceRequest&, 112 ResourceRequest&,
111 Resource::Type) override; 113 Resource::Type) override;
112 void didLoadResource(Resource*) override; 114 void didLoadResource(Resource*) override;
113 115
114 void addResourceTiming(const ResourceTimingInfo&) override; 116 void addResourceTiming(const ResourceTimingInfo&) override;
115 bool allowImage(bool imagesEnabled, const KURL&) const override; 117 bool allowImage(bool imagesEnabled, const KURL&) const override;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // FIXME: Oilpan: Ideally this should just be a traced Member but that will 183 // FIXME: Oilpan: Ideally this should just be a traced Member but that will
182 // currently leak because ComputedStyle and its data are not on the heap. 184 // currently leak because ComputedStyle and its data are not on the heap.
183 // See crbug.com/383860 for details. 185 // See crbug.com/383860 for details.
184 WeakMember<Document> m_document; 186 WeakMember<Document> m_document;
185 Member<DocumentLoader> m_documentLoader; 187 Member<DocumentLoader> m_documentLoader;
186 }; 188 };
187 189
188 } // namespace blink 190 } // namespace blink
189 191
190 #endif 192 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698