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

Side by Side Diff: Source/core/workers/WorkerThreadStartupData.h

Issue 177073004: Oilpan: move core/workers to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WorkerThreadStartupData_h 31 #ifndef WorkerThreadStartupData_h
32 #define WorkerThreadStartupData_h 32 #define WorkerThreadStartupData_h
33 33
34 #include "core/frame/ContentSecurityPolicy.h" 34 #include "core/frame/ContentSecurityPolicy.h"
35 #include "core/workers/WorkerClients.h" 35 #include "core/workers/WorkerClients.h"
36 #include "core/workers/WorkerThread.h" 36 #include "core/workers/WorkerThread.h"
37 #include "heap/Handle.h"
37 #include "platform/weborigin/KURL.h" 38 #include "platform/weborigin/KURL.h"
38 #include "wtf/Forward.h" 39 #include "wtf/Forward.h"
39 #include "wtf/Noncopyable.h" 40 #include "wtf/Noncopyable.h"
40 41
41 namespace WebCore { 42 namespace WebCore {
42 43
43 class WorkerClients; 44 class WorkerClients;
44 45
45 struct WorkerThreadStartupData { 46 class WorkerThreadStartupData : NoBaseWillBeGarbageCollected<WorkerThreadStartup Data> {
Mads Ager (chromium) 2014/02/24 13:27:53 This needs to be GarbageCollectedFinalized. String
46 WTF_MAKE_NONCOPYABLE(WorkerThreadStartupData); WTF_MAKE_FAST_ALLOCATED; 47 WTF_MAKE_NONCOPYABLE(WorkerThreadStartupData);
48 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
49 DECLARE_GC_INFO;
47 public: 50 public:
48 static PassOwnPtr<WorkerThreadStartupData> create(const KURL& scriptURL, con st String& userAgent, const String& sourceCode, WorkerThreadStartMode startMode, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentS ecurityPolicyType, PassOwnPtr<WorkerClients> workerClients) 51 static PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> create(const KURL& sc riptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMod e startMode, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderT ype contentSecurityPolicyType, PassOwnPtr<WorkerClients> workerClients)
49 { 52 {
50 return adoptPtr(new WorkerThreadStartupData(scriptURL, userAgent, source Code, startMode, contentSecurityPolicy, contentSecurityPolicyType, workerClients )); 53 return adoptPtrWillBeNoop(new WorkerThreadStartupData(scriptURL, userAge nt, sourceCode, startMode, contentSecurityPolicy, contentSecurityPolicyType, wor kerClients));
51 } 54 }
52 55
53 ~WorkerThreadStartupData(); 56 ~WorkerThreadStartupData();
54 57
58 void trace(Visitor*) { }
59
55 KURL m_scriptURL; 60 KURL m_scriptURL;
56 String m_userAgent; 61 String m_userAgent;
57 String m_sourceCode; 62 String m_sourceCode;
58 WorkerThreadStartMode m_startMode; 63 WorkerThreadStartMode m_startMode;
59 String m_contentSecurityPolicy; 64 String m_contentSecurityPolicy;
60 ContentSecurityPolicy::HeaderType m_contentSecurityPolicyType; 65 ContentSecurityPolicy::HeaderType m_contentSecurityPolicyType;
61 OwnPtr<WorkerClients> m_workerClients; 66 OwnPtr<WorkerClients> m_workerClients;
62 67
63 private: 68 private:
64 WorkerThreadStartupData(const KURL& scriptURL, const String& userAgent, cons t String& sourceCode, WorkerThreadStartMode, const String& contentSecurityPolicy , ContentSecurityPolicy::HeaderType contentSecurityPolicyType, PassOwnPtr<Worker Clients>); 69 WorkerThreadStartupData(const KURL& scriptURL, const String& userAgent, cons t String& sourceCode, WorkerThreadStartMode, const String& contentSecurityPolicy , ContentSecurityPolicy::HeaderType contentSecurityPolicyType, PassOwnPtr<Worker Clients>);
65 }; 70 };
66 71
67 } // namespace WebCore 72 } // namespace WebCore
68 73
69 #endif // WorkerThreadStartupData_h 74 #endif // WorkerThreadStartupData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698