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

Side by Side Diff: chrome/browser/content_settings/tab_specific_content_settings.cc

Issue 10584042: Bring up a content settings icon for ungestured registerProtocolHandler call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments. Move to radio buttons Created 8 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 5 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 TabSpecificContentSettings::SiteDataObserver::~SiteDataObserver() { 67 TabSpecificContentSettings::SiteDataObserver::~SiteDataObserver() {
68 tab_specific_content_settings_->RemoveSiteDataObserver(this); 68 tab_specific_content_settings_->RemoveSiteDataObserver(this);
69 } 69 }
70 70
71 TabSpecificContentSettings::TabSpecificContentSettings(WebContents* tab) 71 TabSpecificContentSettings::TabSpecificContentSettings(WebContents* tab)
72 : content::WebContentsObserver(tab), 72 : content::WebContentsObserver(tab),
73 profile_(Profile::FromBrowserContext(tab->GetBrowserContext())), 73 profile_(Profile::FromBrowserContext(tab->GetBrowserContext())),
74 allowed_local_shared_objects_(profile_), 74 allowed_local_shared_objects_(profile_),
75 blocked_local_shared_objects_(profile_), 75 blocked_local_shared_objects_(profile_),
76 geolocation_settings_state_(profile_), 76 geolocation_settings_state_(profile_),
77 pending_protocol_handler_(ProtocolHandler::EmptyProtocolHandler()),
78 previous_protocol_handler_(ProtocolHandler::EmptyProtocolHandler()),
77 load_plugins_link_enabled_(true) { 79 load_plugins_link_enabled_(true) {
78 ClearBlockedContentSettingsExceptForCookies(); 80 ClearBlockedContentSettingsExceptForCookies();
79 ClearCookieSpecificContentSettings(); 81 ClearCookieSpecificContentSettings();
80 g_tab_specific.Get().push_back(this); 82 g_tab_specific.Get().push_back(this);
81 83
82 registrar_.Add(this, chrome::NOTIFICATION_CONTENT_SETTINGS_CHANGED, 84 registrar_.Add(this, chrome::NOTIFICATION_CONTENT_SETTINGS_CHANGED,
83 content::Source<HostContentSettingsMap>( 85 content::Source<HostContentSettingsMap>(
84 profile_->GetHostContentSettingsMap())); 86 profile_->GetHostContentSettingsMap()));
85 } 87 }
86 88
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 } 535 }
534 536
535 void TabSpecificContentSettings::RemoveSiteDataObserver( 537 void TabSpecificContentSettings::RemoveSiteDataObserver(
536 SiteDataObserver* observer) { 538 SiteDataObserver* observer) {
537 observer_list_.RemoveObserver(observer); 539 observer_list_.RemoveObserver(observer);
538 } 540 }
539 541
540 void TabSpecificContentSettings::NotifySiteDataObservers() { 542 void TabSpecificContentSettings::NotifySiteDataObservers() {
541 FOR_EACH_OBSERVER(SiteDataObserver, observer_list_, OnSiteDataAccessed()); 543 FOR_EACH_OBSERVER(SiteDataObserver, observer_list_, OnSiteDataAccessed());
542 } 544 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698