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

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

Issue 7901018: Strip away base::RefCountedThreadSafe use from PrerenderManager (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
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 | « no previous file | no next file » | 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698