// 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_