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

Unified Diff: net/base/filter_unittest.h

Issue 40319: Use filter context to track stats better in SDCH filtering (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/filter.cc ('k') | net/base/filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/filter_unittest.h
===================================================================
--- net/base/filter_unittest.h (revision 11636)
+++ net/base/filter_unittest.h (working copy)
@@ -26,7 +26,7 @@
void SetRequestTime(const base::Time time) { request_time_ = time; }
void SetCached(bool is_cached) { is_cached_content_ = is_cached; }
void SetSdchResponse(bool is_sdch_response) {
- is_sdch_response = is_sdch_response;
+ is_sdch_response_ = is_sdch_response;
}
virtual bool GetMimeType(std::string* mime_type) const {
@@ -52,8 +52,11 @@
// Was this data flagged as a response to a request with an SDCH dictionary?
virtual bool IsSdchResponse() const { return is_sdch_response_; }
+ // How many bytes were fed to filter(s) so far?
+ virtual int64 GetByteReadCount() const { return 0; }
+
// What is the desirable input buffer size for these filters?
- virtual int GetInputStreambufferSize() const { return buffer_size_; }
+ virtual int GetInputStreamBufferSize() const { return buffer_size_; }
private:
« no previous file with comments | « net/base/filter.cc ('k') | net/base/filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698