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

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

Issue 10377058: Remove IsPendingDelete from PrerenderManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remediate to review Created 8 years, 7 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 | 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) 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 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 bool IsPrerenderElementFresh(const base::Time start) const; 354 bool IsPrerenderElementFresh(const base::Time start) const;
355 void DeleteOldEntries(); 355 void DeleteOldEntries();
356 virtual base::Time GetCurrentTime() const; 356 virtual base::Time GetCurrentTime() const;
357 virtual base::TimeTicks GetCurrentTimeTicks() const; 357 virtual base::TimeTicks GetCurrentTimeTicks() const;
358 virtual PrerenderContents* CreatePrerenderContents( 358 virtual PrerenderContents* CreatePrerenderContents(
359 const GURL& url, 359 const GURL& url,
360 const content::Referrer& referrer, 360 const content::Referrer& referrer,
361 Origin origin, 361 Origin origin,
362 uint8 experiment_id); 362 uint8 experiment_id);
363 363
364 // Checks if the PrerenderContents has been added to the pending delete list.
365 bool IsPendingDelete(PrerenderContents* entry) const;
366
367 // Deletes any PrerenderContents that have been added to the pending delete 364 // Deletes any PrerenderContents that have been added to the pending delete
368 // list. 365 // list.
369 void DeletePendingDeleteEntries(); 366 void DeletePendingDeleteEntries();
370 367
371 // Finds the specified PrerenderContentsData/PrerenderContents and returns it, 368 // Finds the specified PrerenderContentsData/PrerenderContents and returns it,
372 // if it exists. Returns NULL otherwise. Unlike GetEntry, the 369 // if it exists. Returns NULL otherwise. Unlike GetEntry, the
373 // PrerenderManager maintains ownership of the PrerenderContents. 370 // PrerenderManager maintains ownership of the PrerenderContents.
374 PrerenderContentsData* FindEntryData(const GURL& url); 371 PrerenderContentsData* FindEntryData(const GURL& url);
375 PrerenderContents* FindEntry(const GURL& url) const; 372 PrerenderContents* FindEntry(const GURL& url) const;
376 373
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 490
494 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); 491 DISALLOW_COPY_AND_ASSIGN(PrerenderManager);
495 }; 492 };
496 493
497 PrerenderManager* FindPrerenderManagerUsingRenderProcessId( 494 PrerenderManager* FindPrerenderManagerUsingRenderProcessId(
498 int render_process_id); 495 int render_process_id);
499 496
500 } // namespace prerender 497 } // namespace prerender
501 498
502 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 499 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698