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

Unified Diff: chrome/browser/download/download_request_limiter.cc

Issue 8983012: Get rid of content::NavigationController in cc file and use "using" instead. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/debugger/devtools_window.cc ('k') | chrome/browser/errorpage_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_request_limiter.cc
===================================================================
--- chrome/browser/download/download_request_limiter.cc (revision 116288)
+++ chrome/browser/download/download_request_limiter.cc (working copy)
@@ -21,6 +21,7 @@
#include "content/public/browser/web_contents_delegate.h"
using content::BrowserThread;
+using content::NavigationController;
using content::NavigationEntry;
using content::WebContents;
@@ -28,15 +29,14 @@
DownloadRequestLimiter::TabDownloadState::TabDownloadState(
DownloadRequestLimiter* host,
- content::NavigationController* controller,
- content::NavigationController* originating_controller)
+ NavigationController* controller,
+ NavigationController* originating_controller)
: host_(host),
controller_(controller),
status_(DownloadRequestLimiter::ALLOW_ONE_DOWNLOAD),
download_count_(0),
infobar_(NULL) {
- content::Source<content::NavigationController> notification_source(
- controller);
+ content::Source<NavigationController> notification_source(controller);
registrar_.Add(this, content::NOTIFICATION_NAV_ENTRY_PENDING,
notification_source);
registrar_.Add(this, content::NOTIFICATION_TAB_CLOSED, notification_source);
@@ -103,8 +103,7 @@
const content::NotificationDetails& details) {
if ((type != content::NOTIFICATION_NAV_ENTRY_PENDING &&
type != content::NOTIFICATION_TAB_CLOSED) ||
- content::Source<content::NavigationController>(source).ptr() !=
- controller_) {
+ content::Source<NavigationController>(source).ptr() != controller_) {
NOTREACHED();
return;
}
@@ -231,8 +230,8 @@
}
DownloadRequestLimiter::TabDownloadState* DownloadRequestLimiter::
- GetDownloadState(content::NavigationController* controller,
- content::NavigationController* originating_controller,
+ GetDownloadState(NavigationController* controller,
+ NavigationController* originating_controller,
bool create) {
DCHECK(controller);
StateMap::iterator i = state_map_.find(controller);
« no previous file with comments | « chrome/browser/debugger/devtools_window.cc ('k') | chrome/browser/errorpage_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698