#ifndef Navigator_h
#define Navigator_h
#include "bindings/v8/ScriptWrappable.h"
#include "core/frame/DOMWindowProperty.h"
#include "core/frame/NavigatorBase.h"
#include "heap/Handle.h"
#include "platform/Supplementable.h"
#include "wtf/Forward.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
namespace WebCore {
class DOMMimeTypeArray;
class DOMPluginArray;
class LocalFrame;
class PluginData;
typedef int ExceptionCode;
class Navigator FINAL : public RefCountedWillBeGarbageCollectedFinalized<Navigator>, public NavigatorBase, public ScriptWrappable, public DOMWindowProperty, public WillBeHeapSupplementable<Navigator> {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Navigator);
public:
static PassRefPtrWillBeRawPtr<Navigator> create(LocalFrame* frame)
{
return adoptRefWillBeNoop(new Navigator(frame));
}
virtual ~Navigator();
AtomicString language() const;
DOMPluginArray* plugins() const;
DOMMimeTypeArray* mimeTypes() const;
bool cookieEnabled() const;
bool javaEnabled() const;
String productSub() const;
String vendor() const;
String vendorSub() const;
virtual String userAgent() const OVERRIDE;
void getStorageUpdates();
virtual void trace(Visitor*);
private:
explicit Navigator(LocalFrame*);
mutable RefPtrWillBeMember<DOMPluginArray> m_plugins;
mutable RefPtrWillBeMember<DOMMimeTypeArray> m_mimeTypes;
};
}
#endif