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

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

Issue 8603015: Get rid of a bunch of view_messages.h includes from chrome by making the TabContentsObserver inte... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux and try to fix mac again Created 9 years, 1 month 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) 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/content_settings/tab_specific_content_settings.h ('k') | chrome/browser/extensions/extension_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698