Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / browser / android / prerender_condition_platform.h
blobbd5a9fe39a9cf2a0074bb251f414e72a4c4cc6ce
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"
12 namespace content {
13 class BrowserContext;
14 } // namespace content
16 namespace android {
18 class PrerenderConditionPlatform : public prerender::PrerenderCondition {
19 public:
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);
27 private:
28 content::BrowserContext* context_;
29 DISALLOW_COPY_AND_ASSIGN(PrerenderConditionPlatform);
32 } // namespace android
34 #endif // CHROME_BROWSER_ANDROID_PRERENDER_CONDITION_PLATFORM_H_