blob: 46b83a55300d6ccdf571a0de2ed33dc353e80cbe (
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
35
36
37
38
39
|
// Copyright (c) 2012 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"
#include "ui/gfx/rect.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;
// The default tab bounds used as the prerenderer tab size when the active tab
// cannot be accessed.
gfx::Rect default_tab_bounds;
};
} // namespace prerender
#endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_
|