OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_COMMON_RENDER_MESSAGES_PARAMS_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // Reload the page, ignoring any cache entries. | 55 // Reload the page, ignoring any cache entries. |
56 RELOAD_IGNORING_CACHE, | 56 RELOAD_IGNORING_CACHE, |
57 | 57 |
58 // The navigation is the result of session restore and should honor the | 58 // The navigation is the result of session restore and should honor the |
59 // page's cache policy while restoring form state. This is set to true if | 59 // page's cache policy while restoring form state. This is set to true if |
60 // restoring a tab/session from the previous session and the previous | 60 // restoring a tab/session from the previous session and the previous |
61 // session did not crash. If this is not set and the page was restored then | 61 // session did not crash. If this is not set and the page was restored then |
62 // the page's cache policy is ignored and we load from the cache. | 62 // the page's cache policy is ignored and we load from the cache. |
63 RESTORE, | 63 RESTORE, |
64 | 64 |
| 65 // Speculatively prerendering the page. |
| 66 PRERENDER, |
| 67 |
65 // Navigation type not categorized by the other types. | 68 // Navigation type not categorized by the other types. |
66 NORMAL | 69 NORMAL |
67 }; | 70 }; |
68 | 71 |
69 ViewMsg_Navigate_Params(); | 72 ViewMsg_Navigate_Params(); |
70 ~ViewMsg_Navigate_Params(); | 73 ~ViewMsg_Navigate_Params(); |
71 | 74 |
72 // The page_id for this navigation, or -1 if it is a new navigation. Back, | 75 // The page_id for this navigation, or -1 if it is a new navigation. Back, |
73 // Forward, and Reload navigations should have a valid page_id. If the load | 76 // Forward, and Reload navigations should have a valid page_id. If the load |
74 // succeeds, then this page_id will be reflected in the resultant | 77 // succeeds, then this page_id will be reflected in the resultant |
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1135 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { | 1138 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { |
1136 typedef ViewHostMsg_AccessibilityNotification_Params param_type; | 1139 typedef ViewHostMsg_AccessibilityNotification_Params param_type; |
1137 static void Write(Message* m, const param_type& p); | 1140 static void Write(Message* m, const param_type& p); |
1138 static bool Read(const Message* m, void** iter, param_type* p); | 1141 static bool Read(const Message* m, void** iter, param_type* p); |
1139 static void Log(const param_type& p, std::string* l); | 1142 static void Log(const param_type& p, std::string* l); |
1140 }; | 1143 }; |
1141 | 1144 |
1142 } // namespace IPC | 1145 } // namespace IPC |
1143 | 1146 |
1144 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 1147 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
OLD | NEW |