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

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

Issue 1851743002: Simplify Supplementables post Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component build Created 4 years, 8 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 18 matching lines...) Expand all
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 "platform/Supplementable.h" 33 #include "platform/Supplementable.h"
34 #include "platform/heap/Handle.h" 34 #include "platform/heap/Handle.h"
35 #include "wtf/text/WTFString.h" 35 #include "wtf/text/WTFString.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class WorkerNavigator final : public GarbageCollectedFinalized<WorkerNavigator>, public ScriptWrappable, public NavigatorCPU, public NavigatorID, public Navigat orOnLine, public HeapSupplementable<WorkerNavigator> { 39 class WorkerNavigator final : public GarbageCollectedFinalized<WorkerNavigator>, public ScriptWrappable, public NavigatorCPU, public NavigatorID, public Navigat orOnLine, public Supplementable<WorkerNavigator> {
40 DEFINE_WRAPPERTYPEINFO(); 40 DEFINE_WRAPPERTYPEINFO();
41 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigator); 41 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigator);
42 public: 42 public:
43 static WorkerNavigator* create(const String& userAgent) 43 static WorkerNavigator* create(const String& userAgent)
44 { 44 {
45 return new WorkerNavigator(userAgent); 45 return new WorkerNavigator(userAgent);
46 } 46 }
47 virtual ~WorkerNavigator(); 47 virtual ~WorkerNavigator();
48 48
49 String userAgent() const override; 49 String userAgent() const override;
50 50
51 DECLARE_TRACE(); 51 DECLARE_TRACE();
52 52
53 private: 53 private:
54 explicit WorkerNavigator(const String&); 54 explicit WorkerNavigator(const String&);
55 55
56 String m_userAgent; 56 String m_userAgent;
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif // WorkerNavigator_h 61 #endif // WorkerNavigator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698