#pragma once
#include "DOMWindowProperty.h"
#include "NavigatorBase.h"
#include "ScriptWrappable.h"
#include "Supplementable.h"
namespace WebCore {
class DOMMimeTypeArray;
class DOMPluginArray;
class Navigator final : public NavigatorBase, public ScriptWrappable, public DOMWindowProperty, public Supplementable<Navigator> {
public:
static Ref<Navigator> create(ScriptExecutionContext& context, Frame& frame) { return adoptRef(*new Navigator(context, frame)); }
virtual ~Navigator();
String appVersion() const;
DOMPluginArray& plugins();
DOMMimeTypeArray& mimeTypes();
bool cookieEnabled() const;
bool javaEnabled() const;
const String& userAgent() const final;
bool onLine() const final;
#if PLATFORM(IOS)
bool standalone() const;
#endif
void getStorageUpdates();
private:
explicit Navigator(ScriptExecutionContext&, Frame&);
mutable RefPtr<DOMPluginArray> m_plugins;
mutable RefPtr<DOMMimeTypeArray> m_mimeTypes;
mutable String m_userAgent;
};
}