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

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

Powered by Google App Engine
This is Rietveld 408576698