This implements an html5 rendering engine. Inspired by the Broadway GDK backend for Gnome. Work in progress. For now it just connects and dumps debug output.
40 lines
711 B
C++
40 lines
711 B
C++
/*
|
|
* Copyright 2009, Haiku, Inc.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Michael Lotz <[email protected]>
|
|
* François Revol <[email protected]>
|
|
*/
|
|
#ifndef WEB_WORKER_H
|
|
#define WEB_WORKER_H
|
|
|
|
#include <OS.h>
|
|
#include <SupportDefs.h>
|
|
|
|
class BNetEndpoint;
|
|
class StreamingRingBuffer;
|
|
class WebHandler;
|
|
|
|
class WebWorker {
|
|
public:
|
|
WebWorker(BNetEndpoint *endpoint,
|
|
WebHandler *handler);
|
|
~WebWorker();
|
|
|
|
BNetEndpoint * Endpoint() { return fEndpoint; }
|
|
|
|
private:
|
|
static int32 _WorkEntry(void *data);
|
|
status_t _Work();
|
|
|
|
WebHandler * fHandler;
|
|
|
|
thread_id fWorkThread;
|
|
bool fStopThread;
|
|
|
|
BNetEndpoint * fEndpoint;
|
|
};
|
|
|
|
#endif // WEB_WORKER_H
|