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

Side by Side Diff: content/browser/loader/stream_resource_handler.h

Issue 2660723002: ResourceHandler::OnWillStart: Remove min_size argument. (Closed)
Patch Set: Merge Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 29 matching lines...) Expand all
40 40
41 void OnResponseStarted( 41 void OnResponseStarted(
42 ResourceResponse* resp, 42 ResourceResponse* resp,
43 std::unique_ptr<ResourceController> controller) override; 43 std::unique_ptr<ResourceController> controller) override;
44 44
45 void OnWillStart(const GURL& url, 45 void OnWillStart(const GURL& url,
46 std::unique_ptr<ResourceController> controller) override; 46 std::unique_ptr<ResourceController> controller) override;
47 47
48 // Create a new buffer to store received data. 48 // Create a new buffer to store received data.
49 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, 49 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf,
50 int* buf_size, 50 int* buf_size) override;
51 int min_size) override;
52 51
53 // A read was completed, forward the data to the Stream. 52 // A read was completed, forward the data to the Stream.
54 void OnReadCompleted(int bytes_read, 53 void OnReadCompleted(int bytes_read,
55 std::unique_ptr<ResourceController> controller) override; 54 std::unique_ptr<ResourceController> controller) override;
56 55
57 void OnResponseCompleted( 56 void OnResponseCompleted(
58 const net::URLRequestStatus& status, 57 const net::URLRequestStatus& status,
59 std::unique_ptr<ResourceController> controller) override; 58 std::unique_ptr<ResourceController> controller) override;
60 59
61 void OnDataDownloaded(int bytes_downloaded) override; 60 void OnDataDownloaded(int bytes_downloaded) override;
62 61
63 Stream* stream() { return writer_.stream(); } 62 Stream* stream() { return writer_.stream(); }
64 63
65 private: 64 private:
66 StreamWriter writer_; 65 StreamWriter writer_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(StreamResourceHandler); 67 DISALLOW_COPY_AND_ASSIGN(StreamResourceHandler);
69 }; 68 };
70 69
71 } // namespace content 70 } // namespace content
72 71
73 #endif // CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_ 72 #endif // CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | content/browser/loader/stream_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698