| Index: chrome/renderer/chrome_render_process_observer.cc
|
| diff --git a/chrome/renderer/chrome_render_process_observer.cc b/chrome/renderer/chrome_render_process_observer.cc
|
| index 0b2fd951d8403797a6bbf55b02d3281e0adea77d..c1ff810746ed89ece960dfefaffce32510c97c09 100644
|
| --- a/chrome/renderer/chrome_render_process_observer.cc
|
| +++ b/chrome/renderer/chrome_render_process_observer.cc
|
| @@ -106,30 +106,6 @@ class RendererResourceDelegate : public content::ResourceDispatcherDelegate {
|
| DISALLOW_COPY_AND_ASSIGN(RendererResourceDelegate);
|
| };
|
|
|
| -class RenderViewContentSettingsSetter : public content::RenderViewVisitor {
|
| - public:
|
| - RenderViewContentSettingsSetter(const GURL& url,
|
| - const ContentSettings& content_settings)
|
| - : url_(url),
|
| - content_settings_(content_settings) {
|
| - }
|
| -
|
| - virtual bool Visit(content::RenderView* render_view) {
|
| - if (GURL(render_view->GetWebView()->mainFrame()->document().url()) ==
|
| - url_) {
|
| - ContentSettingsObserver::Get(render_view)->SetContentSettings(
|
| - content_settings_);
|
| - }
|
| - return true;
|
| - }
|
| -
|
| - private:
|
| - GURL url_;
|
| - ContentSettings content_settings_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(RenderViewContentSettingsSetter);
|
| -};
|
| -
|
| #if defined(OS_WIN)
|
| static base::win::IATPatchFunction g_iat_patch_createdca;
|
| HDC WINAPI CreateDCAPatch(LPCSTR driver_name,
|
| @@ -263,10 +239,6 @@ bool ChromeRenderProcessObserver::OnControlMessageReceived(
|
| IPC_BEGIN_MESSAGE_MAP(ChromeRenderProcessObserver, message)
|
| IPC_MESSAGE_HANDLER(ChromeViewMsg_SetIsIncognitoProcess,
|
| OnSetIsIncognitoProcess)
|
| - IPC_MESSAGE_HANDLER(ChromeViewMsg_SetDefaultContentSettings,
|
| - OnSetDefaultContentSettings)
|
| - IPC_MESSAGE_HANDLER(ChromeViewMsg_SetContentSettingsForCurrentURL,
|
| - OnSetContentSettingsForCurrentURL)
|
| IPC_MESSAGE_HANDLER(ChromeViewMsg_SetContentSettingRules,
|
| OnSetContentSettingRules)
|
| IPC_MESSAGE_HANDLER(ChromeViewMsg_SetCacheCapacities, OnSetCacheCapacities)
|
| @@ -298,18 +270,6 @@ void ChromeRenderProcessObserver::OnSetIsIncognitoProcess(
|
| is_incognito_process_ = is_incognito_process;
|
| }
|
|
|
| -void ChromeRenderProcessObserver::OnSetContentSettingsForCurrentURL(
|
| - const GURL& url,
|
| - const ContentSettings& content_settings) {
|
| - RenderViewContentSettingsSetter setter(url, content_settings);
|
| - content::RenderView::ForEach(&setter);
|
| -}
|
| -
|
| -void ChromeRenderProcessObserver::OnSetDefaultContentSettings(
|
| - const ContentSettings& content_settings) {
|
| - default_content_settings_ = content_settings;
|
| -}
|
| -
|
| void ChromeRenderProcessObserver::OnSetContentSettingRules(
|
| const RendererContentSettingRules& rules) {
|
| content_setting_rules_ = rules;
|
| @@ -434,8 +394,3 @@ const RendererContentSettingRules*
|
| ChromeRenderProcessObserver::content_setting_rules() const {
|
| return &content_setting_rules_;
|
| }
|
| -
|
| -const ContentSettings*
|
| -ChromeRenderProcessObserver::default_content_settings() const {
|
| - return &default_content_settings_;
|
| -}
|
|
|