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

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

Issue 2540023003: Dispatch encoded_data_length separately in content/child (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) 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 DidFinishLoading, 120 DidFinishLoading,
121 DidFinishFirstPartInMultipart 121 DidFinishFirstPartInMultipart
122 }; 122 };
123 void didFinishLoading(Resource*, 123 void didFinishLoading(Resource*,
124 double finishTime, 124 double finishTime,
125 DidFinishLoadingReason); 125 DidFinishLoadingReason);
126 void didFailLoading(Resource*, const ResourceError&); 126 void didFailLoading(Resource*, const ResourceError&);
127 void didReceiveResponse(Resource*, 127 void didReceiveResponse(Resource*,
128 const ResourceResponse&, 128 const ResourceResponse&,
129 std::unique_ptr<WebDataConsumerHandle>); 129 std::unique_ptr<WebDataConsumerHandle>);
130 void didReceiveData(const Resource*, 130 void didReceiveData(const Resource*, const char* data, int dataLength);
131 const char* data, 131 void didReceiveTransferSizeUpdate(const Resource*, int transferSizeDiff);
132 int dataLength,
133 int encodedDataLength);
134 void didDownloadData(const Resource*, int dataLength, int encodedDataLength); 132 void didDownloadData(const Resource*, int dataLength, int encodedDataLength);
135 bool defersLoading() const; 133 bool defersLoading() const;
136 bool isControlledByServiceWorker() const; 134 bool isControlledByServiceWorker() const;
137 135
138 enum ResourceLoadStartType { 136 enum ResourceLoadStartType {
139 ResourceLoadingFromNetwork, 137 ResourceLoadingFromNetwork,
140 ResourceLoadingFromCache 138 ResourceLoadingFromCache
141 }; 139 };
142 void requestLoadStarted(unsigned long identifier, 140 void requestLoadStarted(unsigned long identifier,
143 Resource*, 141 Resource*,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 } 274 }
277 275
278 private: 276 private:
279 Member<ResourceFetcher> m_loader; 277 Member<ResourceFetcher> m_loader;
280 bool m_previousState; 278 bool m_previousState;
281 }; 279 };
282 280
283 } // namespace blink 281 } // namespace blink
284 282
285 #endif // ResourceFetcher_h 283 #endif // ResourceFetcher_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698