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 13 matching lines...) Expand all Loading... |
24 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
25 #include "chrome/common/render_messages.h" | 25 #include "chrome/common/render_messages.h" |
26 #include "content/public/browser/navigation_controller.h" | 26 #include "content/public/browser/navigation_controller.h" |
27 #include "content/public/browser/navigation_details.h" | 27 #include "content/public/browser/navigation_details.h" |
28 #include "content/public/browser/navigation_entry.h" | 28 #include "content/public/browser/navigation_entry.h" |
29 #include "content/public/browser/notification_service.h" | 29 #include "content/public/browser/notification_service.h" |
30 #include "content/public/browser/render_view_host.h" | 30 #include "content/public/browser/render_view_host.h" |
31 #include "content/public/browser/render_view_host_observer.h" | 31 #include "content/public/browser/render_view_host_observer.h" |
32 #include "content/public/browser/web_contents.h" | 32 #include "content/public/browser/web_contents.h" |
33 #include "content/public/browser/web_contents_delegate.h" | 33 #include "content/public/browser/web_contents_delegate.h" |
| 34 #include "net/cookies/canonical_cookie.h" |
34 #include "webkit/fileapi/file_system_types.h" | 35 #include "webkit/fileapi/file_system_types.h" |
35 | 36 |
36 using content::BrowserThread; | 37 using content::BrowserThread; |
37 using content::NavigationController; | 38 using content::NavigationController; |
38 using content::NavigationEntry; | 39 using content::NavigationEntry; |
39 using content::RenderViewHost; | 40 using content::RenderViewHost; |
40 using content::WebContents; | 41 using content::WebContents; |
41 | 42 |
42 namespace { | 43 namespace { |
43 typedef std::list<TabSpecificContentSettings*> TabSpecificList; | 44 typedef std::list<TabSpecificContentSettings*> TabSpecificList; |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 } | 535 } |
535 | 536 |
536 void TabSpecificContentSettings::RemoveSiteDataObserver( | 537 void TabSpecificContentSettings::RemoveSiteDataObserver( |
537 SiteDataObserver* observer) { | 538 SiteDataObserver* observer) { |
538 observer_list_.RemoveObserver(observer); | 539 observer_list_.RemoveObserver(observer); |
539 } | 540 } |
540 | 541 |
541 void TabSpecificContentSettings::NotifySiteDataObservers() { | 542 void TabSpecificContentSettings::NotifySiteDataObservers() { |
542 FOR_EACH_OBSERVER(SiteDataObserver, observer_list_, OnSiteDataAccessed()); | 543 FOR_EACH_OBSERVER(SiteDataObserver, observer_list_, OnSiteDataAccessed()); |
543 } | 544 } |
OLD | NEW |