OLD | NEW |
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/time.h" | 10 #include "base/time/time.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 base::TimeDelta time_to_live; | 39 base::TimeDelta time_to_live; |
40 | 40 |
41 // After a prerender has been abandoned by the user navigating away from the | 41 // After a prerender has been abandoned by the user navigating away from the |
42 // source page or otherwise mooting the launcher, how long until the prerender | 42 // source page or otherwise mooting the launcher, how long until the prerender |
43 // should be removed. This exists because a prerendered page is often | 43 // should be removed. This exists because a prerendered page is often |
44 // navigated to through a chain of redirects; removing the prerender when the | 44 // navigated to through a chain of redirects; removing the prerender when the |
45 // link element is removed because of navigation would destroy prerenders just | 45 // link element is removed because of navigation would destroy prerenders just |
46 // before they were going to be used. | 46 // before they were going to be used. |
47 base::TimeDelta abandon_time_to_live; | 47 base::TimeDelta abandon_time_to_live; |
48 | 48 |
49 // Is https allowed? | |
50 bool https_allowed; | |
51 | |
52 // The default tab bounds used as the prerenderer tab size when the active tab | 49 // The default tab bounds used as the prerenderer tab size when the active tab |
53 // cannot be accessed. | 50 // cannot be accessed. |
54 gfx::Rect default_tab_bounds; | 51 gfx::Rect default_tab_bounds; |
55 | 52 |
56 // User agent being used as an override for the WebContents. | 53 // User agent being used as an override for the WebContents. |
57 std::string user_agent_override; | 54 std::string user_agent_override; |
58 | 55 |
59 // Is the user agent being overridden for this NavigationEntry? | 56 // Is the user agent being overridden for this NavigationEntry? |
60 bool is_overriding_user_agent; | 57 bool is_overriding_user_agent; |
61 }; | 58 }; |
62 | 59 |
63 } // namespace prerender | 60 } // namespace prerender |
64 | 61 |
65 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_ | 62 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_ |
66 | 63 |
OLD | NEW |