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 21 matching lines...) Expand all Loading... |
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 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigator); | 43 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigator); |
43 public: | 44 public: |
44 static PassRefPtrWillBeRawPtr<WorkerNavigator> create(const String& userAgen
t) | 45 static PassRefPtrWillBeRawPtr<WorkerNavigator> create(const String& userAgen
t) |
45 { | 46 { |
46 return adoptRefWillBeNoop(new WorkerNavigator(userAgent)); | 47 return adoptRefWillBeNoop(new WorkerNavigator(userAgent)); |
47 } | 48 } |
48 virtual ~WorkerNavigator(); | 49 virtual ~WorkerNavigator(); |
49 | 50 |
50 virtual String userAgent() const OVERRIDE; | 51 virtual String userAgent() const OVERRIDE; |
51 | 52 |
52 void trace(Visitor*); | 53 void trace(Visitor*); |
53 | 54 |
54 private: | 55 private: |
55 explicit WorkerNavigator(const String&); | 56 explicit WorkerNavigator(const String&); |
56 | 57 |
57 String m_userAgent; | 58 String m_userAgent; |
58 }; | 59 }; |
59 | 60 |
60 } // namespace blink | 61 } // namespace blink |
61 | 62 |
62 #endif // WorkerNavigator_h | 63 #endif // WorkerNavigator_h |
OLD | NEW |