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

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

Issue 2668603003: Make ResourceHandler::OnWillRead able to complete asynchronously. (Closed)
Patch Set: Response to comments Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ASYNC_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // ResourceHandler implementation: 43 // ResourceHandler implementation:
44 void OnRequestRedirected( 44 void OnRequestRedirected(
45 const net::RedirectInfo& redirect_info, 45 const net::RedirectInfo& redirect_info,
46 ResourceResponse* response, 46 ResourceResponse* response,
47 std::unique_ptr<ResourceController> controller) override; 47 std::unique_ptr<ResourceController> controller) override;
48 void OnResponseStarted( 48 void OnResponseStarted(
49 ResourceResponse* response, 49 ResourceResponse* response,
50 std::unique_ptr<ResourceController> controller) override; 50 std::unique_ptr<ResourceController> controller) override;
51 void OnWillStart(const GURL& url, 51 void OnWillStart(const GURL& url,
52 std::unique_ptr<ResourceController> controller) override; 52 std::unique_ptr<ResourceController> controller) override;
53 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, 53 void OnWillRead(scoped_refptr<net::IOBuffer>* buf,
54 int* buf_size) override; 54 int* buf_size,
55 std::unique_ptr<ResourceController> controller) override;
55 void OnReadCompleted(int bytes_read, 56 void OnReadCompleted(int bytes_read,
56 std::unique_ptr<ResourceController> controller) override; 57 std::unique_ptr<ResourceController> controller) override;
57 void OnResponseCompleted( 58 void OnResponseCompleted(
58 const net::URLRequestStatus& status, 59 const net::URLRequestStatus& status,
59 std::unique_ptr<ResourceController> controller) override; 60 std::unique_ptr<ResourceController> controller) override;
60 void OnDataDownloaded(int bytes_downloaded) override; 61 void OnDataDownloaded(int bytes_downloaded) override;
61 62
62 private: 63 private:
63 class InliningHelper; 64 class InliningHelper;
64 65
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_; 102 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_;
102 103
103 int64_t reported_transfer_size_; 104 int64_t reported_transfer_size_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); 106 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler);
106 }; 107 };
107 108
108 } // namespace content 109 } // namespace content
109 110
110 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ 111 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/download/save_file_resource_handler.cc ('k') | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698