Minor cleanup, no bug. a=bsmedberg

This commit is contained in:
Josh Aas 2010-01-05 13:30:00 -05:00
Родитель 362710b53b
Коммит 4ef1870cfe
2 изменённых файлов: 2 добавлений и 11 удалений

Просмотреть файл

@ -37,7 +37,7 @@
* ***** END LICENSE BLOCK ***** */
/*
* A base class implementING nsIObjectLoadingContent for use by
* A base class implementing nsIObjectLoadingContent for use by
* various content nodes that want to provide plugin/document/image
* loading functionality (eg <embed>, <object>, <applet>, etc).
*/

Просмотреть файл

@ -464,7 +464,6 @@ public:
nsIPluginInstance *GetPluginInstance() { return mInstance; }
private:
nsresult SetUpCache(nsIURI* aURL); // todo: see about removing this...
nsresult SetUpStreamListener(nsIRequest* request, nsIURI* aURL);
nsresult SetupPluginCacheFile(nsIChannel* channel);
@ -1509,14 +1508,6 @@ NS_IMETHODIMP nsPluginStreamListenerPeer::OnStopRequest(nsIRequest *request,
return NS_OK;
}
// private methods for nsPluginStreamListenerPeer
nsresult nsPluginStreamListenerPeer::SetUpCache(nsIURI* aURL)
{
nsPluginCacheListener* cacheListener = new nsPluginCacheListener(this);
// XXX: Null LoadGroup?
return NS_OpenURI(cacheListener, nsnull, aURL, nsnull);
}
nsresult nsPluginStreamListenerPeer::SetUpStreamListener(nsIRequest *request,
nsIURI* aURL)
{
@ -5235,7 +5226,7 @@ nsresult nsPluginStreamListenerPeer::ServeStreamAsFile(nsIRequest *request,
mPStreamListener->OnStartBinding(mPluginStreamInfo);
mPluginStreamInfo->SetStreamOffset(0);
// force the plugin use stream as file
// force the plugin to use stream as file
mStreamType = NP_ASFILE;
// then check it out if browser cache is not available