Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_COMMON_THROTTLING_URL_LOADER_H_ | 5 #ifndef CONTENT_COMMON_THROTTLING_URL_LOADER_H_ |
| 6 #define CONTENT_COMMON_THROTTLING_URL_LOADER_H_ | 6 #define CONTENT_COMMON_THROTTLING_URL_LOADER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 const ResourceRequest& url_request, | 62 const ResourceRequest& url_request, |
| 63 mojom::URLLoaderClient* client, | 63 mojom::URLLoaderClient* client, |
| 64 const net::NetworkTrafficAnnotationTag& traffic_annotation, | 64 const net::NetworkTrafficAnnotationTag& traffic_annotation, |
| 65 scoped_refptr<base::SingleThreadTaskRunner> task_runner = | 65 scoped_refptr<base::SingleThreadTaskRunner> task_runner = |
| 66 base::ThreadTaskRunnerHandle::Get()); | 66 base::ThreadTaskRunnerHandle::Get()); |
| 67 | 67 |
| 68 ~ThrottlingURLLoader() override; | 68 ~ThrottlingURLLoader() override; |
| 69 | 69 |
| 70 void FollowRedirect(); | 70 void FollowRedirect(); |
| 71 void SetPriority(net::RequestPriority priority, int32_t intra_priority_value); | 71 void SetPriority(net::RequestPriority priority, int32_t intra_priority_value); |
| 72 void DisconnectClient(); | |
|
jam
2017/07/21 21:42:34
please separate this from the other methods (which
ananta
2017/07/21 23:19:04
Done.
| |
| 72 | 73 |
| 73 private: | 74 private: |
| 74 ThrottlingURLLoader( | 75 ThrottlingURLLoader( |
| 75 std::vector<std::unique_ptr<URLLoaderThrottle>> throttles, | 76 std::vector<std::unique_ptr<URLLoaderThrottle>> throttles, |
| 76 mojom::URLLoaderClient* client, | 77 mojom::URLLoaderClient* client, |
| 77 const net::NetworkTrafficAnnotationTag& traffic_annotation); | 78 const net::NetworkTrafficAnnotationTag& traffic_annotation); |
| 78 | 79 |
| 79 // Either of the two sets of arguments below is valid but not both: | 80 // Either of the two sets of arguments below is valid but not both: |
| 80 // - |factory|, |routing_id|, |request_id| and |options|; | 81 // - |factory|, |routing_id|, |request_id| and |options|; |
| 81 // - |start_loader_callback|. | 82 // - |start_loader_callback|. |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 191 std::unique_ptr<PriorityInfo> priority_info_; | 192 std::unique_ptr<PriorityInfo> priority_info_; |
| 192 | 193 |
| 193 const net::NetworkTrafficAnnotationTag traffic_annotation_; | 194 const net::NetworkTrafficAnnotationTag traffic_annotation_; |
| 194 | 195 |
| 195 DISALLOW_COPY_AND_ASSIGN(ThrottlingURLLoader); | 196 DISALLOW_COPY_AND_ASSIGN(ThrottlingURLLoader); |
| 196 }; | 197 }; |
| 197 | 198 |
| 198 } // namespace content | 199 } // namespace content |
| 199 | 200 |
| 200 #endif // CONTENT_COMMON_THROTTLING_URL_LOADER_H_ | 201 #endif // CONTENT_COMMON_THROTTLING_URL_LOADER_H_ |
| OLD | NEW |