| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |