| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class WorkerThreadStartupData; | 40 class WorkerThreadStartupData; |
| 41 | 41 |
| 42 class CORE_EXPORT SharedWorkerThread : public WorkerThread { | 42 class CORE_EXPORT SharedWorkerThread : public WorkerThread { |
| 43 public: | 43 public: |
| 44 static std::unique_ptr<SharedWorkerThread> create( | 44 static std::unique_ptr<SharedWorkerThread> create( |
| 45 const String& name, | 45 const String& name, |
| 46 PassRefPtr<WorkerLoaderProxy>, | 46 PassRefPtr<WorkerLoaderProxy>, |
| 47 WorkerReportingProxy&, | 47 WorkerReportingProxy&); |
| 48 ParentFrameTaskRunners*); | |
| 49 ~SharedWorkerThread() override; | 48 ~SharedWorkerThread() override; |
| 50 | 49 |
| 51 WorkerBackingThread& workerBackingThread() override { | 50 WorkerBackingThread& workerBackingThread() override { |
| 52 return *m_workerBackingThread; | 51 return *m_workerBackingThread; |
| 53 } | 52 } |
| 54 void clearWorkerBackingThread() override; | 53 void clearWorkerBackingThread() override; |
| 55 | 54 |
| 56 protected: | 55 protected: |
| 57 WorkerOrWorkletGlobalScope* createWorkerGlobalScope( | 56 WorkerOrWorkletGlobalScope* createWorkerGlobalScope( |
| 58 std::unique_ptr<WorkerThreadStartupData>) override; | 57 std::unique_ptr<WorkerThreadStartupData>) override; |
| 59 | 58 |
| 60 private: | 59 private: |
| 61 SharedWorkerThread(const String& name, | 60 SharedWorkerThread(const String& name, |
| 62 PassRefPtr<WorkerLoaderProxy>, | 61 PassRefPtr<WorkerLoaderProxy>, |
| 63 WorkerReportingProxy&, | 62 WorkerReportingProxy&); |
| 64 ParentFrameTaskRunners*); | |
| 65 | 63 |
| 66 std::unique_ptr<WorkerBackingThread> m_workerBackingThread; | 64 std::unique_ptr<WorkerBackingThread> m_workerBackingThread; |
| 67 String m_name; | 65 String m_name; |
| 68 }; | 66 }; |
| 69 | 67 |
| 70 } // namespace blink | 68 } // namespace blink |
| 71 | 69 |
| 72 #endif // SharedWorkerThread_h | 70 #endif // SharedWorkerThread_h |
| OLD | NEW |