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

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

Issue 10383292: Get rid of the need of ViewType::VIEW_TYPE_INTERSTITIAL_PAGE in content. There are no ViewType valu… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 427
428 void TabSpecificContentSettings::GeolocationDidNavigate( 428 void TabSpecificContentSettings::GeolocationDidNavigate(
429 const content::LoadCommittedDetails& details) { 429 const content::LoadCommittedDetails& details) {
430 geolocation_settings_state_.DidNavigate(details); 430 geolocation_settings_state_.DidNavigate(details);
431 } 431 }
432 432
433 void TabSpecificContentSettings::ClearGeolocationContentSettings() { 433 void TabSpecificContentSettings::ClearGeolocationContentSettings() {
434 geolocation_settings_state_.ClearStateMap(); 434 geolocation_settings_state_.ClearStateMap();
435 } 435 }
436 436
437 void TabSpecificContentSettings::RenderViewForInterstitialPageCreated(
438 RenderViewHost* render_view_host) {
439 render_view_host->Send(new ChromeViewMsg_SetAsInterstitial(
440 render_view_host->GetRoutingID()));
441 }
442
437 bool TabSpecificContentSettings::OnMessageReceived( 443 bool TabSpecificContentSettings::OnMessageReceived(
438 const IPC::Message& message) { 444 const IPC::Message& message) {
439 bool handled = true; 445 bool handled = true;
440 IPC_BEGIN_MESSAGE_MAP(TabSpecificContentSettings, message) 446 IPC_BEGIN_MESSAGE_MAP(TabSpecificContentSettings, message)
441 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_ContentBlocked, OnContentBlocked) 447 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_ContentBlocked, OnContentBlocked)
442 IPC_MESSAGE_UNHANDLED(handled = false) 448 IPC_MESSAGE_UNHANDLED(handled = false)
443 IPC_END_MESSAGE_MAP() 449 IPC_END_MESSAGE_MAP()
444 return handled; 450 return handled;
445 } 451 }
446 452
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 } 519 }
514 520
515 void TabSpecificContentSettings::RemoveSiteDataObserver( 521 void TabSpecificContentSettings::RemoveSiteDataObserver(
516 SiteDataObserver* observer) { 522 SiteDataObserver* observer) {
517 observer_list_.RemoveObserver(observer); 523 observer_list_.RemoveObserver(observer);
518 } 524 }
519 525
520 void TabSpecificContentSettings::NotifySiteDataObservers() { 526 void TabSpecificContentSettings::NotifySiteDataObservers() {
521 FOR_EACH_OBSERVER(SiteDataObserver, observer_list_, OnSiteDataAccessed()); 527 FOR_EACH_OBSERVER(SiteDataObserver, observer_list_, OnSiteDataAccessed());
522 } 528 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698