| 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_NET_RESOURCE_PREFETCH_PREDICTOR_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_NET_RESOURCE_PREFETCH_PREDICTOR_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_NET_RESOURCE_PREFETCH_PREDICTOR_OBSERVER_H_ | 6 #define CHROME_BROWSER_NET_RESOURCE_PREFETCH_PREDICTOR_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/predictors/resource_prefetch_predictor.h" | 10 #include "chrome/browser/predictors/resource_prefetch_predictor.h" |
| 11 #include "content/public/common/resource_type.h" | 11 #include "content/public/common/resource_type.h" |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 class URLRequest; | 14 class URLRequest; |
| 15 } | 15 } |
| 16 | 16 |
| 17 class GURL; | 17 class GURL; |
| 18 | 18 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 41 private: | 41 private: |
| 42 // Owned by profile. | 42 // Owned by profile. |
| 43 base::WeakPtr<predictors::ResourcePrefetchPredictor> predictor_; | 43 base::WeakPtr<predictors::ResourcePrefetchPredictor> predictor_; |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(ResourcePrefetchPredictorObserver); | 45 DISALLOW_COPY_AND_ASSIGN(ResourcePrefetchPredictorObserver); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace chrome_browser_net | 48 } // namespace chrome_browser_net |
| 49 | 49 |
| 50 #endif // CHROME_BROWSER_NET_RESOURCE_PREFETCH_PREDICTOR_OBSERVER_H_ | 50 #endif // CHROME_BROWSER_NET_RESOURCE_PREFETCH_PREDICTOR_OBSERVER_H_ |
| OLD | NEW |