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

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

Issue 11551003: Change multi-prerender API to include per launcher slots. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: guh Created 8 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time.h" 10 #include "base/time.h"
11 #include "ui/gfx/rect.h" 11 #include "ui/gfx/rect.h"
12 12
13 namespace prerender { 13 namespace prerender {
14 14
15 struct Config { 15 struct Config {
16 Config(); 16 Config();
17 ~Config(); 17 ~Config();
18 18
19 // Maximum memory use for a prerendered page until it is killed. 19 // Maximum memory use for a prerendered page until it is killed.
20 size_t max_bytes; 20 size_t max_bytes;
21 21
22 // Number of simultaneous prendered pages allowed. 22 // Number of simultaneous prerendered pages allowed.
mmenke 2012/12/18 17:15:15 This is no longer correct. Suggest something like
gavinp 2012/12/18 20:15:12 Done.
23 size_t max_concurrency; 23 size_t max_concurrency;
mmenke 2012/12/18 17:15:15 |max_link_concurrency|?
gavinp 2012/12/18 20:15:12 Done.
24 24
25 // Number of simultaneous prerendered pages allowed per launcher.
26 size_t max_concurrency_per_launcher;
27
25 // Is rate limiting enabled? 28 // Is rate limiting enabled?
26 bool rate_limit_enabled; 29 bool rate_limit_enabled;
27 30
28 // The default time to live of a newly created prerender. May be shortened to 31 // The default time to live of a newly created prerender. May be shortened to
29 // abandon_time_to_live, below. 32 // abandon_time_to_live, below.
30 base::TimeDelta time_to_live; 33 base::TimeDelta time_to_live;
31 34
32 // After a prerender has been abandoned by the user navigating away from the 35 // After a prerender has been abandoned by the user navigating away from the
33 // source page or otherwise mooting the launcher, how long until the prerender 36 // source page or otherwise mooting the launcher, how long until the prerender
34 // should be removed. This exists because a prerendered page is often 37 // should be removed. This exists because a prerendered page is often
(...skipping 13 matching lines...) Expand all
48 std::string user_agent_override; 51 std::string user_agent_override;
49 52
50 // Is the user agent being overridden for this NavigationEntry? 53 // Is the user agent being overridden for this NavigationEntry?
51 bool is_overriding_user_agent; 54 bool is_overriding_user_agent;
52 }; 55 };
53 56
54 } // namespace prerender 57 } // namespace prerender
55 58
56 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_ 59 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_
57 60
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698