OLD | NEW |
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 25 matching lines...) Expand all Loading... |
36 #include "core/workers/WorkerThread.h" | 36 #include "core/workers/WorkerThread.h" |
37 #include "platform/network/ContentSecurityPolicyParsers.h" | 37 #include "platform/network/ContentSecurityPolicyParsers.h" |
38 #include "platform/weborigin/KURL.h" | 38 #include "platform/weborigin/KURL.h" |
39 #include "wtf/Forward.h" | 39 #include "wtf/Forward.h" |
40 #include "wtf/Noncopyable.h" | 40 #include "wtf/Noncopyable.h" |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 class WorkerClients; | 44 class WorkerClients; |
45 | 45 |
46 class WorkerThreadStartupData FINAL : public NoBaseWillBeGarbageCollectedFinaliz
ed<WorkerThreadStartupData> { | 46 class WorkerThreadStartupData final : public NoBaseWillBeGarbageCollectedFinaliz
ed<WorkerThreadStartupData> { |
47 WTF_MAKE_NONCOPYABLE(WorkerThreadStartupData); | 47 WTF_MAKE_NONCOPYABLE(WorkerThreadStartupData); |
48 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 48 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
49 public: | 49 public: |
50 static PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> create(const KURL& sc
riptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMod
e startMode, const String& contentSecurityPolicy, ContentSecurityPolicyHeaderTyp
e contentSecurityPolicyType, const SecurityOrigin* starterOrigin, PassOwnPtrWill
BeRawPtr<WorkerClients> workerClients) | 50 static PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> create(const KURL& sc
riptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMod
e startMode, const String& contentSecurityPolicy, ContentSecurityPolicyHeaderTyp
e contentSecurityPolicyType, const SecurityOrigin* starterOrigin, PassOwnPtrWill
BeRawPtr<WorkerClients> workerClients) |
51 { | 51 { |
52 return adoptPtrWillBeNoop(new WorkerThreadStartupData(scriptURL, userAge
nt, sourceCode, startMode, contentSecurityPolicy, contentSecurityPolicyType, sta
rterOrigin, workerClients)); | 52 return adoptPtrWillBeNoop(new WorkerThreadStartupData(scriptURL, userAge
nt, sourceCode, startMode, contentSecurityPolicy, contentSecurityPolicyType, sta
rterOrigin, workerClients)); |
53 } | 53 } |
54 | 54 |
55 ~WorkerThreadStartupData(); | 55 ~WorkerThreadStartupData(); |
56 | 56 |
(...skipping 22 matching lines...) Expand all Loading... |
79 | 79 |
80 void trace(Visitor*); | 80 void trace(Visitor*); |
81 | 81 |
82 private: | 82 private: |
83 WorkerThreadStartupData(const KURL& scriptURL, const String& userAgent, cons
t String& sourceCode, WorkerThreadStartMode, const String& contentSecurityPolicy
, ContentSecurityPolicyHeaderType contentSecurityPolicyType, const SecurityOrigi
n*, PassOwnPtrWillBeRawPtr<WorkerClients>); | 83 WorkerThreadStartupData(const KURL& scriptURL, const String& userAgent, cons
t String& sourceCode, WorkerThreadStartMode, const String& contentSecurityPolicy
, ContentSecurityPolicyHeaderType contentSecurityPolicyType, const SecurityOrigi
n*, PassOwnPtrWillBeRawPtr<WorkerClients>); |
84 }; | 84 }; |
85 | 85 |
86 } // namespace blink | 86 } // namespace blink |
87 | 87 |
88 #endif // WorkerThreadStartupData_h | 88 #endif // WorkerThreadStartupData_h |
OLD | NEW |