| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // See SecurityOrigin::transferPrivilegesFrom() for details on what | 77 // See SecurityOrigin::transferPrivilegesFrom() for details on what |
| 78 // privileges are transferred. | 78 // privileges are transferred. |
| 79 const SecurityOrigin* m_starterOrigin; | 79 const SecurityOrigin* m_starterOrigin; |
| 80 | 80 |
| 81 // This object is created and initialized on the thread creating | 81 // This object is created and initialized on the thread creating |
| 82 // a new worker context, but ownership of it and this WorkerThreadStartupDat
a | 82 // a new worker context, but ownership of it and this WorkerThreadStartupDat
a |
| 83 // structure is passed along to the new worker thread, where it is finalized
. | 83 // structure is passed along to the new worker thread, where it is finalized
. |
| 84 // | 84 // |
| 85 // Hence, CrossThreadPersistent<> is required to allow finalization | 85 // Hence, CrossThreadPersistent<> is required to allow finalization |
| 86 // to happen on a thread different than the thread creating the | 86 // to happen on a thread different than the thread creating the |
| 87 // persistent reference. | 87 // persistent reference. If the worker thread creation context |
| 88 // supplies no extra 'clients', m_workerClients can be left as empty/null. |
| 88 OwnPtrWillBeCrossThreadPersistent<WorkerClients> m_workerClients; | 89 OwnPtrWillBeCrossThreadPersistent<WorkerClients> m_workerClients; |
| 89 | 90 |
| 90 V8CacheOptions m_v8CacheOptions; | 91 V8CacheOptions m_v8CacheOptions; |
| 91 | 92 |
| 92 private: | 93 private: |
| 93 WorkerThreadStartupData(const KURL& scriptURL, const String& userAgent, cons
t String& sourceCode, PassOwnPtr<Vector<char>> cachedMetaData, WorkerThreadStart
Mode, const PassOwnPtr<Vector<CSPHeaderAndType>> contentSecurityPolicyHeaders, c
onst SecurityOrigin*, PassOwnPtrWillBeRawPtr<WorkerClients>, V8CacheOptions); | 94 WorkerThreadStartupData(const KURL& scriptURL, const String& userAgent, cons
t String& sourceCode, PassOwnPtr<Vector<char>> cachedMetaData, WorkerThreadStart
Mode, const PassOwnPtr<Vector<CSPHeaderAndType>> contentSecurityPolicyHeaders, c
onst SecurityOrigin*, PassOwnPtrWillBeRawPtr<WorkerClients>, V8CacheOptions); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace blink | 97 } // namespace blink |
| 97 | 98 |
| 98 #endif // WorkerThreadStartupData_h | 99 #endif // WorkerThreadStartupData_h |
| OLD | NEW |