diff options
author | rdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-06 18:44:54 +0000 |
---|---|---|
committer | rdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-06 18:44:54 +0000 |
commit | ccecb88f9ccbb1cf70d0607794124df8a8ca926d (patch) | |
tree | bf5088a34b350c5f36242529b9586dd6d688a418 /content/public | |
parent | 844c279c39d9f139269910e7225778b72ffcc043 (diff) | |
download | chromium_src-ccecb88f9ccbb1cf70d0607794124df8a8ca926d.zip chromium_src-ccecb88f9ccbb1cf70d0607794124df8a8ca926d.tar.gz chromium_src-ccecb88f9ccbb1cf70d0607794124df8a8ca926d.tar.bz2 |
Merge 165972 - Avoid interpreting initial navigation as a download if the download
is really a Save Page As ... operation.
BUG=156538
R=benjhayden@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11276057
TBR=rdsmith@chromium.org
Review URL: https://codereview.chromium.org/11360105
git-svn-id: svn://svn.chromium.org/chrome/branches/1312/src@166235 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public')
-rw-r--r-- | content/public/browser/download_item.h | 1 | ||||
-rw-r--r-- | content/public/test/mock_download_item.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/content/public/browser/download_item.h b/content/public/browser/download_item.h index 364e4f3..2d732bb 100644 --- a/content/public/browser/download_item.h +++ b/content/public/browser/download_item.h @@ -199,6 +199,7 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData { virtual PageTransition GetTransitionType() const = 0; virtual const std::string& GetLastModifiedTime() const = 0; virtual const std::string& GetETag() const = 0; + virtual bool IsSavePackageDownload() const = 0; // Destination State accessors -------------------------------------------- diff --git a/content/public/test/mock_download_item.h b/content/public/test/mock_download_item.h index f59a6d6..137cef4 100644 --- a/content/public/test/mock_download_item.h +++ b/content/public/test/mock_download_item.h @@ -55,6 +55,7 @@ class MockDownloadItem : public DownloadItem { MOCK_CONST_METHOD0(GetTransitionType, PageTransition()); MOCK_CONST_METHOD0(GetLastModifiedTime, const std::string&()); MOCK_CONST_METHOD0(GetETag, const std::string&()); + MOCK_CONST_METHOD0(IsSavePackageDownload, bool()); MOCK_CONST_METHOD0(GetFullPath, const FilePath&()); MOCK_CONST_METHOD0(GetTargetFilePath, const FilePath&()); MOCK_CONST_METHOD0(GetForcedFilePath, const FilePath&()); |