Chromium Code Reviews| Index: chrome/browser/prerender/prerender_constants.h |
| diff --git a/chrome/browser/prerender/prerender_constants.h b/chrome/browser/prerender/prerender_constants.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5508a9e1b4e70cb097d61e6fddcccc01d6a2ce9c |
| --- /dev/null |
| +++ b/chrome/browser/prerender/prerender_constants.h |
| @@ -0,0 +1,20 @@ |
| +// Copyright (c) 2016 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_CONSTANTS_H_ |
| +#define CHROME_BROWSER_PRERENDER_PRERENDER_CONSTANTS_H_ |
| + |
| +namespace prerender { |
| + |
| +/* Most of the prerender are used in less than 5 minutes. */ |
|
pasko
2016/04/04 17:04:22
C++ style comments necessary here.
gabadie
2016/04/04 19:42:50
Done.
|
| +const int kDefaultPrerenderLifeExpectancyMinutes = 5; |
| + |
| +/* Offline originated prerenders have an higher life expectancy to have more |
|
pasko
2016/04/04 17:04:22
And here too - C++ style comments.
gabadie
2016/04/04 19:42:50
Done.
|
| + * time to fully load web pages from slow network before the web content |
| + * snapshot. */ |
| +const int kOfflinePrerenderLifeExpectancyMinutes = 20; |
| + |
| +} // namespace prerender |
| + |
| +#endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONSTANTS_H_ |