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

Side by Side Diff: chrome/browser/ui/blocked_content/blocked_content_tab_helper.cc

Issue 8983010: Convert WebContents to return a content::NavigationController instead of the implementation. Upda... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 11 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) 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/ui/blocked_content/blocked_content_tab_helper.h" 5 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "chrome/browser/content_settings/host_content_settings_map.h" 8 #include "chrome/browser/content_settings/host_content_settings_map.h"
9 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 9 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/blocked_content/blocked_content_container.h" 11 #include "chrome/browser/ui/blocked_content/blocked_content_container.h"
12 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 12 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
13 #include "content/browser/renderer_host/render_view_host.h" 13 #include "content/browser/renderer_host/render_view_host.h"
14 #include "content/browser/tab_contents/navigation_controller.h" 14 #include "content/public/browser/navigation_controller.h"
15 #include "content/public/browser/navigation_details.h" 15 #include "content/public/browser/navigation_details.h"
16 #include "content/public/browser/navigation_entry.h" 16 #include "content/public/browser/navigation_entry.h"
17 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
18 18
19 using content::NavigationEntry; 19 using content::NavigationEntry;
20 20
21 BlockedContentTabHelper::BlockedContentTabHelper( 21 BlockedContentTabHelper::BlockedContentTabHelper(
22 TabContentsWrapper* tab_contents) 22 TabContentsWrapper* tab_contents)
23 : content::WebContentsObserver(tab_contents->web_contents()), 23 : content::WebContentsObserver(tab_contents->web_contents()),
24 blocked_contents_(new BlockedContentContainer(tab_contents)), 24 blocked_contents_(new BlockedContentContainer(tab_contents)),
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 120 }
121 121
122 size_t BlockedContentTabHelper::GetBlockedContentsCount() const { 122 size_t BlockedContentTabHelper::GetBlockedContentsCount() const {
123 return blocked_contents_->GetBlockedContentsCount(); 123 return blocked_contents_->GetBlockedContentsCount();
124 } 124 }
125 125
126 void BlockedContentTabHelper::GetBlockedContents( 126 void BlockedContentTabHelper::GetBlockedContents(
127 std::vector<TabContentsWrapper*>* blocked_contents) const { 127 std::vector<TabContentsWrapper*>* blocked_contents) const {
128 blocked_contents_->GetBlockedContents(blocked_contents); 128 blocked_contents_->GetBlockedContents(blocked_contents);
129 } 129 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698