| 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 19 matching lines...) Expand all Loading... |
| 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_ |
| OLD | NEW |