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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.h

Issue 2539443004: Worker: Move ParentFrameTaskRunners from WorkerReportingProxy to ObjectProxy (Closed)
Patch Set: rebase Created 3 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 25 matching lines...) Expand all
36 #include <memory> 36 #include <memory>
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class WorkerThreadStartupData; 40 class WorkerThreadStartupData;
41 41
42 class MODULES_EXPORT ServiceWorkerThread final : public WorkerThread { 42 class MODULES_EXPORT ServiceWorkerThread final : public WorkerThread {
43 public: 43 public:
44 static std::unique_ptr<ServiceWorkerThread> create( 44 static std::unique_ptr<ServiceWorkerThread> create(
45 PassRefPtr<WorkerLoaderProxy>, 45 PassRefPtr<WorkerLoaderProxy>,
46 WorkerReportingProxy&); 46 WorkerReportingProxy&,
47 ParentFrameTaskRunners*);
47 ~ServiceWorkerThread() override; 48 ~ServiceWorkerThread() override;
48 49
49 WorkerBackingThread& workerBackingThread() override { 50 WorkerBackingThread& workerBackingThread() override {
50 return *m_workerBackingThread; 51 return *m_workerBackingThread;
51 } 52 }
52 void clearWorkerBackingThread() override; 53 void clearWorkerBackingThread() override;
53 54
54 protected: 55 protected:
55 WorkerOrWorkletGlobalScope* createWorkerGlobalScope( 56 WorkerOrWorkletGlobalScope* createWorkerGlobalScope(
56 std::unique_ptr<WorkerThreadStartupData>) override; 57 std::unique_ptr<WorkerThreadStartupData>) override;
57 58
58 private: 59 private:
59 ServiceWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&); 60 ServiceWorkerThread(PassRefPtr<WorkerLoaderProxy>,
61 WorkerReportingProxy&,
62 ParentFrameTaskRunners*);
60 std::unique_ptr<WorkerBackingThread> m_workerBackingThread; 63 std::unique_ptr<WorkerBackingThread> m_workerBackingThread;
61 }; 64 };
62 65
63 } // namespace blink 66 } // namespace blink
64 67
65 #endif // ServiceWorkerThread_h 68 #endif // ServiceWorkerThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698