From eb872971f7ca35d09efe6f0cd79cca6313b67d14 Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" Date: Sat, 29 Dec 2007 03:18:23 +0000 Subject: [PATCH] Bug 393922 - "Remove nsIDownloadProgressListener::onStatusChange and nsIDownloadProgressListener::onLocationChange" [p=graememcc_firefox@graeme-online.co.uk (graememcc) r=sdwilsh a1.9=beltzner] --- .../public/nsIDownloadProgressListener.idl | 13 +------------ .../downloads/test/unit/head_download_manager.js | 2 -- .../downloads/test/unit/test_bug_395092.js | 2 -- .../downloads/test/unit/test_bug_401430.js | 2 -- .../downloads/test/unit/test_download_manager.js | 2 -- .../components/downloads/test/unit/test_resume.js | 2 -- .../downloads/content/DownloadProgressListener.js | 8 -------- 7 files changed, 1 insertion(+), 30 deletions(-) diff --git a/toolkit/components/downloads/public/nsIDownloadProgressListener.idl b/toolkit/components/downloads/public/nsIDownloadProgressListener.idl index 3ff6c0bd430..8c00583e234 100644 --- a/toolkit/components/downloads/public/nsIDownloadProgressListener.idl +++ b/toolkit/components/downloads/public/nsIDownloadProgressListener.idl @@ -52,7 +52,7 @@ interface nsIURI; interface nsIDownload; interface nsIDOMDocument; -[scriptable, uuid(8b193f0a-cf0c-4b5f-b4e3-a388df6f07b2)] +[scriptable, uuid(7acb07ea-cac2-4c15-a3ad-23aaa789ed51)] interface nsIDownloadProgressListener : nsISupports { /** @@ -85,17 +85,6 @@ interface nsIDownloadProgressListener : nsISupports { in long long aMaxTotalProgress, in nsIDownload aDownload); - void onStatusChange(in nsIWebProgress aWebProgress, - in nsIRequest aRequest, - in nsresult aStatus, - in wstring aMessage, - in nsIDownload aDownload); - - void onLocationChange(in nsIWebProgress aWebProgress, - in nsIRequest aRequest, - in nsIURI aLocation, - in nsIDownload aDownload); - void onSecurityChange(in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aState, diff --git a/toolkit/components/downloads/test/unit/head_download_manager.js b/toolkit/components/downloads/test/unit/head_download_manager.js index 9a99821302b..75912699b28 100644 --- a/toolkit/components/downloads/test/unit/head_download_manager.js +++ b/toolkit/components/downloads/test/unit/head_download_manager.js @@ -174,8 +174,6 @@ function getDownloadListener() }, onStateChange: function(a, b, c, d, e) { }, onProgressChange: function(a, b, c, d, e, f, g) { }, - onStatusChange: function(a, b, c, d, e) { }, - onLocationChange: function(a, b, c, d) { }, onSecurityChange: function(a, b, c, d) { } }; } diff --git a/toolkit/components/downloads/test/unit/test_bug_395092.js b/toolkit/components/downloads/test/unit/test_bug_395092.js index 52bb4ccff99..8a0ec143dcc 100644 --- a/toolkit/components/downloads/test/unit/test_bug_395092.js +++ b/toolkit/components/downloads/test/unit/test_bug_395092.js @@ -85,8 +85,6 @@ function run_test() }, onStateChange: function(a, b, c, d, e) { }, onProgressChange: function(a, b, c, d, e, f, g) { }, - onStatusChange: function(a, b, c, d, e) { }, - onLocationChange: function(a, b, c, d) { }, onSecurityChange: function(a, b, c, d) { } }; dm.addListener(listener); diff --git a/toolkit/components/downloads/test/unit/test_bug_401430.js b/toolkit/components/downloads/test/unit/test_bug_401430.js index f7f67cc6565..2450cd89a03 100644 --- a/toolkit/components/downloads/test/unit/test_bug_401430.js +++ b/toolkit/components/downloads/test/unit/test_bug_401430.js @@ -105,8 +105,6 @@ function run_test() }, onStateChange: function(a, b, c, d, e) { }, onProgressChange: function(a, b, c, d, e, f, g) { }, - onStatusChange: function(a, b, c, d, e) { }, - onLocationChange: function(a, b, c, d) { }, onSecurityChange: function(a, b, c, d) { } }; diff --git a/toolkit/components/downloads/test/unit/test_download_manager.js b/toolkit/components/downloads/test/unit/test_download_manager.js index 816f470b065..f2b1afd5935 100644 --- a/toolkit/components/downloads/test/unit/test_download_manager.js +++ b/toolkit/components/downloads/test/unit/test_download_manager.js @@ -142,8 +142,6 @@ function run_test() }, onStateChange: function(a, b, c, d, e) { }, onProgressChange: function(a, b, c, d, e, f, g) { }, - onStatusChange: function(a, b, c, d, e) { }, - onLocationChange: function(a, b, c, d) { }, onSecurityChange: function(a, b, c, d) { } }; dm.addListener(listener); diff --git a/toolkit/components/downloads/test/unit/test_resume.js b/toolkit/components/downloads/test/unit/test_resume.js index 45f620fcbb9..09a8ca0470e 100644 --- a/toolkit/components/downloads/test/unit/test_resume.js +++ b/toolkit/components/downloads/test/unit/test_resume.js @@ -139,8 +139,6 @@ function run_test() } }, onProgressChange: function(a, b, c, d, e, f, g) { }, - onStatusChange: function(a, b, c, d, e) { }, - onLocationChange: function(a, b, c, d) { }, onSecurityChange: function(a, b, c, d) { } }); diff --git a/toolkit/mozapps/downloads/content/DownloadProgressListener.js b/toolkit/mozapps/downloads/content/DownloadProgressListener.js index efca9961f13..5bc804790b7 100644 --- a/toolkit/mozapps/downloads/content/DownloadProgressListener.js +++ b/toolkit/mozapps/downloads/content/DownloadProgressListener.js @@ -132,14 +132,6 @@ DownloadProgressListener.prototype = { { }, - onLocationChange: function(aWebProgress, aRequest, aLocation, aDownload) - { - }, - - onStatusChange: function(aWebProgress, aRequest, aStatus, aMessage, aDownload) - { - }, - onSecurityChange: function(aWebProgress, aRequest, aState, aDownload) { }