| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, |
| 54 int* buf_size, | 54 int* buf_size) override; |
| 55 int min_size) override; | |
| 56 void OnReadCompleted(int bytes_read, | 55 void OnReadCompleted(int bytes_read, |
| 57 std::unique_ptr<ResourceController> controller) override; | 56 std::unique_ptr<ResourceController> controller) override; |
| 58 void OnResponseCompleted( | 57 void OnResponseCompleted( |
| 59 const net::URLRequestStatus& status, | 58 const net::URLRequestStatus& status, |
| 60 std::unique_ptr<ResourceController> controller) override; | 59 std::unique_ptr<ResourceController> controller) override; |
| 61 void OnDataDownloaded(int bytes_downloaded) override; | 60 void OnDataDownloaded(int bytes_downloaded) override; |
| 62 | 61 |
| 63 private: | 62 private: |
| 64 class InliningHelper; | 63 class InliningHelper; |
| 65 | 64 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_; | 101 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_; |
| 103 | 102 |
| 104 int64_t reported_transfer_size_; | 103 int64_t reported_transfer_size_; |
| 105 | 104 |
| 106 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); | 105 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); |
| 107 }; | 106 }; |
| 108 | 107 |
| 109 } // namespace content | 108 } // namespace content |
| 110 | 109 |
| 111 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 110 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
| OLD | NEW |