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

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

Issue 9875026: **NOTFORLANDING** New link rel=prerender API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch sets 3-7 against trunk, for combined browsing Created 8 years, 8 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698