OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCHER_H_ | 5 #ifndef CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCHER_H_ |
6 #define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCHER_H_ | 6 #define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCHER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <algorithm> | |
11 #include <list> | 10 #include <list> |
12 #include <map> | 11 #include <map> |
13 #include <memory> | 12 #include <memory> |
| 13 #include <utility> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
18 #include "base/threading/thread_checker.h" | 18 #include "base/threading/thread_checker.h" |
19 #include "chrome/browser/predictors/resource_prefetch_common.h" | 19 #include "chrome/browser/predictors/resource_prefetch_common.h" |
20 #include "net/url_request/redirect_info.h" | 20 #include "net/url_request/redirect_info.h" |
21 #include "net/url_request/url_request.h" | 21 #include "net/url_request/url_request.h" |
22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
23 | 23 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 inflight_requests_; | 160 inflight_requests_; |
161 std::list<Request*> request_queue_; | 161 std::list<Request*> request_queue_; |
162 std::map<std::string, size_t> host_inflight_counts_; | 162 std::map<std::string, size_t> host_inflight_counts_; |
163 | 163 |
164 DISALLOW_COPY_AND_ASSIGN(ResourcePrefetcher); | 164 DISALLOW_COPY_AND_ASSIGN(ResourcePrefetcher); |
165 }; | 165 }; |
166 | 166 |
167 } // namespace predictors | 167 } // namespace predictors |
168 | 168 |
169 #endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCHER_H_ | 169 #endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCHER_H_ |
OLD | NEW |