| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_MOJO_ASYNC_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_MOJO_ASYNC_RESOURCE_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_LOADER_MOJO_ASYNC_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_LOADER_MOJO_ASYNC_RESOURCE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // ResourceHandler implementation: | 63 // ResourceHandler implementation: |
| 64 void OnRequestRedirected( | 64 void OnRequestRedirected( |
| 65 const net::RedirectInfo& redirect_info, | 65 const net::RedirectInfo& redirect_info, |
| 66 ResourceResponse* response, | 66 ResourceResponse* response, |
| 67 std::unique_ptr<ResourceController> controller) override; | 67 std::unique_ptr<ResourceController> controller) override; |
| 68 void OnResponseStarted( | 68 void OnResponseStarted( |
| 69 ResourceResponse* response, | 69 ResourceResponse* response, |
| 70 std::unique_ptr<ResourceController> controller) override; | 70 std::unique_ptr<ResourceController> controller) override; |
| 71 void OnWillStart(const GURL& url, | 71 void OnWillStart(const GURL& url, |
| 72 std::unique_ptr<ResourceController> controller) override; | 72 std::unique_ptr<ResourceController> controller) override; |
| 73 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, | 73 void OnWillRead(scoped_refptr<net::IOBuffer>* buf, |
| 74 int* buf_size) override; | 74 int* buf_size, |
| 75 std::unique_ptr<ResourceController> controller) override; |
| 75 void OnReadCompleted(int bytes_read, | 76 void OnReadCompleted(int bytes_read, |
| 76 std::unique_ptr<ResourceController> controller) override; | 77 std::unique_ptr<ResourceController> controller) override; |
| 77 void OnResponseCompleted( | 78 void OnResponseCompleted( |
| 78 const net::URLRequestStatus& status, | 79 const net::URLRequestStatus& status, |
| 79 std::unique_ptr<ResourceController> controller) override; | 80 std::unique_ptr<ResourceController> controller) override; |
| 80 void OnDataDownloaded(int bytes_downloaded) override; | 81 void OnDataDownloaded(int bytes_downloaded) override; |
| 81 | 82 |
| 82 // mojom::URLLoader implementation: | 83 // mojom::URLLoader implementation: |
| 83 void FollowRedirect() override; | 84 void FollowRedirect() override; |
| 84 void SetPriority(net::RequestPriority priority, | 85 void SetPriority(net::RequestPriority priority, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 149 |
| 149 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_; | 150 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_; |
| 150 | 151 |
| 151 base::WeakPtrFactory<MojoAsyncResourceHandler> weak_factory_; | 152 base::WeakPtrFactory<MojoAsyncResourceHandler> weak_factory_; |
| 152 DISALLOW_COPY_AND_ASSIGN(MojoAsyncResourceHandler); | 153 DISALLOW_COPY_AND_ASSIGN(MojoAsyncResourceHandler); |
| 153 }; | 154 }; |
| 154 | 155 |
| 155 } // namespace content | 156 } // namespace content |
| 156 | 157 |
| 157 #endif // CONTENT_BROWSER_LOADER_MOJO_ASYNC_RESOURCE_HANDLER_H_ | 158 #endif // CONTENT_BROWSER_LOADER_MOJO_ASYNC_RESOURCE_HANDLER_H_ |
| OLD | NEW |