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

Unified Diff: content/browser/loader/resource_handler.h

Issue 2660723002: ResourceHandler::OnWillStart: Remove min_size argument. (Closed)
Patch Set: Merge Created 3 years, 11 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
Index: content/browser/loader/resource_handler.h
diff --git a/content/browser/loader/resource_handler.h b/content/browser/loader/resource_handler.h
index 350f95438bccb575330266ca5d89cacd4c10ad7f..cf4a5a065b1b73b3d8ad96cfbf0028e392adf60f 100644
--- a/content/browser/loader/resource_handler.h
+++ b/content/browser/loader/resource_handler.h
@@ -101,8 +101,7 @@ class CONTENT_EXPORT ResourceHandler
// out-params. This call will be followed by either OnReadCompleted (on
// successful read or EOF) or OnResponseCompleted (on error). If
// OnReadCompleted is called, the buffer may be recycled. Otherwise, it may
- // not be recycled and may potentially outlive the handler. If |min_size| is
- // not -1, it is the minimum size of the returned buffer.
+ // not be recycled and may potentially outlive the handler.
//
// Unlike other methods, may be called synchronously on Resume, for
// performance reasons.
@@ -112,8 +111,7 @@ class CONTENT_EXPORT ResourceHandler
// TODO(mmenke): Make this method use a ResourceController, and allow it to
// succeed asynchronously.
virtual bool OnWillRead(scoped_refptr<net::IOBuffer>* buf,
- int* buf_size,
- int min_size) = 0;
+ int* buf_size) = 0;
// Data (*bytes_read bytes) was written into the buffer provided by
// OnWillRead. The request will not continue until one of |controller|'s
« no previous file with comments | « content/browser/loader/redirect_to_file_resource_handler_unittest.cc ('k') | content/browser/loader/resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698