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

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

Issue 7831075: Delegating the "are images allowed" decision to renderer. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Code review comments. Created 9 years, 3 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) 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 #endif // defined(OS_POSIX) 78 #endif // defined(OS_POSIX)
79 79
80 template <> 80 template <>
81 struct ParamTraits<ContentSettings> { 81 struct ParamTraits<ContentSettings> {
82 typedef ContentSettings param_type; 82 typedef ContentSettings param_type;
83 static void Write(Message* m, const param_type& p); 83 static void Write(Message* m, const param_type& p);
84 static bool Read(const Message* m, void** iter, param_type* r); 84 static bool Read(const Message* m, void** iter, param_type* r);
85 static void Log(const param_type& p, std::string* l); 85 static void Log(const param_type& p, std::string* l);
86 }; 86 };
87 87
88 template <>
89 struct ParamTraits<ContentSettingsPattern> {
90 typedef ContentSettingsPattern param_type;
91 static void Write(Message* m, const param_type& p);
92 static bool Read(const Message* m, void** iter, param_type* r);
93 static void Log(const param_type& p, std::string* l);
94 };
95
88 } // namespace IPC 96 } // namespace IPC
89 97
90 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 98 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
91 99
92 #define IPC_MESSAGE_START ChromeMsgStart 100 #define IPC_MESSAGE_START ChromeMsgStart
93 101
94 IPC_ENUM_TRAITS(InstantCompleteBehavior) 102 IPC_ENUM_TRAITS(InstantCompleteBehavior)
95 IPC_ENUM_TRAITS(search_provider::OSDDType) 103 IPC_ENUM_TRAITS(search_provider::OSDDType)
96 IPC_ENUM_TRAITS(search_provider::InstallState) 104 IPC_ENUM_TRAITS(search_provider::InstallState)
97 IPC_ENUM_TRAITS(TranslateErrors::Type) 105 IPC_ENUM_TRAITS(TranslateErrors::Type)
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetContentSettingsForCurrentURL, 194 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetContentSettingsForCurrentURL,
187 GURL /* url */, 195 GURL /* url */,
188 ContentSettings /* content_settings */) 196 ContentSettings /* content_settings */)
189 197
190 // Set the content settings for a particular url that the renderer is in the 198 // Set the content settings for a particular url that the renderer is in the
191 // process of loading. This will be stored, to be used if the load commits 199 // process of loading. This will be stored, to be used if the load commits
192 // and ignored otherwise. 200 // and ignored otherwise.
193 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetDefaultContentSettings, 201 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetDefaultContentSettings,
194 ContentSettings /* content_settings */) 202 ContentSettings /* content_settings */)
195 203
204 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetImageSettings,
205 ContentSettingRules /* rules */)
206
196 // Tells the render view to load all blocked plugins. 207 // Tells the render view to load all blocked plugins.
197 IPC_MESSAGE_ROUTED0(ChromeViewMsg_LoadBlockedPlugins) 208 IPC_MESSAGE_ROUTED0(ChromeViewMsg_LoadBlockedPlugins)
198 209
199 // Asks the renderer to send back stats on the WebCore cache broken down by 210 // Asks the renderer to send back stats on the WebCore cache broken down by
200 // resource types. 211 // resource types.
201 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats) 212 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
202 213
203 // Asks the renderer to send back Histograms. 214 // Asks the renderer to send back Histograms.
204 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererHistograms, 215 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererHistograms,
205 int /* sequence number of Renderer Histograms. */) 216 int /* sequence number of Renderer Histograms. */)
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 // previous SetCookie message to be processed. 567 // previous SetCookie message to be processed.
557 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, 568 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
558 GURL /* url */, 569 GURL /* url */,
559 GURL /* first_party_for_cookies */, 570 GURL /* first_party_for_cookies */,
560 std::string /* cookies */) 571 std::string /* cookies */)
561 572
562 // Provide the browser process with current renderer framerate. 573 // Provide the browser process with current renderer framerate.
563 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, 574 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
564 int /* routing id */, 575 int /* routing id */,
565 float /* frames per second */) 576 float /* frames per second */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698