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 12 matching lines...) Expand all Loading... |
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/frame/NavigatorCPU.h" | 30 #include "core/frame/NavigatorCPU.h" |
31 #include "core/frame/NavigatorID.h" | 31 #include "core/frame/NavigatorID.h" |
32 #include "core/frame/NavigatorOnLine.h" | 32 #include "core/frame/NavigatorOnLine.h" |
| 33 #include "core/workers/WorkerNavigator.h" |
33 #include "platform/Supplementable.h" | 34 #include "platform/Supplementable.h" |
34 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
35 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
36 | 37 |
37 namespace blink { | 38 namespace blink { |
38 | 39 |
39 class WorkerNavigator final : public GarbageCollectedFinalized<WorkerNavigator>,
public ScriptWrappable, public NavigatorCPU, public NavigatorID, public Navigat
orOnLine, public Supplementable<WorkerNavigator> { | 40 class CORE_EXPORT WorkerNavigator final : public GarbageCollectedFinalized<Worke
rNavigator>, public ScriptWrappable, public NavigatorCPU, public NavigatorID, pu
blic NavigatorOnLine, public Supplementable<WorkerNavigator> { |
40 DEFINE_WRAPPERTYPEINFO(); | 41 DEFINE_WRAPPERTYPEINFO(); |
41 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigator); | 42 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigator); |
42 public: | 43 public: |
43 static WorkerNavigator* create(const String& userAgent) | 44 static WorkerNavigator* create(const String& userAgent) |
44 { | 45 { |
45 return new WorkerNavigator(userAgent); | 46 return new WorkerNavigator(userAgent); |
46 } | 47 } |
47 virtual ~WorkerNavigator(); | 48 virtual ~WorkerNavigator(); |
48 | 49 |
49 String userAgent() const override; | 50 String userAgent() const override; |
50 | 51 |
51 DECLARE_TRACE(); | 52 DECLARE_TRACE(); |
52 | 53 |
53 private: | 54 private: |
54 explicit WorkerNavigator(const String&); | 55 explicit WorkerNavigator(const String&); |
55 | 56 |
56 String m_userAgent; | 57 String m_userAgent; |
57 }; | 58 }; |
58 | 59 |
59 } // namespace blink | 60 } // namespace blink |
60 | 61 |
61 #endif // WorkerNavigator_h | 62 #endif // WorkerNavigator_h |
OLD | NEW |