diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-04 00:46:20 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-04 00:46:20 +0000 |
commit | cdcb1dee07b6c8e7fe968b2a5f4199c9c8fb2323 (patch) | |
tree | 4a9218cc8e53e78e565140e5e88d85c29280117e /chrome/browser/download/download_request_limiter.h | |
parent | 46a7e02c5bba1b9c68f86befaf586d0b17eb0b04 (diff) | |
download | chromium_src-cdcb1dee07b6c8e7fe968b2a5f4199c9c8fb2323.zip chromium_src-cdcb1dee07b6c8e7fe968b2a5f4199c9c8fb2323.tar.gz chromium_src-cdcb1dee07b6c8e7fe968b2a5f4199c9c8fb2323.tar.bz2 |
Convert WebContents to return a content::NavigationController instead of the implementation. Update all the headers in chrome to use the interface only. In a subsequent cl, I'll rename the implementation to NavigationControllerImpl and also get rid of content::NavigationController everywhere.
BUG=98716
TBR=joi
Review URL: http://codereview.chromium.org/8983010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116244 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_request_limiter.h')
-rw-r--r-- | chrome/browser/download/download_request_limiter.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/download/download_request_limiter.h b/chrome/browser/download/download_request_limiter.h index 0889924..5cf4b50 100644 --- a/chrome/browser/download/download_request_limiter.h +++ b/chrome/browser/download/download_request_limiter.h @@ -15,11 +15,11 @@ #include "content/public/browser/notification_registrar.h" class DownloadRequestInfoBarDelegate; -class NavigationController; class TabContents; class TabContentsWrapper; namespace content { +class NavigationController; class WebContents; } @@ -82,8 +82,8 @@ class DownloadRequestLimiter // is used. |originating_controller| is typically null, but differs from // |controller| in the case of a constrained popup requesting the download. TabDownloadState(DownloadRequestLimiter* host, - NavigationController* controller, - NavigationController* originating_controller); + content::NavigationController* controller, + content::NavigationController* originating_controller); virtual ~TabDownloadState(); // Status of the download. @@ -116,7 +116,7 @@ class DownloadRequestLimiter bool is_showing_prompt() const { return (infobar_ != NULL); } // NavigationController we're tracking. - NavigationController* controller() const { return controller_; } + content::NavigationController* controller() const { return controller_; } // Invoked from DownloadRequestDialogDelegate. Notifies the delegates and // changes the status appropriately. Virtual for testing. @@ -145,7 +145,7 @@ class DownloadRequestLimiter DownloadRequestLimiter* host_; - NavigationController* controller_; + content::NavigationController* controller_; // Host of the first page the download started on. This may be empty. std::string initial_page_host_; @@ -215,8 +215,8 @@ class DownloadRequestLimiter // The returned TabDownloadState is owned by the DownloadRequestLimiter and // deleted when no longer needed (the Remove method is invoked). TabDownloadState* GetDownloadState( - NavigationController* controller, - NavigationController* originating_controller, + content::NavigationController* controller, + content::NavigationController* originating_controller, bool create); // CanDownloadOnIOThread invokes this on the UI thread. This determines the @@ -248,7 +248,7 @@ class DownloadRequestLimiter // if the state is other than ALLOW_ONE_DOWNLOAD. Similarly once the state // transitions from anything but ALLOW_ONE_DOWNLOAD back to ALLOW_ONE_DOWNLOAD // the TabDownloadState is removed and deleted (by way of Remove). - typedef std::map<NavigationController*, TabDownloadState*> StateMap; + typedef std::map<content::NavigationController*, TabDownloadState*> StateMap; StateMap state_map_; static TestingDelegate* delegate_; |