OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef WorkerNavigator_h | 26 #ifndef WorkerNavigator_h |
27 #define WorkerNavigator_h | 27 #define WorkerNavigator_h |
28 | 28 |
29 #include "bindings/core/v8/ScriptWrappable.h" | 29 #include "bindings/core/v8/ScriptWrappable.h" |
30 #include "core/CoreExport.h" | 30 #include "core/CoreExport.h" |
31 #include "core/frame/NavigatorCPU.h" | 31 #include "core/frame/NavigatorConcurrentHardware.h" |
32 #include "core/frame/NavigatorID.h" | 32 #include "core/frame/NavigatorID.h" |
33 #include "core/frame/NavigatorOnLine.h" | 33 #include "core/frame/NavigatorOnLine.h" |
34 #include "platform/Supplementable.h" | 34 #include "platform/Supplementable.h" |
35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
36 #include "platform/wtf/text/WTFString.h" | 36 #include "platform/wtf/text/WTFString.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class CORE_EXPORT WorkerNavigator final | 40 class CORE_EXPORT WorkerNavigator final |
41 : public GarbageCollectedFinalized<WorkerNavigator>, | 41 : public GarbageCollectedFinalized<WorkerNavigator>, |
42 public ScriptWrappable, | 42 public ScriptWrappable, |
43 public NavigatorCPU, | 43 public NavigatorConcurrentHardware, |
44 public NavigatorID, | 44 public NavigatorID, |
45 public NavigatorOnLine, | 45 public NavigatorOnLine, |
46 public Supplementable<WorkerNavigator> { | 46 public Supplementable<WorkerNavigator> { |
47 DEFINE_WRAPPERTYPEINFO(); | 47 DEFINE_WRAPPERTYPEINFO(); |
48 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigator); | 48 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigator); |
49 | 49 |
50 public: | 50 public: |
51 static WorkerNavigator* Create(const String& user_agent) { | 51 static WorkerNavigator* Create(const String& user_agent) { |
52 return new WorkerNavigator(user_agent); | 52 return new WorkerNavigator(user_agent); |
53 } | 53 } |
54 virtual ~WorkerNavigator(); | 54 virtual ~WorkerNavigator(); |
55 | 55 |
56 String userAgent() const override; | 56 String userAgent() const override; |
57 | 57 |
58 DECLARE_TRACE(); | 58 DECLARE_TRACE(); |
59 | 59 |
60 private: | 60 private: |
61 explicit WorkerNavigator(const String&); | 61 explicit WorkerNavigator(const String&); |
62 | 62 |
63 String user_agent_; | 63 String user_agent_; |
64 }; | 64 }; |
65 | 65 |
66 } // namespace blink | 66 } // namespace blink |
67 | 67 |
68 #endif // WorkerNavigator_h | 68 #endif // WorkerNavigator_h |
OLD | NEW |