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

Side by Side Diff: chrome/common/render_messages_params.h

Issue 6247013: Don't load plugins on prerendered pages until the pages are displayed.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698