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

Side by Side Diff: third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp

Issue 2098433002: Remove ExecutionContextTask::taskNameForInstrumentation() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 m_closing = true; 163 m_closing = true;
164 } 164 }
165 165
166 WorkerNavigator* WorkerGlobalScope::navigator() const 166 WorkerNavigator* WorkerGlobalScope::navigator() const
167 { 167 {
168 if (!m_navigator) 168 if (!m_navigator)
169 m_navigator = WorkerNavigator::create(m_userAgent); 169 m_navigator = WorkerNavigator::create(m_userAgent);
170 return m_navigator.get(); 170 return m_navigator.get();
171 } 171 }
172 172
173 void WorkerGlobalScope::postTask(const WebTraceLocation& location, std::unique_p tr<ExecutionContextTask> task) 173 void WorkerGlobalScope::postTask(const WebTraceLocation& location, std::unique_p tr<ExecutionContextTask> task, const String& taskNameForInstrumentation)
174 { 174 {
175 thread()->postTask(location, std::move(task)); 175 thread()->postTask(location, std::move(task), !taskNameForInstrumentation.is Empty());
176 } 176 }
177 177
178 void WorkerGlobalScope::clearScript() 178 void WorkerGlobalScope::clearScript()
179 { 179 {
180 DCHECK(m_scriptController); 180 DCHECK(m_scriptController);
181 m_scriptController->dispose(); 181 m_scriptController->dispose();
182 m_scriptController.clear(); 182 m_scriptController.clear();
183 } 183 }
184 184
185 void WorkerGlobalScope::clearInspector() 185 void WorkerGlobalScope::clearInspector()
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 visitor->trace(m_timers); 400 visitor->trace(m_timers);
401 visitor->trace(m_messageStorage); 401 visitor->trace(m_messageStorage);
402 visitor->trace(m_eventListeners); 402 visitor->trace(m_eventListeners);
403 ExecutionContext::trace(visitor); 403 ExecutionContext::trace(visitor);
404 EventTargetWithInlineData::trace(visitor); 404 EventTargetWithInlineData::trace(visitor);
405 SecurityContext::trace(visitor); 405 SecurityContext::trace(visitor);
406 Supplementable<WorkerGlobalScope>::trace(visitor); 406 Supplementable<WorkerGlobalScope>::trace(visitor);
407 } 407 }
408 408
409 } // namespace blink 409 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerGlobalScope.h ('k') | third_party/WebKit/Source/core/workers/WorkerThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698