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

Side by Side Diff: content/browser/loader/layered_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_LAYERED_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "content/browser/loader/resource_handler.h" 10 #include "content/browser/loader/resource_handler.h"
(...skipping 19 matching lines...) Expand all
30 void SetDelegate(Delegate* delegate) override; 30 void SetDelegate(Delegate* delegate) override;
31 void OnRequestRedirected( 31 void OnRequestRedirected(
32 const net::RedirectInfo& redirect_info, 32 const net::RedirectInfo& redirect_info,
33 ResourceResponse* response, 33 ResourceResponse* response,
34 std::unique_ptr<ResourceController> controller) override; 34 std::unique_ptr<ResourceController> controller) override;
35 void OnResponseStarted( 35 void OnResponseStarted(
36 ResourceResponse* response, 36 ResourceResponse* response,
37 std::unique_ptr<ResourceController> controller) override; 37 std::unique_ptr<ResourceController> controller) override;
38 void OnWillStart(const GURL& url, 38 void OnWillStart(const GURL& url,
39 std::unique_ptr<ResourceController> controller) override; 39 std::unique_ptr<ResourceController> controller) override;
40 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, 40 void OnWillRead(scoped_refptr<net::IOBuffer>* buf,
41 int* buf_size) override; 41 int* buf_size,
42 std::unique_ptr<ResourceController> controller) override;
42 void OnReadCompleted(int bytes_read, 43 void OnReadCompleted(int bytes_read,
43 std::unique_ptr<ResourceController> controller) override; 44 std::unique_ptr<ResourceController> controller) override;
44 void OnResponseCompleted( 45 void OnResponseCompleted(
45 const net::URLRequestStatus& status, 46 const net::URLRequestStatus& status,
46 std::unique_ptr<ResourceController> controller) override; 47 std::unique_ptr<ResourceController> controller) override;
47 void OnDataDownloaded(int bytes_downloaded) override; 48 void OnDataDownloaded(int bytes_downloaded) override;
48 49
49 std::unique_ptr<ResourceHandler> next_handler_; 50 std::unique_ptr<ResourceHandler> next_handler_;
50 }; 51 };
51 52
52 } // namespace content 53 } // namespace content
53 54
54 #endif // CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_ 55 #endif // CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/intercepting_resource_handler_unittest.cc ('k') | content/browser/loader/layered_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698