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

Side by Side Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h

Issue 2116113002: [worklets] Make WorkerThread handle both Worker and Worklet global scopes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 4 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void dispatchPushEvent(int, const WebString& data) override; 82 void dispatchPushEvent(int, const WebString& data) override;
83 void dispatchSyncEvent(int, const WebString& tag, LastChanceOption) override ; 83 void dispatchSyncEvent(int, const WebString& tag, LastChanceOption) override ;
84 bool hasFetchEventHandler() override; 84 bool hasFetchEventHandler() override;
85 85
86 // WorkerReportingProxy overrides: 86 // WorkerReportingProxy overrides:
87 void reportException(const String& errorMessage, std::unique_ptr<SourceLocat ion>) override; 87 void reportException(const String& errorMessage, std::unique_ptr<SourceLocat ion>) override;
88 void reportConsoleMessage(ConsoleMessage*) override; 88 void reportConsoleMessage(ConsoleMessage*) override;
89 void postMessageToPageInspector(const String&) override; 89 void postMessageToPageInspector(const String&) override;
90 void didEvaluateWorkerScript(bool success) override; 90 void didEvaluateWorkerScript(bool success) override;
91 void didInitializeWorkerContext() override; 91 void didInitializeWorkerContext() override;
92 void workerGlobalScopeStarted(WorkerGlobalScope*) override; 92 void workerGlobalScopeStarted(WorkerOrWorkletGlobalScope*) override;
93 void workerGlobalScopeClosed() override; 93 void workerGlobalScopeClosed() override;
94 void willDestroyWorkerGlobalScope() override; 94 void willDestroyWorkerGlobalScope() override;
95 void workerThreadTerminated() override; 95 void workerThreadTerminated() override;
96 96
97 DECLARE_TRACE(); 97 DECLARE_TRACE();
98 98
99 // Detach this proxy object entirely from the outside world, 99 // Detach this proxy object entirely from the outside world,
100 // clearing out all references. 100 // clearing out all references.
101 // 101 //
102 // It is called during WebEmbeddedWorkerImpl finalization _after_ 102 // It is called during WebEmbeddedWorkerImpl finalization _after_
(...skipping 13 matching lines...) Expand all
116 Member<Document> m_document; 116 Member<Document> m_document;
117 117
118 WebServiceWorkerContextClient* m_client; 118 WebServiceWorkerContextClient* m_client;
119 119
120 Member<ServiceWorkerGlobalScope> m_workerGlobalScope; 120 Member<ServiceWorkerGlobalScope> m_workerGlobalScope;
121 }; 121 };
122 122
123 } // namespace blink 123 } // namespace blink
124 124
125 #endif // ServiceWorkerGlobalScopeProxy_h 125 #endif // ServiceWorkerGlobalScopeProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698