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

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 (maybe again) Created 9 years, 2 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
11 // TODO(erg): This list has been temporarily annotated by erg while doing work 11 // TODO(erg): This list has been temporarily annotated by erg while doing work
12 // on which headers to pull out. 12 // on which headers to pull out.
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/process.h" 15 #include "base/process.h"
16 #include "base/shared_memory.h" 16 #include "base/shared_memory.h"
17 #include "base/string16.h" 17 #include "base/string16.h"
18 #include "base/stringprintf.h" 18 #include "base/stringprintf.h"
19 #include "base/values.h" 19 #include "base/values.h"
20 #include "build/build_config.h" 20 #include "build/build_config.h"
21 #include "chrome/common/common_param_traits.h" 21 #include "chrome/common/common_param_traits.h"
22 #include "chrome/common/content_settings.h"
22 #include "chrome/common/content_settings_pattern.h" 23 #include "chrome/common/content_settings_pattern.h"
23 #include "chrome/common/instant_types.h" 24 #include "chrome/common/instant_types.h"
24 #include "chrome/common/nacl_types.h" 25 #include "chrome/common/nacl_types.h"
25 #include "chrome/common/search_provider.h" 26 #include "chrome/common/search_provider.h"
26 #include "chrome/common/thumbnail_score.h" 27 #include "chrome/common/thumbnail_score.h"
27 #include "chrome/common/translate_errors.h" 28 #include "chrome/common/translate_errors.h"
28 #include "content/common/common_param_traits.h" 29 #include "content/common/common_param_traits.h"
29 #include "content/common/webkit_param_traits.h" 30 #include "content/common/webkit_param_traits.h"
30 #include "ipc/ipc_message_macros.h" 31 #include "ipc/ipc_message_macros.h"
31 #include "ipc/ipc_platform_file.h" 32 #include "ipc/ipc_platform_file.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts) 132 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts)
132 IPC_STRUCT_TRAITS_MEMBER(scheme) 133 IPC_STRUCT_TRAITS_MEMBER(scheme)
133 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard) 134 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard)
134 IPC_STRUCT_TRAITS_MEMBER(host) 135 IPC_STRUCT_TRAITS_MEMBER(host)
135 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard) 136 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard)
136 IPC_STRUCT_TRAITS_MEMBER(port) 137 IPC_STRUCT_TRAITS_MEMBER(port)
137 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard) 138 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard)
138 IPC_STRUCT_TRAITS_MEMBER(path) 139 IPC_STRUCT_TRAITS_MEMBER(path)
139 IPC_STRUCT_TRAITS_END() 140 IPC_STRUCT_TRAITS_END()
140 141
142 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource)
143 IPC_STRUCT_TRAITS_MEMBER(primary_pattern)
144 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern)
145 IPC_STRUCT_TRAITS_MEMBER(setting)
146 IPC_STRUCT_TRAITS_MEMBER(source)
147 IPC_STRUCT_TRAITS_MEMBER(incognito)
148 IPC_STRUCT_TRAITS_END()
149
141 IPC_STRUCT_TRAITS_BEGIN(ThumbnailScore) 150 IPC_STRUCT_TRAITS_BEGIN(ThumbnailScore)
142 IPC_STRUCT_TRAITS_MEMBER(boring_score) 151 IPC_STRUCT_TRAITS_MEMBER(boring_score)
143 IPC_STRUCT_TRAITS_MEMBER(good_clipping) 152 IPC_STRUCT_TRAITS_MEMBER(good_clipping)
144 IPC_STRUCT_TRAITS_MEMBER(at_top) 153 IPC_STRUCT_TRAITS_MEMBER(at_top)
145 IPC_STRUCT_TRAITS_MEMBER(time_at_snapshot) 154 IPC_STRUCT_TRAITS_MEMBER(time_at_snapshot)
146 IPC_STRUCT_TRAITS_END() 155 IPC_STRUCT_TRAITS_END()
147 156
148 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStat) 157 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStat)
149 IPC_STRUCT_TRAITS_MEMBER(count) 158 IPC_STRUCT_TRAITS_MEMBER(count)
150 IPC_STRUCT_TRAITS_MEMBER(size) 159 IPC_STRUCT_TRAITS_MEMBER(size)
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetContentSettingsForCurrentURL, 237 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetContentSettingsForCurrentURL,
229 GURL /* url */, 238 GURL /* url */,
230 ContentSettings /* content_settings */) 239 ContentSettings /* content_settings */)
231 240
232 // Set the content settings for a particular url that the renderer is in the 241 // Set the content settings for a particular url that the renderer is in the
233 // process of loading. This will be stored, to be used if the load commits 242 // process of loading. This will be stored, to be used if the load commits
234 // and ignored otherwise. 243 // and ignored otherwise.
235 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetDefaultContentSettings, 244 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetDefaultContentSettings,
236 ContentSettings /* content_settings */) 245 ContentSettings /* content_settings */)
237 246
247 // Set the content settings for images.
248 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetImageSettingRules,
249 ContentSettingsForOneType /* rules */)
250
238 // Tells the render view to load all blocked plugins. 251 // Tells the render view to load all blocked plugins.
239 IPC_MESSAGE_ROUTED0(ChromeViewMsg_LoadBlockedPlugins) 252 IPC_MESSAGE_ROUTED0(ChromeViewMsg_LoadBlockedPlugins)
240 253
241 // Asks the renderer to send back stats on the WebCore cache broken down by 254 // Asks the renderer to send back stats on the WebCore cache broken down by
242 // resource types. 255 // resource types.
243 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats) 256 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
244 257
245 // Asks the renderer to send back Histograms. 258 // Asks the renderer to send back Histograms.
246 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererHistograms, 259 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererHistograms,
247 int /* sequence number of Renderer Histograms. */) 260 int /* sequence number of Renderer Histograms. */)
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 // previous SetCookie message to be processed. 631 // previous SetCookie message to be processed.
619 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, 632 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
620 GURL /* url */, 633 GURL /* url */,
621 GURL /* first_party_for_cookies */, 634 GURL /* first_party_for_cookies */,
622 std::string /* cookies */) 635 std::string /* cookies */)
623 636
624 // Provide the browser process with current renderer framerate. 637 // Provide the browser process with current renderer framerate.
625 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, 638 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
626 int /* routing id */, 639 int /* routing id */,
627 float /* frames per second */) 640 float /* frames per second */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698