OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PRERENDER_PRERENDER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ | 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 FinalStatus final_status) const; | 197 FinalStatus final_status) const; |
198 | 198 |
199 const Config& config() const { return config_; } | 199 const Config& config() const { return config_; } |
200 Config& mutable_config() { return config_; } | 200 Config& mutable_config() { return config_; } |
201 | 201 |
202 PrerenderTracker* prerender_tracker() { return prerender_tracker_; } | 202 PrerenderTracker* prerender_tracker() { return prerender_tracker_; } |
203 | 203 |
204 // Adds a condition. This is owned by the PrerenderManager. | 204 // Adds a condition. This is owned by the PrerenderManager. |
205 void AddCondition(const PrerenderCondition* condition); | 205 void AddCondition(const PrerenderCondition* condition); |
206 | 206 |
207 bool IsTopSite(const GURL& url) const; | 207 bool IsTopSite(const GURL& url); |
208 | 208 |
209 protected: | 209 protected: |
210 // Test that needs needs access to internal functions. | 210 // Test that needs needs access to internal functions. |
211 FRIEND_TEST_ALL_PREFIXES(PrerenderManagerTest, ExpireTest); | 211 FRIEND_TEST_ALL_PREFIXES(PrerenderManagerTest, ExpireTest); |
212 FRIEND_TEST_ALL_PREFIXES(PrerenderManagerTest, ExtractURLInQueryStringTest); | 212 FRIEND_TEST_ALL_PREFIXES(PrerenderManagerTest, ExtractURLInQueryStringTest); |
213 | 213 |
214 struct PendingContentsData; | 214 struct PendingContentsData; |
215 | 215 |
216 void SetPrerenderContentsFactory( | 216 void SetPrerenderContentsFactory( |
217 PrerenderContents::Factory* prerender_contents_factory); | 217 PrerenderContents::Factory* prerender_contents_factory); |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 scoped_ptr<PrerenderHistograms> histograms_; | 395 scoped_ptr<PrerenderHistograms> histograms_; |
396 | 396 |
397 scoped_ptr<MostVisitedSites> most_visited_; | 397 scoped_ptr<MostVisitedSites> most_visited_; |
398 | 398 |
399 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); | 399 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); |
400 }; | 400 }; |
401 | 401 |
402 } // namespace prerender | 402 } // namespace prerender |
403 | 403 |
404 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ | 404 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
OLD | NEW |