Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_LINK_MANAGER_FACTORY_H_ | |
| 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_LINK_MANAGER_FACTORY_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "base/memory/singleton.h" | |
| 11 #include "chrome/browser/profiles/profile_keyed_service_factory.h" | |
| 12 | |
| 13 class Profile; | |
| 14 | |
| 15 namespace prerender { | |
| 16 | |
| 17 class PrerenderLinkManager; | |
| 18 | |
| 19 class PrerenderLinkManagerFactory : public ProfileKeyedServiceFactory { | |
| 20 public: | |
| 21 static PrerenderLinkManager* GetForProfile(Profile* profile); | |
| 22 static PrerenderLinkManagerFactory* GetInstance(); | |
| 23 | |
| 24 private: | |
| 25 friend struct DefaultSingletonTraits<PrerenderLinkManagerFactory>; | |
| 26 | |
| 27 PrerenderLinkManagerFactory(); | |
| 28 virtual ~PrerenderLinkManagerFactory() { } | |
| 29 | |
| 30 virtual ProfileKeyedService* BuildServiceInstanceFor( | |
| 31 Profile* profile) const OVERRIDE; | |
| 32 virtual bool ServiceHasOwnInstanceInIncognito() OVERRIDE; | |
| 33 }; | |
| 34 | |
| 35 } | |
|
cbentzel
2012/04/24 15:42:59
Nit: // namespace prerender
gavinp
2012/04/26 23:55:39
Done.
| |
| 36 | |
| 37 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_LINK_MANAGER_FACTORY_H_ | |
| OLD | NEW |