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

Side by Side Diff: third_party/WebKit/Source/core/fetch/ResourceLoader.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) 2005, 2006, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 int length) override; 103 int length) override;
104 void didReceiveData(WebURLLoader*, 104 void didReceiveData(WebURLLoader*,
105 const char*, 105 const char*,
106 int, 106 int,
107 int encodedDataLength, 107 int encodedDataLength,
108 int encodedBodyLength) override; 108 int encodedBodyLength) override;
109 void didDownloadData(WebURLLoader*, int, int) override; 109 void didDownloadData(WebURLLoader*, int, int) override;
110 void didFinishLoading(WebURLLoader*, 110 void didFinishLoading(WebURLLoader*,
111 double finishTime, 111 double finishTime,
112 int64_t encodedDataLength) override; 112 int64_t encodedDataLength) override;
113 void didFail(WebURLLoader*, const WebURLError&) override; 113 void didFail(WebURLLoader*,
114 const WebURLError&,
115 int64_t encodedDataLength) override;
114 116
115 void didFinishLoadingFirstPartInMultipart(); 117 void didFinishLoadingFirstPartInMultipart();
116 void didFail(const ResourceError&); 118 void didFail(const ResourceError&);
117 119
118 private: 120 private:
119 // Assumes ResourceFetcher and Resource are non-null. 121 // Assumes ResourceFetcher and Resource are non-null.
120 ResourceLoader(ResourceFetcher*, Resource*); 122 ResourceLoader(ResourceFetcher*, Resource*);
121 123
122 void cancelForRedirectAccessCheckError(const KURL&); 124 void cancelForRedirectAccessCheckError(const KURL&);
123 void requestSynchronously(const ResourceRequest&); 125 void requestSynchronously(const ResourceRequest&);
124 126
125 std::unique_ptr<WebURLLoader> m_loader; 127 std::unique_ptr<WebURLLoader> m_loader;
126 Member<ResourceFetcher> m_fetcher; 128 Member<ResourceFetcher> m_fetcher;
127 Member<Resource> m_resource; 129 Member<Resource> m_resource;
128 bool m_isCacheAwareLoadingActivated; 130 bool m_isCacheAwareLoadingActivated;
129 }; 131 };
130 132
131 } // namespace blink 133 } // namespace blink
132 134
133 #endif 135 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp ('k') | third_party/WebKit/Source/core/fetch/ResourceLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698