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

Side by Side Diff: third_party/WebKit/Source/web/WebSharedWorkerImpl.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) 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 , public WebDevToolsAgentClient 72 , public WebDevToolsAgentClient
73 , private WorkerLoaderProxyProvider { 73 , private WorkerLoaderProxyProvider {
74 public: 74 public:
75 explicit WebSharedWorkerImpl(WebSharedWorkerClient*); 75 explicit WebSharedWorkerImpl(WebSharedWorkerClient*);
76 76
77 // WorkerReportingProxy methods: 77 // WorkerReportingProxy methods:
78 void reportException(const WTF::String&, std::unique_ptr<SourceLocation>) ov erride; 78 void reportException(const WTF::String&, std::unique_ptr<SourceLocation>) ov erride;
79 void reportConsoleMessage(ConsoleMessage*) override; 79 void reportConsoleMessage(ConsoleMessage*) override;
80 void postMessageToPageInspector(const WTF::String&) override; 80 void postMessageToPageInspector(const WTF::String&) override;
81 void didEvaluateWorkerScript(bool success) override { } 81 void didEvaluateWorkerScript(bool success) override { }
82 void workerGlobalScopeStarted(WorkerGlobalScope*) override; 82 void workerGlobalScopeStarted(WorkerOrWorkletGlobalScope*) override;
83 void workerGlobalScopeClosed() override; 83 void workerGlobalScopeClosed() override;
84 void workerThreadTerminated() override; 84 void workerThreadTerminated() override;
85 void willDestroyWorkerGlobalScope() override { } 85 void willDestroyWorkerGlobalScope() override { }
86 86
87 // WebFrameClient methods to support resource loading thru the 'shadow page' . 87 // WebFrameClient methods to support resource loading thru the 'shadow page' .
88 WebApplicationCacheHost* createApplicationCacheHost(WebApplicationCacheHostC lient*) override; 88 WebApplicationCacheHost* createApplicationCacheHost(WebApplicationCacheHostC lient*) override;
89 void willSendRequest(WebLocalFrame*, unsigned identifier, WebURLRequest&, co nst WebURLResponse& redirectResponse) override; 89 void willSendRequest(WebLocalFrame*, unsigned identifier, WebURLRequest&, co nst WebURLResponse& redirectResponse) override;
90 void didFinishDocumentLoad(WebLocalFrame*) override; 90 void didFinishDocumentLoad(WebLocalFrame*) override;
91 bool isControlledByServiceWorker(WebDataSource&) override; 91 bool isControlledByServiceWorker(WebDataSource&) override;
92 int64_t serviceWorkerID(WebDataSource&) override; 92 int64_t serviceWorkerID(WebDataSource&) override;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 RefPtr<WorkerLoaderProxy> m_loaderProxy; 157 RefPtr<WorkerLoaderProxy> m_loaderProxy;
158 158
159 WebURL m_url; 159 WebURL m_url;
160 WebString m_name; 160 WebString m_name;
161 WebAddressSpace m_creationAddressSpace; 161 WebAddressSpace m_creationAddressSpace;
162 }; 162 };
163 163
164 } // namespace blink 164 } // namespace blink
165 165
166 #endif // WebSharedWorkerImpl_h 166 #endif // WebSharedWorkerImpl_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698