| Index: chrome/common/render_messages.h
|
| diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
|
| index 1d7b41d598ce44fce3b7020b07774b16d3db381b..54b5be389810d53cc9e3d17bfdbe9d391bc55614 100644
|
| --- a/chrome/common/render_messages.h
|
| +++ b/chrome/common/render_messages.h
|
| @@ -98,14 +98,6 @@ struct ParamTraits<gfx::NativeView> {
|
| #endif // defined(OS_POSIX) && !defined(USE_AURA)
|
|
|
| template <>
|
| -struct ParamTraits<ContentSettings> {
|
| - typedef ContentSettings param_type;
|
| - static void Write(Message* m, const param_type& p);
|
| - static bool Read(const Message* m, void** iter, param_type* r);
|
| - static void Log(const param_type& p, std::string* l);
|
| -};
|
| -
|
| -template <>
|
| struct ParamTraits<ContentSettingsPattern> {
|
| typedef ContentSettingsPattern param_type;
|
| static void Write(Message* m, const param_type& p);
|
| @@ -148,6 +140,11 @@ IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource)
|
| IPC_STRUCT_TRAITS_MEMBER(incognito)
|
| IPC_STRUCT_TRAITS_END()
|
|
|
| +IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules)
|
| + IPC_STRUCT_TRAITS_MEMBER(image_rules)
|
| + IPC_STRUCT_TRAITS_MEMBER(script_rules)
|
| +IPC_STRUCT_TRAITS_END()
|
| +
|
| IPC_STRUCT_TRAITS_BEGIN(ThumbnailScore)
|
| IPC_STRUCT_TRAITS_MEMBER(boring_score)
|
| IPC_STRUCT_TRAITS_MEMBER(good_clipping)
|
| @@ -226,28 +223,9 @@ IPC_MESSAGE_CONTROL1(ChromeViewMsg_VisitedLink_Add, std::vector<uint64>)
|
| // re-calculated.
|
| IPC_MESSAGE_CONTROL0(ChromeViewMsg_VisitedLink_Reset)
|
|
|
| -// Set the content settings for a particular url that the renderer is in the
|
| -// process of loading. This will be stored, to be used if the load commits
|
| -// and ignored otherwise.
|
| -IPC_MESSAGE_ROUTED2(ChromeViewMsg_SetContentSettingsForLoadingURL,
|
| - GURL /* url */,
|
| - ContentSettings /* content_settings */)
|
| -
|
| -// Set the content settings for a particular url, so all render views
|
| -// displaying this host url update their content settings to match.
|
| -IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetContentSettingsForCurrentURL,
|
| - GURL /* url */,
|
| - ContentSettings /* content_settings */)
|
| -
|
| -// Set the content settings for a particular url that the renderer is in the
|
| -// process of loading. This will be stored, to be used if the load commits
|
| -// and ignored otherwise.
|
| -IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetDefaultContentSettings,
|
| - ContentSettings /* content_settings */)
|
| -
|
| -// Set the content settings for images.
|
| -IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetImageSettingRules,
|
| - ContentSettingsForOneType /* rules */)
|
| +// Set the content setting rules stored by the renderer.
|
| +IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
|
| + RendererContentSettingRules /* rules */)
|
|
|
| // Tells the render view to load all blocked plugins.
|
| IPC_MESSAGE_ROUTED0(ChromeViewMsg_LoadBlockedPlugins)
|
|
|