OLD | NEW |
| (Empty) |
1 // Copyright 2013 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_ANDROID_PRERENDER_CONDITION_PLATFORM_H_ | |
6 #define CHROME_BROWSER_ANDROID_PRERENDER_CONDITION_PLATFORM_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "base/supports_user_data.h" | |
10 #include "chrome/browser/prerender/prerender_condition.h" | |
11 | |
12 namespace content { | |
13 class BrowserContext; | |
14 } // namespace content | |
15 | |
16 namespace android { | |
17 | |
18 class PrerenderConditionPlatform : public prerender::PrerenderCondition { | |
19 public: | |
20 explicit PrerenderConditionPlatform(content::BrowserContext* context); | |
21 virtual ~PrerenderConditionPlatform(); | |
22 | |
23 // prerender::PrerenderCondition | |
24 virtual bool CanPrerender() const OVERRIDE; | |
25 | |
26 static void SetEnabled(content::BrowserContext* context, bool enabled); | |
27 private: | |
28 content::BrowserContext* context_; | |
29 DISALLOW_COPY_AND_ASSIGN(PrerenderConditionPlatform); | |
30 }; | |
31 | |
32 } // namespace android | |
33 | |
34 #endif // CHROME_BROWSER_ANDROID_PRERENDER_CONDITION_PLATFORM_H_ | |
OLD | NEW |