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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::DidNavigateMainFrame( | 423 void TabSpecificContentSettings::DidNavigateMainFrame( |
424 const content::LoadCommittedDetails& details, | 424 const content::LoadCommittedDetails& details, |
425 const ViewHostMsg_FrameNavigate_Params& params) { | 425 const content::FrameNavigateParams& 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::DidStartProvisionalLoadForFrame( | 433 void TabSpecificContentSettings::DidStartProvisionalLoadForFrame( |
434 int64 frame_id, | 434 int64 frame_id, |
435 bool is_main_frame, | 435 bool is_main_frame, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 return new CookiesTreeModel(cookies_->Clone(), | 513 return new CookiesTreeModel(cookies_->Clone(), |
514 databases_->Clone(), | 514 databases_->Clone(), |
515 local_storages_->Clone(), | 515 local_storages_->Clone(), |
516 session_storages_->Clone(), | 516 session_storages_->Clone(), |
517 appcaches_->Clone(), | 517 appcaches_->Clone(), |
518 indexed_dbs_->Clone(), | 518 indexed_dbs_->Clone(), |
519 file_systems_->Clone(), | 519 file_systems_->Clone(), |
520 NULL, | 520 NULL, |
521 true); | 521 true); |
522 } | 522 } |
OLD | NEW |