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

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

Issue 11090068: When starting a provisional load include the parent frame ID in the IPC and pass it down the th WCO… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updatess Created 8 years, 2 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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698