#ifndef Navigator_h
#define Navigator_h
#include "DOMWindowProperty.h"
#include "NavigatorBase.h"
#include "ScriptWrappable.h"
#include "Supplementable.h"
#include <wtf/Forward.h>
#include <wtf/HashMap.h>
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
#include <wtf/RefPtr.h>
namespace WebCore {
class DOMMimeTypeArray;
class DOMPluginArray;
class Frame;
class PluginData;
typedef int ExceptionCode;
class Navigator : public NavigatorBase, public ScriptWrappable, public RefCounted<Navigator>, public DOMWindowProperty, public Supplementable<Navigator> {
public:
static Ref<Navigator> create(Frame* frame) { return adoptRef(*new Navigator(frame)); }
virtual ~Navigator();
String appVersion() const;
String language() const;
DOMPluginArray* plugins() const;
DOMMimeTypeArray* mimeTypes() const;
bool cookieEnabled() const;
bool javaEnabled() const;
#if defined(ENABLE_NAVIGATOR_HWCONCURRENCY)
int hardwareConcurrency() const;
#endif
virtual String userAgent() const;
#if PLATFORM(IOS)
bool standalone() const;
#endif
void getStorageUpdates();
private:
explicit Navigator(Frame*);
mutable RefPtr<DOMPluginArray> m_plugins;
mutable RefPtr<DOMMimeTypeArray> m_mimeTypes;
};
}
#endif