diff options
author | dominich@chromium.org <dominich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-07 21:01:39 +0000 |
---|---|---|
committer | dominich@chromium.org <dominich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-07 21:01:39 +0000 |
commit | ada01b945465efd456813c51ff9090f43337d49c (patch) | |
tree | 3fcdfb6aa4d6e1d114ca4928db578a73fac75658 /chrome/browser/prerender/prerender_manager.h | |
parent | 8c103ce463cb1ce652e89daf9403649aaea0d689 (diff) | |
download | chromium_src-ada01b945465efd456813c51ff9090f43337d49c.zip chromium_src-ada01b945465efd456813c51ff9090f43337d49c.tar.gz chromium_src-ada01b945465efd456813c51ff9090f43337d49c.tar.bz2 |
Revert 100003 - Moved PrerenderManager to ProfileKeyedService system.
As per https://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/554b5b0ca05e001d# it is recommended that weak references to services be removed from Profiles and constructed as ProfileKeyedServices instead. This does this for the PrerenderManager.
BUG=94643
TEST=Prerender*
Review URL: http://codereview.chromium.org/7795009
TBR=dominich@chromium.org
Review URL: http://codereview.chromium.org/7837045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/prerender/prerender_manager.h')
-rw-r--r-- | chrome/browser/prerender/prerender_manager.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/chrome/browser/prerender/prerender_manager.h b/chrome/browser/prerender/prerender_manager.h index bcbaca2..8566b85 100644 --- a/chrome/browser/prerender/prerender_manager.h +++ b/chrome/browser/prerender/prerender_manager.h @@ -23,7 +23,6 @@ #include "chrome/browser/prerender/prerender_contents.h" #include "chrome/browser/prerender/prerender_final_status.h" #include "chrome/browser/prerender/prerender_origin.h" -#include "chrome/browser/profiles/profile_keyed_service.h" #include "googleurl/src/gurl.h" class Profile; @@ -53,8 +52,7 @@ class PrerenderTracker; // views of webpages. All methods must be called on the UI thread unless // indicated otherwise. class PrerenderManager : public base::SupportsWeakPtr<PrerenderManager>, - public base::NonThreadSafe, - public ProfileKeyedService { + public base::NonThreadSafe { public: // PrerenderManagerMode is used in a UMA_HISTOGRAM, so please do not // add in the middle. @@ -82,9 +80,6 @@ class PrerenderManager : public base::SupportsWeakPtr<PrerenderManager>, virtual ~PrerenderManager(); - // ProfileKeyedService implementation. - virtual void Shutdown() OVERRIDE; - // Entry points for adding prerenders. // Adds a prerender for |url| if valid. |process_id| and |route_id| identify @@ -223,11 +218,6 @@ class PrerenderManager : public base::SupportsWeakPtr<PrerenderManager>, PendingContentsData* FindPendingEntry(const GURL& url); - // Utility method that is called from the virtual Shutdown method on this - // class but is called directly from the TestPrerenderManager in the unit - // tests. - void DoShutdown(); - private: // Test that needs needs access to internal functions. friend class PrerenderBrowserTest; |