Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: chrome/browser/prerender/prerender_manager.h

Issue 7828023: Re-enable TopSites in PrerenderManager, this time duplicating the invariant (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698