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

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

Issue 8498007: ContentSettingsObserver (+ related classes) cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing struct ContentSettings, too. Created 9 years, 1 month 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
« no previous file with comments | « chrome/common/content_settings.cc ('k') | chrome/common/render_messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Multiply-included file, no traditional include guard. 5 // Multiply-included file, no traditional include guard.
6 #include <map> 6 #include <map>
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 static void Log(const param_type& p, std::string* l) { 93 static void Log(const param_type& p, std::string* l) {
94 l->append(base::StringPrintf("<gfx::NativeView>")); 94 l->append(base::StringPrintf("<gfx::NativeView>"));
95 } 95 }
96 }; 96 };
97 97
98 #endif // defined(OS_POSIX) && !defined(USE_AURA) 98 #endif // defined(OS_POSIX) && !defined(USE_AURA)
99 99
100 template <> 100 template <>
101 struct ParamTraits<ContentSettings> {
102 typedef ContentSettings param_type;
103 static void Write(Message* m, const param_type& p);
104 static bool Read(const Message* m, void** iter, param_type* r);
105 static void Log(const param_type& p, std::string* l);
106 };
107
108 template <>
109 struct ParamTraits<ContentSettingsPattern> { 101 struct ParamTraits<ContentSettingsPattern> {
110 typedef ContentSettingsPattern param_type; 102 typedef ContentSettingsPattern param_type;
111 static void Write(Message* m, const param_type& p); 103 static void Write(Message* m, const param_type& p);
112 static bool Read(const Message* m, void** iter, param_type* r); 104 static bool Read(const Message* m, void** iter, param_type* r);
113 static void Log(const param_type& p, std::string* l); 105 static void Log(const param_type& p, std::string* l);
114 }; 106 };
115 107
116 } // namespace IPC 108 } // namespace IPC
117 109
118 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 110 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 216
225 // History system notification that a link has been added and the link 217 // History system notification that a link has been added and the link
226 // coloring state for the given hash must be re-calculated. 218 // coloring state for the given hash must be re-calculated.
227 IPC_MESSAGE_CONTROL1(ChromeViewMsg_VisitedLink_Add, std::vector<uint64>) 219 IPC_MESSAGE_CONTROL1(ChromeViewMsg_VisitedLink_Add, std::vector<uint64>)
228 220
229 // History system notification that one or more history items have been 221 // History system notification that one or more history items have been
230 // deleted, which at this point means that all link coloring state must be 222 // deleted, which at this point means that all link coloring state must be
231 // re-calculated. 223 // re-calculated.
232 IPC_MESSAGE_CONTROL0(ChromeViewMsg_VisitedLink_Reset) 224 IPC_MESSAGE_CONTROL0(ChromeViewMsg_VisitedLink_Reset)
233 225
234 // Set the content settings for a particular url that the renderer is in the
235 // process of loading. This will be stored, to be used if the load commits
236 // and ignored otherwise.
237 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SetContentSettingsForLoadingURL,
238 GURL /* url */,
239 ContentSettings /* content_settings */)
240
241 // Set the content settings for a particular url, so all render views
242 // displaying this host url update their content settings to match.
243 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetContentSettingsForCurrentURL,
244 GURL /* url */,
245 ContentSettings /* content_settings */)
246
247 // Set the content settings for a particular url that the renderer is in the
248 // process of loading. This will be stored, to be used if the load commits
249 // and ignored otherwise.
250 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetDefaultContentSettings,
251 ContentSettings /* content_settings */)
252
253 // Set the content setting rules stored by the renderer. 226 // Set the content setting rules stored by the renderer.
254 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules, 227 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
255 RendererContentSettingRules /* rules */) 228 RendererContentSettingRules /* rules */)
256 229
257 // Tells the render view to load all blocked plugins. 230 // Tells the render view to load all blocked plugins.
258 IPC_MESSAGE_ROUTED0(ChromeViewMsg_LoadBlockedPlugins) 231 IPC_MESSAGE_ROUTED0(ChromeViewMsg_LoadBlockedPlugins)
259 232
260 // Asks the renderer to send back stats on the WebCore cache broken down by 233 // Asks the renderer to send back stats on the WebCore cache broken down by
261 // resource types. 234 // resource types.
262 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats) 235 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 // previous SetCookie message to be processed. 597 // previous SetCookie message to be processed.
625 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, 598 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
626 GURL /* url */, 599 GURL /* url */,
627 GURL /* first_party_for_cookies */, 600 GURL /* first_party_for_cookies */,
628 std::string /* cookies */) 601 std::string /* cookies */)
629 602
630 // Provide the browser process with current renderer framerate. 603 // Provide the browser process with current renderer framerate.
631 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, 604 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
632 int /* routing id */, 605 int /* routing id */,
633 float /* frames per second */) 606 float /* frames per second */)
OLDNEW
« no previous file with comments | « chrome/common/content_settings.cc ('k') | chrome/common/render_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698