| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_ |
| 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_ | 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "ui/gfx/rect.h" |
| 10 | 11 |
| 11 namespace prerender { | 12 namespace prerender { |
| 12 | 13 |
| 13 struct Config { | 14 struct Config { |
| 14 Config(); | 15 Config(); |
| 15 | 16 |
| 16 // Maximum memory use for a prerendered page until it is killed. | 17 // Maximum memory use for a prerendered page until it is killed. |
| 17 size_t max_bytes; | 18 size_t max_bytes; |
| 18 | 19 |
| 19 // Number of simultaneous prendered pages allowed. | 20 // Number of simultaneous prendered pages allowed. |
| 20 unsigned int max_elements; | 21 unsigned int max_elements; |
| 21 | 22 |
| 22 // Is rate limiting enabled? | 23 // Is rate limiting enabled? |
| 23 bool rate_limit_enabled; | 24 bool rate_limit_enabled; |
| 24 | 25 |
| 25 // Maximum age for a prerendered page until it is removed. | 26 // Maximum age for a prerendered page until it is removed. |
| 26 base::TimeDelta max_age; | 27 base::TimeDelta max_age; |
| 27 | 28 |
| 28 // Is https allowed? | 29 // Is https allowed? |
| 29 bool https_allowed; | 30 bool https_allowed; |
| 31 |
| 32 // The default tab bounds used as the prerenderer tab size when the active tab |
| 33 // cannot be accessed. |
| 34 gfx::Rect default_tab_bounds; |
| 30 }; | 35 }; |
| 31 | 36 |
| 32 } // namespace prerender | 37 } // namespace prerender |
| 33 | 38 |
| 34 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_ | 39 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_ |
| OLD | NEW |