Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / prerender / prerender_condition.h
blobee2541489976110d436ffc6e00c16f0d12a0c6ce
1 // Copyright (c) 2011 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_PRERENDER_PRERENDER_CONDITION_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONDITION_H_
8 namespace prerender {
10 // PrerenderCondition's dictate whether prerendering can happen.
11 // All conditions must be met before a prerender is allowed.
12 class PrerenderCondition {
13 public:
14 virtual ~PrerenderCondition() {}
15 virtual bool CanPrerender() const = 0;
18 } // namespace prerender
20 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONDITION_H_