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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, |
74 int* buf_size, | 74 int* buf_size) override; |
75 int min_size) override; | |
76 void OnReadCompleted(int bytes_read, | 75 void OnReadCompleted(int bytes_read, |
77 std::unique_ptr<ResourceController> controller) override; | 76 std::unique_ptr<ResourceController> controller) override; |
78 void OnResponseCompleted( | 77 void OnResponseCompleted( |
79 const net::URLRequestStatus& status, | 78 const net::URLRequestStatus& status, |
80 std::unique_ptr<ResourceController> controller) override; | 79 std::unique_ptr<ResourceController> controller) override; |
81 void OnDataDownloaded(int bytes_downloaded) override; | 80 void OnDataDownloaded(int bytes_downloaded) override; |
82 | 81 |
83 // mojom::URLLoader implementation: | 82 // mojom::URLLoader implementation: |
84 void FollowRedirect() override; | 83 void FollowRedirect() override; |
85 void SetPriority(net::RequestPriority priority, | 84 void SetPriority(net::RequestPriority priority, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 148 |
150 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_; | 149 std::unique_ptr<UploadProgressTracker> upload_progress_tracker_; |
151 | 150 |
152 base::WeakPtrFactory<MojoAsyncResourceHandler> weak_factory_; | 151 base::WeakPtrFactory<MojoAsyncResourceHandler> weak_factory_; |
153 DISALLOW_COPY_AND_ASSIGN(MojoAsyncResourceHandler); | 152 DISALLOW_COPY_AND_ASSIGN(MojoAsyncResourceHandler); |
154 }; | 153 }; |
155 | 154 |
156 } // namespace content | 155 } // namespace content |
157 | 156 |
158 #endif // CONTENT_BROWSER_LOADER_MOJO_ASYNC_RESOURCE_HANDLER_H_ | 157 #endif // CONTENT_BROWSER_LOADER_MOJO_ASYNC_RESOURCE_HANDLER_H_ |
OLD | NEW |