summaryrefslogtreecommitdiffstats
path: root/chrome/browser/prerender/prerender_config.h
blob: a9ca690c8f87597b82f90c1d2eb862c4a2d2f451 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_
#define CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_
#pragma once

#include "base/time.h"

namespace prerender {

struct Config {
  Config();

  // Maximum memory use for a prerendered page until it is killed.
  size_t max_bytes;

  // Number of simultaneous prendered pages allowed.
  unsigned int max_elements;

  // Is rate limiting enabled?
  bool rate_limit_enabled;

  // Maximum age for a prerendered page until it is removed.
  base::TimeDelta max_age;

  // Is https allowed?
  bool https_allowed;
};

}  // namespace prerender

#endif  // CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_