| 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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 const content::FrameNavigateParams& params) { | 472 const content::FrameNavigateParams& params) { |
| 473 if (!details.is_in_page) { | 473 if (!details.is_in_page) { |
| 474 // Clear "blocked" flags. | 474 // Clear "blocked" flags. |
| 475 ClearBlockedContentSettingsExceptForCookies(); | 475 ClearBlockedContentSettingsExceptForCookies(); |
| 476 GeolocationDidNavigate(details); | 476 GeolocationDidNavigate(details); |
| 477 } | 477 } |
| 478 } | 478 } |
| 479 | 479 |
| 480 void TabSpecificContentSettings::DidStartProvisionalLoadForFrame( | 480 void TabSpecificContentSettings::DidStartProvisionalLoadForFrame( |
| 481 int64 frame_id, | 481 int64 frame_id, |
| 482 int64 parent_frame_id, |
| 482 bool is_main_frame, | 483 bool is_main_frame, |
| 483 const GURL& validated_url, | 484 const GURL& validated_url, |
| 484 bool is_error_page, | 485 bool is_error_page, |
| 485 RenderViewHost* render_view_host) { | 486 RenderViewHost* render_view_host) { |
| 486 if (!is_main_frame) | 487 if (!is_main_frame) |
| 487 return; | 488 return; |
| 488 | 489 |
| 489 // If we're displaying a network error page do not reset the content | 490 // If we're displaying a network error page do not reset the content |
| 490 // settings delegate's cookies so the user has a chance to modify cookie | 491 // settings delegate's cookies so the user has a chance to modify cookie |
| 491 // settings. | 492 // settings. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 } | 537 } |
| 537 | 538 |
| 538 void TabSpecificContentSettings::RemoveSiteDataObserver( | 539 void TabSpecificContentSettings::RemoveSiteDataObserver( |
| 539 SiteDataObserver* observer) { | 540 SiteDataObserver* observer) { |
| 540 observer_list_.RemoveObserver(observer); | 541 observer_list_.RemoveObserver(observer); |
| 541 } | 542 } |
| 542 | 543 |
| 543 void TabSpecificContentSettings::NotifySiteDataObservers() { | 544 void TabSpecificContentSettings::NotifySiteDataObservers() { |
| 544 FOR_EACH_OBSERVER(SiteDataObserver, observer_list_, OnSiteDataAccessed()); | 545 FOR_EACH_OBSERVER(SiteDataObserver, observer_list_, OnSiteDataAccessed()); |
| 545 } | 546 } |
| OLD | NEW |