2 * npstream-downloader.h: NPStream Browser Request
5 * Moonlight List (moonlight-list@lists.ximian.com)
7 * Copyright 2008 Novell, Inc. (http://www.novell.com)
9 * See the LICENSE file included with the distribution for details.
13 #ifndef __NPSTREAM_DOWNLOADER_H
14 #define __NPSTREAM_DOWNLOADER_H
16 #include "moonlight.h"
17 #include "browser-bridge.h"
18 #include "plugin-downloader.h"
20 class NPStreamRequest
: public DownloaderRequest
{
25 PluginInstance
*instance
;
30 NPStreamRequest (const char *verb
, const char *uri
, PluginInstance
*instance
) : DownloaderRequest (verb
, uri
)
36 this->instance
= instance
;
39 virtual ~NPStreamRequest ()
45 bool GetResponse (DownloaderResponseStartedHandler started
, DownloaderResponseDataAvailableHandler available
, DownloaderResponseFinishedHandler finished
, gpointer context
);
46 const bool IsAborted () { return this->aborted
; }
47 void SetHttpHeader (const char *name
, const char *value
);
48 void SetBody (void *body
, int size
);
50 void SetNPP (NPP npp
) { this->npp
= npp
; }
51 void SetStream (NPStream
*stream
) { this->stream
= stream
; }
52 void StreamDestroyed () { stream
= NULL
; }