OLD | NEW |
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 13 matching lines...) Expand all Loading... |
24 std::unique_ptr<ResourceHandler> next_handler); | 24 std::unique_ptr<ResourceHandler> next_handler); |
25 ~LayeredResourceHandler() override; | 25 ~LayeredResourceHandler() override; |
26 | 26 |
27 // ResourceHandler implementation: | 27 // ResourceHandler implementation: |
28 void SetController(ResourceController* controller) override; | 28 void SetController(ResourceController* controller) override; |
29 bool OnRequestRedirected(const net::RedirectInfo& redirect_info, | 29 bool OnRequestRedirected(const net::RedirectInfo& redirect_info, |
30 ResourceResponse* response, | 30 ResourceResponse* response, |
31 bool* defer) override; | 31 bool* defer) override; |
32 bool OnResponseStarted(ResourceResponse* response, bool* defer) override; | 32 bool OnResponseStarted(ResourceResponse* response, bool* defer) override; |
33 bool OnWillStart(const GURL& url, bool* defer) override; | 33 bool OnWillStart(const GURL& url, bool* defer) override; |
34 bool OnBeforeNetworkStart(const GURL& url, bool* defer) override; | |
35 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, | 34 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, |
36 int* buf_size, | 35 int* buf_size, |
37 int min_size) override; | 36 int min_size) override; |
38 bool OnReadCompleted(int bytes_read, bool* defer) override; | 37 bool OnReadCompleted(int bytes_read, bool* defer) override; |
39 void OnResponseCompleted(const net::URLRequestStatus& status, | 38 void OnResponseCompleted(const net::URLRequestStatus& status, |
40 const std::string& security_info, | 39 const std::string& security_info, |
41 bool* defer) override; | 40 bool* defer) override; |
42 void OnDataDownloaded(int bytes_downloaded) override; | 41 void OnDataDownloaded(int bytes_downloaded) override; |
43 | 42 |
44 std::unique_ptr<ResourceHandler> next_handler_; | 43 std::unique_ptr<ResourceHandler> next_handler_; |
45 }; | 44 }; |
46 | 45 |
47 } // namespace content | 46 } // namespace content |
48 | 47 |
49 #endif // CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_ | 48 #endif // CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_ |
OLD | NEW |