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 20 matching lines...) Expand all Loading... |
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 "platform/Supplementable.h" | 33 #include "platform/Supplementable.h" |
34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
35 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class WorkerNavigator FINAL : public RefCountedWillBeGarbageCollectedFinalized<W
orkerNavigator>, public ScriptWrappable, public NavigatorCPU, public NavigatorID
, public NavigatorOnLine, public WillBeHeapSupplementable<WorkerNavigator> { | 41 class WorkerNavigator final : public RefCountedWillBeGarbageCollectedFinalized<W
orkerNavigator>, public ScriptWrappable, public NavigatorCPU, public NavigatorID
, public NavigatorOnLine, public WillBeHeapSupplementable<WorkerNavigator> { |
42 DEFINE_WRAPPERTYPEINFO(); | 42 DEFINE_WRAPPERTYPEINFO(); |
43 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigator); | 43 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigator); |
44 public: | 44 public: |
45 static PassRefPtrWillBeRawPtr<WorkerNavigator> create(const String& userAgen
t) | 45 static PassRefPtrWillBeRawPtr<WorkerNavigator> create(const String& userAgen
t) |
46 { | 46 { |
47 return adoptRefWillBeNoop(new WorkerNavigator(userAgent)); | 47 return adoptRefWillBeNoop(new WorkerNavigator(userAgent)); |
48 } | 48 } |
49 virtual ~WorkerNavigator(); | 49 virtual ~WorkerNavigator(); |
50 | 50 |
51 virtual String userAgent() const OVERRIDE; | 51 virtual String userAgent() const override; |
52 | 52 |
53 void trace(Visitor*); | 53 void trace(Visitor*); |
54 | 54 |
55 private: | 55 private: |
56 explicit WorkerNavigator(const String&); | 56 explicit WorkerNavigator(const String&); |
57 | 57 |
58 String m_userAgent; | 58 String m_userAgent; |
59 }; | 59 }; |
60 | 60 |
61 } // namespace blink | 61 } // namespace blink |
62 | 62 |
63 #endif // WorkerNavigator_h | 63 #endif // WorkerNavigator_h |
OLD | NEW |