| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RESOURCE_SCHEDULER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ |
| 6 #define CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ | 6 #define CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <map> | 11 #include <map> |
| 12 #include <memory> | 12 #include <memory> |
| 13 #include <set> | 13 #include <set> |
| 14 | 14 |
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/threading/non_thread_safe.h" | 17 #include "base/threading/non_thread_safe.h" |
| 18 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
| 19 #include "net/base/priority_queue.h" | 19 #include "net/base/priority_queue.h" |
| 20 #include "net/base/request_priority.h" | 20 #include "net/base/request_priority.h" |
| 21 | 21 |
| 22 namespace net { | 22 namespace net { |
| 23 class HostPortPair; | |
| 24 class URLRequest; | 23 class URLRequest; |
| 25 } | 24 } |
| 26 | 25 |
| 27 namespace content { | 26 namespace content { |
| 28 class ResourceThrottle; | 27 class ResourceThrottle; |
| 29 | 28 |
| 30 // There is one ResourceScheduler. All renderer-initiated HTTP requests are | 29 // There is one ResourceScheduler. All renderer-initiated HTTP requests are |
| 31 // expected to pass through it. | 30 // expected to pass through it. |
| 32 // | 31 // |
| 33 // There are two types of input to the scheduler: | 32 // There are two types of input to the scheduler: |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 // True if requests to servers that support priorities (e.g., H2/QUIC) can | 139 // True if requests to servers that support priorities (e.g., H2/QUIC) can |
| 141 // be delayed. | 140 // be delayed. |
| 142 bool priority_requests_delayable_; | 141 bool priority_requests_delayable_; |
| 143 | 142 |
| 144 DISALLOW_COPY_AND_ASSIGN(ResourceScheduler); | 143 DISALLOW_COPY_AND_ASSIGN(ResourceScheduler); |
| 145 }; | 144 }; |
| 146 | 145 |
| 147 } // namespace content | 146 } // namespace content |
| 148 | 147 |
| 149 #endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ | 148 #endif // CONTENT_BROWSER_LOADER_RESOURCE_SCHEDULER_H_ |
| OLD | NEW |