| 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 <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/gtest_prod_util.h" | |
| 13 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
| 15 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
| 16 #include "chrome/browser/predictors/resource_prefetch_common.h" | 15 #include "chrome/browser/predictors/resource_prefetch_common.h" |
| 17 #include "net/url_request/redirect_info.h" | 16 #include "net/url_request/redirect_info.h" |
| 18 #include "net/url_request/url_request.h" | 17 #include "net/url_request/url_request.h" |
| 19 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| 20 | 19 |
| 21 namespace net { | 20 namespace net { |
| 22 class URLRequestContext; | 21 class URLRequestContext; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 std::map<net::URLRequest*, Request*> inflight_requests_; | 154 std::map<net::URLRequest*, Request*> inflight_requests_; |
| 156 std::list<Request*> request_queue_; | 155 std::list<Request*> request_queue_; |
| 157 std::map<std::string, size_t> host_inflight_counts_; | 156 std::map<std::string, size_t> host_inflight_counts_; |
| 158 | 157 |
| 159 DISALLOW_COPY_AND_ASSIGN(ResourcePrefetcher); | 158 DISALLOW_COPY_AND_ASSIGN(ResourcePrefetcher); |
| 160 }; | 159 }; |
| 161 | 160 |
| 162 } // namespace predictors | 161 } // namespace predictors |
| 163 | 162 |
| 164 #endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCHER_H_ | 163 #endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCHER_H_ |
| OLD | NEW |