Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 21 matching lines...) Expand all Loading... | |
| 32 #include "content/public/browser/render_frame_host.h" | 32 #include "content/public/browser/render_frame_host.h" |
| 33 #include "content/public/browser/render_view_host.h" | 33 #include "content/public/browser/render_view_host.h" |
| 34 #include "content/public/browser/web_contents.h" | 34 #include "content/public/browser/web_contents.h" |
| 35 #include "content/public/browser/web_contents_delegate.h" | 35 #include "content/public/browser/web_contents_delegate.h" |
| 36 #include "net/cookies/canonical_cookie.h" | 36 #include "net/cookies/canonical_cookie.h" |
| 37 #include "webkit/common/fileapi/file_system_types.h" | 37 #include "webkit/common/fileapi/file_system_types.h" |
| 38 | 38 |
| 39 using content::BrowserThread; | 39 using content::BrowserThread; |
| 40 using content::NavigationController; | 40 using content::NavigationController; |
| 41 using content::NavigationEntry; | 41 using content::NavigationEntry; |
| 42 using content::RenderFrameHost; | |
|
fsamuel
2014/05/30 15:13:21
revert this change.
Xi Han
2014/05/30 18:15:56
Done.
| |
| 42 using content::RenderViewHost; | 43 using content::RenderViewHost; |
| 43 using content::WebContents; | 44 using content::WebContents; |
| 44 | 45 |
| 45 DEFINE_WEB_CONTENTS_USER_DATA_KEY(TabSpecificContentSettings); | 46 DEFINE_WEB_CONTENTS_USER_DATA_KEY(TabSpecificContentSettings); |
| 46 | 47 |
| 47 TabSpecificContentSettings::SiteDataObserver::SiteDataObserver( | 48 TabSpecificContentSettings::SiteDataObserver::SiteDataObserver( |
| 48 TabSpecificContentSettings* tab_specific_content_settings) | 49 TabSpecificContentSettings* tab_specific_content_settings) |
| 49 : tab_specific_content_settings_(tab_specific_content_settings) { | 50 : tab_specific_content_settings_(tab_specific_content_settings) { |
| 50 tab_specific_content_settings_->AddSiteDataObserver(this); | 51 tab_specific_content_settings_->AddSiteDataObserver(this); |
| 51 } | 52 } |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 723 } | 724 } |
| 724 | 725 |
| 725 void TabSpecificContentSettings::RemoveSiteDataObserver( | 726 void TabSpecificContentSettings::RemoveSiteDataObserver( |
| 726 SiteDataObserver* observer) { | 727 SiteDataObserver* observer) { |
| 727 observer_list_.RemoveObserver(observer); | 728 observer_list_.RemoveObserver(observer); |
| 728 } | 729 } |
| 729 | 730 |
| 730 void TabSpecificContentSettings::NotifySiteDataObservers() { | 731 void TabSpecificContentSettings::NotifySiteDataObservers() { |
| 731 FOR_EACH_OBSERVER(SiteDataObserver, observer_list_, OnSiteDataAccessed()); | 732 FOR_EACH_OBSERVER(SiteDataObserver, observer_list_, OnSiteDataAccessed()); |
| 732 } | 733 } |
| OLD | NEW |