| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 bool TabSpecificContentSettings::OnMessageReceived( | 413 bool TabSpecificContentSettings::OnMessageReceived( |
| 414 const IPC::Message& message) { | 414 const IPC::Message& message) { |
| 415 bool handled = true; | 415 bool handled = true; |
| 416 IPC_BEGIN_MESSAGE_MAP(TabSpecificContentSettings, message) | 416 IPC_BEGIN_MESSAGE_MAP(TabSpecificContentSettings, message) |
| 417 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_ContentBlocked, OnContentBlocked) | 417 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_ContentBlocked, OnContentBlocked) |
| 418 IPC_MESSAGE_UNHANDLED(handled = false) | 418 IPC_MESSAGE_UNHANDLED(handled = false) |
| 419 IPC_END_MESSAGE_MAP() | 419 IPC_END_MESSAGE_MAP() |
| 420 return handled; | 420 return handled; |
| 421 } | 421 } |
| 422 | 422 |
| 423 void TabSpecificContentSettings::DidNavigateMainFramePostCommit( | 423 void TabSpecificContentSettings::DidNavigateMainFrame( |
| 424 const content::LoadCommittedDetails& details, | 424 const content::LoadCommittedDetails& details, |
| 425 const ViewHostMsg_FrameNavigate_Params& params) { | 425 const ViewHostMsg_FrameNavigate_Params& params) { |
| 426 if (!details.is_in_page) { | 426 if (!details.is_in_page) { |
| 427 // Clear "blocked" flags. | 427 // Clear "blocked" flags. |
| 428 ClearBlockedContentSettingsExceptForCookies(); | 428 ClearBlockedContentSettingsExceptForCookies(); |
| 429 GeolocationDidNavigate(details); | 429 GeolocationDidNavigate(details); |
| 430 } | 430 } |
| 431 } | 431 } |
| 432 | 432 |
| 433 void TabSpecificContentSettings::RenderViewCreated( | 433 void TabSpecificContentSettings::RenderViewCreated( |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 return new CookiesTreeModel(cookies_->Clone(), | 526 return new CookiesTreeModel(cookies_->Clone(), |
| 527 databases_->Clone(), | 527 databases_->Clone(), |
| 528 local_storages_->Clone(), | 528 local_storages_->Clone(), |
| 529 session_storages_->Clone(), | 529 session_storages_->Clone(), |
| 530 appcaches_->Clone(), | 530 appcaches_->Clone(), |
| 531 indexed_dbs_->Clone(), | 531 indexed_dbs_->Clone(), |
| 532 file_systems_->Clone(), | 532 file_systems_->Clone(), |
| 533 NULL, | 533 NULL, |
| 534 true); | 534 true); |
| 535 } | 535 } |
| OLD | NEW |