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