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_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCHER_MANAGER_H_ |
6 #define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCHER_MANAGER_H_ | 6 #define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCHER_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
11 #include "chrome/browser/predictors/resource_prefetch_common.h" | 12 #include "chrome/browser/predictors/resource_prefetch_common.h" |
12 #include "chrome/browser/predictors/resource_prefetcher.h" | 13 #include "chrome/browser/predictors/resource_prefetcher.h" |
13 | 14 |
14 namespace net { | 15 namespace net { |
15 class URLRequestContextGetter; | 16 class URLRequestContextGetter; |
16 } | 17 } |
17 | 18 |
18 namespace predictors { | 19 namespace predictors { |
19 | 20 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 net::URLRequestContextGetter* const context_getter_; | 79 net::URLRequestContextGetter* const context_getter_; |
79 | 80 |
80 PrefetcherMap prefetcher_map_; // Owns the ResourcePrefetcher pointers. | 81 PrefetcherMap prefetcher_map_; // Owns the ResourcePrefetcher pointers. |
81 | 82 |
82 DISALLOW_COPY_AND_ASSIGN(ResourcePrefetcherManager); | 83 DISALLOW_COPY_AND_ASSIGN(ResourcePrefetcherManager); |
83 }; | 84 }; |
84 | 85 |
85 } // namespace predictors | 86 } // namespace predictors |
86 | 87 |
87 #endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCHER_MANAGER_H_ | 88 #endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCHER_MANAGER_H_ |
OLD | NEW |