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

Side by Side Diff: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp

Issue 2535093003: Worker: Connect UseCounter to workers and worklets (Closed)
Patch Set: Created 4 years 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 loadShadowPage(); 217 loadShadowPage();
218 } 218 }
219 219
220 WebDevToolsAgentClient::WebKitClientMessageLoop* 220 WebDevToolsAgentClient::WebKitClientMessageLoop*
221 WebSharedWorkerImpl::createClientMessageLoop() { 221 WebSharedWorkerImpl::createClientMessageLoop() {
222 return m_client->createDevToolsMessageLoop(); 222 return m_client->createDevToolsMessageLoop();
223 } 223 }
224 224
225 // WorkerReportingProxy -------------------------------------------------------- 225 // WorkerReportingProxy --------------------------------------------------------
226 226
227 void WebSharedWorkerImpl::countFeature(UseCounter::Feature) {
228 // TODO(nhiroki): Support UseCounter for SharedWorker.
229 // (https://crbug.com/376039)
falken 2016/12/02 08:54:49 NOTIMPLEMENTED?
nhiroki 2016/12/05 04:49:01 This is reachable.
230 }
231
232 void WebSharedWorkerImpl::countDeprecation(UseCounter::Feature) {
233 // TODO(nhiroki): Support UseCounter for SharedWorker.
234 // (https://crbug.com/376039)
235 }
236
227 void WebSharedWorkerImpl::reportException(const String& errorMessage, 237 void WebSharedWorkerImpl::reportException(const String& errorMessage,
228 std::unique_ptr<SourceLocation>, 238 std::unique_ptr<SourceLocation>,
229 int exceptionId) { 239 int exceptionId) {
230 // Not suppported in SharedWorker. 240 // Not suppported in SharedWorker.
231 } 241 }
232 242
233 void WebSharedWorkerImpl::reportConsoleMessage(MessageSource, 243 void WebSharedWorkerImpl::reportConsoleMessage(MessageSource,
234 MessageLevel, 244 MessageLevel,
235 const String& message, 245 const String& message,
236 SourceLocation*) { 246 SourceLocation*) {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 if (devtoolsAgent) 454 if (devtoolsAgent)
445 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, 455 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method,
446 message); 456 message);
447 } 457 }
448 458
449 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) { 459 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) {
450 return new WebSharedWorkerImpl(client); 460 return new WebSharedWorkerImpl(client);
451 } 461 }
452 462
453 } // namespace blink 463 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698