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

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

Issue 1164753004: Tidy up CompositorWorkerManager unit tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/workers/WorkerObjectProxy.cpp ('k') | Source/core/workers/WorkerThreadTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerObjectProxy.cpp ('k') | Source/core/workers/WorkerThreadTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698