| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 // these methods to get times for comparison, so that the test framework can | 303 // these methods to get times for comparison, so that the test framework can |
| 304 // mock advancing/retarding time. | 304 // mock advancing/retarding time. |
| 305 virtual base::Time GetCurrentTime() const; | 305 virtual base::Time GetCurrentTime() const; |
| 306 virtual base::TimeTicks GetCurrentTimeTicks() const; | 306 virtual base::TimeTicks GetCurrentTimeTicks() const; |
| 307 | 307 |
| 308 scoped_refptr<predictors::LoggedInPredictorTable> | 308 scoped_refptr<predictors::LoggedInPredictorTable> |
| 309 logged_in_predictor_table() { | 309 logged_in_predictor_table() { |
| 310 return logged_in_predictor_table_; | 310 return logged_in_predictor_table_; |
| 311 } | 311 } |
| 312 | 312 |
| 313 PrerenderLocalPredictor* local_predictor() { |
| 314 return local_predictor_.get(); |
| 315 } |
| 316 |
| 313 protected: | 317 protected: |
| 314 class PrerenderData : public base::SupportsWeakPtr<PrerenderData> { | 318 class PrerenderData : public base::SupportsWeakPtr<PrerenderData> { |
| 315 public: | 319 public: |
| 316 struct OrderByExpiryTime; | 320 struct OrderByExpiryTime; |
| 317 | 321 |
| 318 PrerenderData(PrerenderManager* manager, | 322 PrerenderData(PrerenderManager* manager, |
| 319 PrerenderContents* contents, | 323 PrerenderContents* contents, |
| 320 base::TimeTicks expiry_time); | 324 base::TimeTicks expiry_time); |
| 321 | 325 |
| 322 ~PrerenderData(); | 326 ~PrerenderData(); |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 | 631 |
| 628 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); | 632 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); |
| 629 }; | 633 }; |
| 630 | 634 |
| 631 PrerenderManager* FindPrerenderManagerUsingRenderProcessId( | 635 PrerenderManager* FindPrerenderManagerUsingRenderProcessId( |
| 632 int render_process_id); | 636 int render_process_id); |
| 633 | 637 |
| 634 } // namespace prerender | 638 } // namespace prerender |
| 635 | 639 |
| 636 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ | 640 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
| OLD | NEW |