| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 215 |
| 216 void SetPrerenderContentsFactory( | 216 void SetPrerenderContentsFactory( |
| 217 PrerenderContents::Factory* prerender_contents_factory); | 217 PrerenderContents::Factory* prerender_contents_factory); |
| 218 | 218 |
| 219 PendingContentsData* FindPendingEntry(const GURL& url); | 219 PendingContentsData* FindPendingEntry(const GURL& url); |
| 220 | 220 |
| 221 private: | 221 private: |
| 222 // Test that needs needs access to internal functions. | 222 // Test that needs needs access to internal functions. |
| 223 friend class PrerenderBrowserTest; | 223 friend class PrerenderBrowserTest; |
| 224 | 224 |
| 225 friend class base::RefCountedThreadSafe<PrerenderManager>; | |
| 226 | |
| 227 struct PrerenderContentsData; | 225 struct PrerenderContentsData; |
| 228 struct NavigationRecord; | 226 struct NavigationRecord; |
| 229 | 227 |
| 230 class OnCloseTabContentsDeleter; | 228 class OnCloseTabContentsDeleter; |
| 231 | 229 |
| 232 class MostVisitedSites; | 230 class MostVisitedSites; |
| 233 | 231 |
| 234 // Adds a prerender for |url| from referrer |referrer| initiated from the | 232 // Adds a prerender for |url| from referrer |referrer| initiated from the |
| 235 // RenderViewHost specified by |child_route_id_pair|. The |origin| specifies | 233 // RenderViewHost specified by |child_route_id_pair|. The |origin| specifies |
| 236 // how the prerender was added. | 234 // how the prerender was added. |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 scoped_ptr<PrerenderHistograms> histograms_; | 393 scoped_ptr<PrerenderHistograms> histograms_; |
| 396 | 394 |
| 397 scoped_ptr<MostVisitedSites> most_visited_; | 395 scoped_ptr<MostVisitedSites> most_visited_; |
| 398 | 396 |
| 399 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); | 397 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); |
| 400 }; | 398 }; |
| 401 | 399 |
| 402 } // namespace prerender | 400 } // namespace prerender |
| 403 | 401 |
| 404 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ | 402 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
| OLD | NEW |