Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/WebKit/Source/core/workers/WorkerNavigator.h

Issue 2150443002: Supplement should have a Member to the corresponding Supplementable object (Part 1) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698