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

Side by Side Diff: third_party/WebKit/public/platform/WebURLLoaderClient.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 const char* data, 102 const char* data,
103 int dataLength) {} 103 int dataLength) {}
104 104
105 // Called when the load completes successfully. 105 // Called when the load completes successfully.
106 // |totalEncodedDataLength| may be equal to kUnknownEncodedDataLength. 106 // |totalEncodedDataLength| may be equal to kUnknownEncodedDataLength.
107 virtual void didFinishLoading(WebURLLoader* loader, 107 virtual void didFinishLoading(WebURLLoader* loader,
108 double finishTime, 108 double finishTime,
109 int64_t totalEncodedDataLength) {} 109 int64_t totalEncodedDataLength) {}
110 110
111 // Called when the load completes with an error. 111 // Called when the load completes with an error.
112 virtual void didFail(WebURLLoader*, const WebURLError&) {} 112 // |totalEncodedDataLength| may be equal to kUnknownEncodedDataLength.
113 virtual void didFail(WebURLLoader*,
114 const WebURLError&,
115 int64_t totalEncodedDataLength) {}
113 116
114 // Value passed to didFinishLoading when total encoded data length isn't 117 // Value passed to didFinishLoading when total encoded data length isn't
115 // known. 118 // known.
116 static const int64_t kUnknownEncodedDataLength = -1; 119 static const int64_t kUnknownEncodedDataLength = -1;
117 120
118 protected: 121 protected:
119 virtual ~WebURLLoaderClient() {} 122 virtual ~WebURLLoaderClient() {}
120 }; 123 };
121 124
122 } // namespace blink 125 } // namespace blink
123 126
124 #endif 127 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/sim/SimRequest.cpp ('k') | third_party/WebKit/public/platform/WebURLLoaderTestDelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698