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.
5 #ifndef CHROME_BROWSER_ANDROID_PRERENDER_CONDITION_PLATFORM_H_
6 #define CHROME_BROWSER_ANDROID_PRERENDER_CONDITION_PLATFORM_H_
8 #include "base/compiler_specific.h"
9 #include "base/supports_user_data.h"
10 #include "chrome/browser/prerender/prerender_condition.h"
14 } // namespace content
18 class PrerenderConditionPlatform
: public prerender::PrerenderCondition
{
20 explicit PrerenderConditionPlatform(content::BrowserContext
* context
);
21 virtual ~PrerenderConditionPlatform();
23 // prerender::PrerenderCondition
24 virtual bool CanPrerender() const OVERRIDE
;
26 static void SetEnabled(content::BrowserContext
* context
, bool enabled
);
28 content::BrowserContext
* context_
;
29 DISALLOW_COPY_AND_ASSIGN(PrerenderConditionPlatform
);
32 } // namespace android
34 #endif // CHROME_BROWSER_ANDROID_PRERENDER_CONDITION_PLATFORM_H_