hausmann@webkit.org | 9999bb8 | 2008-03-10 11:52:27 +0000 | [diff] [blame] | 1 | /* |
hausmann@webkit.org | f696447 | 2008-09-29 12:47:08 +0000 | [diff] [blame] | 2 | Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
hausmann@webkit.org | 9999bb8 | 2008-03-10 11:52:27 +0000 | [diff] [blame] | 3 | |
| 4 | This library is free software; you can redistribute it and/or |
| 5 | modify it under the terms of the GNU Library General Public |
| 6 | License as published by the Free Software Foundation; either |
| 7 | version 2 of the License, or (at your option) any later version. |
| 8 | |
| 9 | This library is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | Library General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU Library General Public License |
| 15 | along with this library; see the file COPYING.LIB. If not, write to |
| 16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 17 | Boston, MA 02110-1301, USA. |
| 18 | */ |
| 19 | |
darin@apple.com | 6bfe112 | 2016-10-21 18:32:04 +0000 | [diff] [blame] | 20 | #pragma once |
hausmann@webkit.org | 9999bb8 | 2008-03-10 11:52:27 +0000 | [diff] [blame] | 21 | |
abarth@webkit.org | 84fe60e | 2012-01-07 08:46:38 +0000 | [diff] [blame] | 22 | #include "DOMWindowProperty.h" |
ap@webkit.org | bf13f52 | 2008-12-09 17:58:10 +0000 | [diff] [blame] | 23 | #include "NavigatorBase.h" |
abarth@webkit.org | 4fcde89 | 2012-11-12 05:30:54 +0000 | [diff] [blame] | 24 | #include "ScriptWrappable.h" |
abarth@webkit.org | 692424b | 2012-02-27 06:33:45 +0000 | [diff] [blame] | 25 | #include "Supplementable.h" |
hausmann@webkit.org | 9999bb8 | 2008-03-10 11:52:27 +0000 | [diff] [blame] | 26 | |
| 27 | namespace WebCore { |
| 28 | |
cfleizach@apple.com | aed4929 | 2010-07-30 21:13:51 +0000 | [diff] [blame] | 29 | class DOMMimeTypeArray; |
| 30 | class DOMPluginArray; |
hausmann@webkit.org | 9999bb8 | 2008-03-10 11:52:27 +0000 | [diff] [blame] | 31 | |
darin@apple.com | 6bfe112 | 2016-10-21 18:32:04 +0000 | [diff] [blame] | 32 | class Navigator final : public NavigatorBase, public ScriptWrappable, public DOMWindowProperty, public Supplementable<Navigator> { |
cfleizach@apple.com | aed4929 | 2010-07-30 21:13:51 +0000 | [diff] [blame] | 33 | public: |
darin@apple.com | 6bfe112 | 2016-10-21 18:32:04 +0000 | [diff] [blame] | 34 | static Ref<Navigator> create(Frame& frame) { return adoptRef(*new Navigator(frame)); } |
cfleizach@apple.com | aed4929 | 2010-07-30 21:13:51 +0000 | [diff] [blame] | 35 | virtual ~Navigator(); |
hausmann@webkit.org | 9999bb8 | 2008-03-10 11:52:27 +0000 | [diff] [blame] | 36 | |
cfleizach@apple.com | aed4929 | 2010-07-30 21:13:51 +0000 | [diff] [blame] | 37 | String appVersion() const; |
darin@apple.com | 6bfe112 | 2016-10-21 18:32:04 +0000 | [diff] [blame] | 38 | DOMPluginArray& plugins(); |
| 39 | DOMMimeTypeArray& mimeTypes(); |
cfleizach@apple.com | aed4929 | 2010-07-30 21:13:51 +0000 | [diff] [blame] | 40 | bool cookieEnabled() const; |
| 41 | bool javaEnabled() const; |
darin@apple.com | 6bfe112 | 2016-10-21 18:32:04 +0000 | [diff] [blame] | 42 | String userAgent() const final; |
ap@webkit.org | bf13f52 | 2008-12-09 17:58:10 +0000 | [diff] [blame] | 43 | |
dbates@webkit.org | 4da1af8 | 2013-12-27 20:40:28 +0000 | [diff] [blame] | 44 | #if PLATFORM(IOS) |
| 45 | bool standalone() const; |
| 46 | #endif |
| 47 | |
cfleizach@apple.com | aed4929 | 2010-07-30 21:13:51 +0000 | [diff] [blame] | 48 | void getStorageUpdates(); |
jorlow@chromium.org | 8da6031 | 2009-08-17 23:28:38 +0000 | [diff] [blame] | 49 | |
cfleizach@apple.com | aed4929 | 2010-07-30 21:13:51 +0000 | [diff] [blame] | 50 | private: |
darin@apple.com | 6bfe112 | 2016-10-21 18:32:04 +0000 | [diff] [blame] | 51 | explicit Navigator(Frame&); |
abarth@webkit.org | 84fe60e | 2012-01-07 08:46:38 +0000 | [diff] [blame] | 52 | |
cfleizach@apple.com | aed4929 | 2010-07-30 21:13:51 +0000 | [diff] [blame] | 53 | mutable RefPtr<DOMPluginArray> m_plugins; |
| 54 | mutable RefPtr<DOMMimeTypeArray> m_mimeTypes; |
cfleizach@apple.com | aed4929 | 2010-07-30 21:13:51 +0000 | [diff] [blame] | 55 | }; |
hausmann@webkit.org | 9999bb8 | 2008-03-10 11:52:27 +0000 | [diff] [blame] | 56 | |
| 57 | } |