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

Side by Side Diff: third_party/WebKit/Source/core/fetch/ResourceFetcher.h

Issue 2519843002: Update ResourceResponse::encodedDataLength when response is completed (Closed)
Patch Set: Update ResourceResponse::encodedDataLength when response is completed 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) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org>
4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
5 rights reserved. 5 rights reserved.
6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
7 7
8 This library is free software; you can redistribute it and/or 8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public 9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either 10 License as published by the Free Software Foundation; either
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void stopFetching(); 117 void stopFetching();
118 bool isFetching() const; 118 bool isFetching() const;
119 119
120 bool willFollowRedirect(Resource*, ResourceRequest&, const ResourceResponse&); 120 bool willFollowRedirect(Resource*, ResourceRequest&, const ResourceResponse&);
121 enum DidFinishLoadingReason { 121 enum DidFinishLoadingReason {
122 DidFinishLoading, 122 DidFinishLoading,
123 DidFinishFirstPartInMultipart 123 DidFinishFirstPartInMultipart
124 }; 124 };
125 void didFinishLoading(Resource*, 125 void didFinishLoading(Resource*,
126 double finishTime, 126 double finishTime,
127 int64_t encodedDataLength,
128 DidFinishLoadingReason); 127 DidFinishLoadingReason);
129 void didFailLoading(Resource*, const ResourceError&); 128 void didFailLoading(Resource*, const ResourceError&);
130 void didReceiveResponse(Resource*, 129 void didReceiveResponse(Resource*,
131 const ResourceResponse&, 130 const ResourceResponse&,
132 std::unique_ptr<WebDataConsumerHandle>); 131 std::unique_ptr<WebDataConsumerHandle>);
133 void didReceiveData(const Resource*, 132 void didReceiveData(const Resource*,
134 const char* data, 133 const char* data,
135 int dataLength, 134 int dataLength,
136 int encodedDataLength); 135 int encodedDataLength);
137 void didDownloadData(const Resource*, int dataLength, int encodedDataLength); 136 void didDownloadData(const Resource*, int dataLength, int encodedDataLength);
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 283 }
285 284
286 private: 285 private:
287 Member<ResourceFetcher> m_loader; 286 Member<ResourceFetcher> m_loader;
288 bool m_previousState; 287 bool m_previousState;
289 }; 288 };
290 289
291 } // namespace blink 290 } // namespace blink
292 291
293 #endif // ResourceFetcher_h 292 #endif // ResourceFetcher_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.h ('k') | third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698