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

Side by Side Diff: content/browser/loader/mojo_async_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_MOJO_ASYNC_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_MOJO_ASYNC_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_MOJO_ASYNC_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_MOJO_ASYNC_RESOURCE_HANDLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void OnRequestRedirected( 64 void OnRequestRedirected(
65 const net::RedirectInfo& redirect_info, 65 const net::RedirectInfo& redirect_info,
66 ResourceResponse* response, 66 ResourceResponse* response,
67 std::unique_ptr<ResourceController> controller) override; 67 std::unique_ptr<ResourceController> controller) override;
68 void OnResponseStarted( 68 void OnResponseStarted(
69 ResourceResponse* response, 69 ResourceResponse* response,
70 std::unique_ptr<ResourceController> controller) override; 70 std::unique_ptr<ResourceController> controller) override;
71 void OnWillStart(const GURL& url, 71 void OnWillStart(const GURL& url,
72 std::unique_ptr<ResourceController> controller) override; 72 std::unique_ptr<ResourceController> controller) override;
73 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, 73 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf,
74 int* buf_size, 74 int* buf_size) override;
75 int min_size) override;
76 void OnReadCompleted(int bytes_read, 75 void OnReadCompleted(int bytes_read,
77 std::unique_ptr<ResourceController> controller) override; 76 std::unique_ptr<ResourceController> controller) override;
78 void OnResponseCompleted( 77 void OnResponseCompleted(
79 const net::URLRequestStatus& status, 78 const net::URLRequestStatus& status,
80 std::unique_ptr<ResourceController> controller) override; 79 std::unique_ptr<ResourceController> controller) override;
81 void OnDataDownloaded(int bytes_downloaded) override; 80 void OnDataDownloaded(int bytes_downloaded) override;
82 81
83 // mojom::URLLoader implementation: 82 // mojom::URLLoader implementation:
84 void FollowRedirect() override; 83 void FollowRedirect() override;
85 void SetPriority(net::RequestPriority priority, 84 void SetPriority(net::RequestPriority priority,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 148
150 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_; 149 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_;
151 150
152 base::WeakPtrFactory<MojoAsyncResourceHandler> weak_factory_; 151 base::WeakPtrFactory<MojoAsyncResourceHandler> weak_factory_;
153 DISALLOW_COPY_AND_ASSIGN(MojoAsyncResourceHandler); 152 DISALLOW_COPY_AND_ASSIGN(MojoAsyncResourceHandler);
154 }; 153 };
155 154
156 } // namespace content 155 } // namespace content
157 156
158 #endif // CONTENT_BROWSER_LOADER_MOJO_ASYNC_RESOURCE_HANDLER_H_ 157 #endif // CONTENT_BROWSER_LOADER_MOJO_ASYNC_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/mock_resource_loader.cc ('k') | content/browser/loader/mojo_async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698