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

Side by Side Diff: content/browser/loader/test_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_TEST_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_TEST_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_TEST_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_TEST_RESOURCE_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void OnRequestRedirected( 46 void OnRequestRedirected(
47 const net::RedirectInfo& redirect_info, 47 const net::RedirectInfo& redirect_info,
48 ResourceResponse* response, 48 ResourceResponse* response,
49 std::unique_ptr<ResourceController> controller) override; 49 std::unique_ptr<ResourceController> controller) override;
50 void OnResponseStarted( 50 void OnResponseStarted(
51 ResourceResponse* response, 51 ResourceResponse* response,
52 std::unique_ptr<ResourceController> controller) override; 52 std::unique_ptr<ResourceController> controller) override;
53 void OnWillStart(const GURL& url, 53 void OnWillStart(const GURL& url,
54 std::unique_ptr<ResourceController> controller) override; 54 std::unique_ptr<ResourceController> controller) override;
55 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, 55 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf,
56 int* buf_size, 56 int* buf_size) override;
57 int min_size) override;
58 void OnReadCompleted(int bytes_read, 57 void OnReadCompleted(int bytes_read,
59 std::unique_ptr<ResourceController> controller) override; 58 std::unique_ptr<ResourceController> controller) override;
60 void OnResponseCompleted( 59 void OnResponseCompleted(
61 const net::URLRequestStatus& status, 60 const net::URLRequestStatus& status,
62 std::unique_ptr<ResourceController> controller) override; 61 std::unique_ptr<ResourceController> controller) override;
63 void OnDataDownloaded(int bytes_downloaded) override; 62 void OnDataDownloaded(int bytes_downloaded) override;
64 63
65 void Resume(); 64 void Resume();
66 void CancelWithError(net::Error error_code); 65 void CancelWithError(net::Error error_code);
67 66
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 base::RunLoop response_complete_run_loop_; 213 base::RunLoop response_complete_run_loop_;
215 214
216 base::WeakPtrFactory<TestResourceHandler> weak_ptr_factory_; 215 base::WeakPtrFactory<TestResourceHandler> weak_ptr_factory_;
217 216
218 DISALLOW_COPY_AND_ASSIGN(TestResourceHandler); 217 DISALLOW_COPY_AND_ASSIGN(TestResourceHandler);
219 }; 218 };
220 219
221 } // namespace content 220 } // namespace content
222 221
223 #endif // CONTENT_BROWSER_LOADER_TEST_RESOURCE_HANDLER_H_ 222 #endif // CONTENT_BROWSER_LOADER_TEST_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/sync_resource_handler.cc ('k') | content/browser/loader/test_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698