Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Side by Side Diff: chrome/browser/prerender/prerender_config.h

Issue 9387015: Upstreaming prerendering changes for Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 3 Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698