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_CHILD_THROTTLING_URL_LOADER_H_ | 5 #ifndef CONTENT_COMMON_THROTTLING_URL_LOADER_H_ |
6 #define CONTENT_CHILD_THROTTLING_URL_LOADER_H_ | 6 #define CONTENT_COMMON_THROTTLING_URL_LOADER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "content/common/url_loader.mojom.h" | 11 #include "content/common/url_loader.mojom.h" |
12 #include "content/common/url_loader_factory.mojom.h" | 12 #include "content/common/url_loader_factory.mojom.h" |
13 #include "content/public/child/url_loader_throttle.h" | 13 #include "content/public/common/url_loader_throttle.h" |
14 #include "mojo/public/cpp/bindings/binding.h" | 14 #include "mojo/public/cpp/bindings/binding.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 namespace mojom { | 18 namespace mojom { |
19 class URLLoaderFactory; | 19 class URLLoaderFactory; |
20 } | 20 } |
21 | 21 |
22 // ThrottlingURLLoader is a wrapper around the mojom::URLLoader[Factory] | 22 // ThrottlingURLLoader is a wrapper around the mojom::URLLoader[Factory] |
23 // interfaces. It applies a list of URLLoaderThrottle instances which could | 23 // interfaces. It applies a list of URLLoaderThrottle instances which could |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // Set if request is deferred and SetPriority() is called. | 107 // Set if request is deferred and SetPriority() is called. |
108 bool set_priority_cached_ = false; | 108 bool set_priority_cached_ = false; |
109 net::RequestPriority priority_ = net::MINIMUM_PRIORITY; | 109 net::RequestPriority priority_ = net::MINIMUM_PRIORITY; |
110 int32_t intra_priority_value_ = 0; | 110 int32_t intra_priority_value_ = 0; |
111 | 111 |
112 DISALLOW_COPY_AND_ASSIGN(ThrottlingURLLoader); | 112 DISALLOW_COPY_AND_ASSIGN(ThrottlingURLLoader); |
113 }; | 113 }; |
114 | 114 |
115 } // namespace content | 115 } // namespace content |
116 | 116 |
117 #endif // CONTENT_CHILD_THROTTLING_URL_LOADER_H_ | 117 #endif // CONTENT_COMMON_THROTTLING_URL_LOADER_H_ |
OLD | NEW |