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

Unified Diff: third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp

Issue 2556993005: [blink] Split TaskType::Internal into InternalTimer and InternalLoading. (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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp b/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp
index bc60b0f65ac2f6e26394438d260062fe31c32ea5..0e74a188a435a3dfb484fcd394080dd94d9ca781 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp
@@ -74,7 +74,7 @@ void InProcessWorkerObjectProxy::postMessageToWorkerObject(
void InProcessWorkerObjectProxy::confirmMessageFromWorkerObject() {
getParentFrameTaskRunners()
- ->get(TaskType::Internal)
+ ->get(TaskType::InternalTimer)
->postTask(
BLINK_FROM_HERE,
crossThreadBind(
@@ -96,7 +96,7 @@ void InProcessWorkerObjectProxy::startPendingActivityTimer() {
void InProcessWorkerObjectProxy::countFeature(UseCounter::Feature feature) {
getParentFrameTaskRunners()
- ->get(TaskType::Internal)
+ ->get(TaskType::InternalTimer)
->postTask(BLINK_FROM_HERE,
crossThreadBind(&InProcessWorkerMessagingProxy::countFeature,
m_messagingProxyWeakPtr, feature));
@@ -104,7 +104,7 @@ void InProcessWorkerObjectProxy::countFeature(UseCounter::Feature feature) {
void InProcessWorkerObjectProxy::countDeprecation(UseCounter::Feature feature) {
getParentFrameTaskRunners()
- ->get(TaskType::Internal)
+ ->get(TaskType::InternalTimer)
->postTask(
BLINK_FROM_HERE,
crossThreadBind(&InProcessWorkerMessagingProxy::countDeprecation,
@@ -116,7 +116,7 @@ void InProcessWorkerObjectProxy::reportException(
std::unique_ptr<SourceLocation> location,
int exceptionId) {
getParentFrameTaskRunners()
- ->get(TaskType::Internal)
+ ->get(TaskType::InternalTimer)
->postTask(
BLINK_FROM_HERE,
crossThreadBind(&InProcessWorkerMessagingProxy::dispatchErrorEvent,
@@ -130,7 +130,7 @@ void InProcessWorkerObjectProxy::reportConsoleMessage(
const String& message,
SourceLocation* location) {
getParentFrameTaskRunners()
- ->get(TaskType::Internal)
+ ->get(TaskType::InternalTimer)
->postTask(
BLINK_FROM_HERE,
crossThreadBind(&InProcessWorkerMessagingProxy::reportConsoleMessage,
@@ -171,7 +171,7 @@ void InProcessWorkerObjectProxy::didEvaluateWorkerScript(bool) {
void InProcessWorkerObjectProxy::didCloseWorkerGlobalScope() {
getParentFrameTaskRunners()
- ->get(TaskType::Internal)
+ ->get(TaskType::InternalTimer)
->postTask(
BLINK_FROM_HERE,
crossThreadBind(&InProcessWorkerMessagingProxy::terminateGlobalScope,
@@ -186,7 +186,7 @@ void InProcessWorkerObjectProxy::willDestroyWorkerGlobalScope() {
void InProcessWorkerObjectProxy::didTerminateWorkerThread() {
// This will terminate the MessagingProxy.
getParentFrameTaskRunners()
- ->get(TaskType::Internal)
+ ->get(TaskType::InternalTimer)
->postTask(BLINK_FROM_HERE,
crossThreadBind(
&InProcessWorkerMessagingProxy::workerThreadTerminated,
@@ -212,7 +212,7 @@ void InProcessWorkerObjectProxy::checkPendingActivity(TimerBase*) {
if (!hasPendingActivity) {
// Report all activities are done.
getParentFrameTaskRunners()
- ->get(TaskType::Internal)
+ ->get(TaskType::InternalTimer)
->postTask(BLINK_FROM_HERE,
crossThreadBind(
&InProcessWorkerMessagingProxy::pendingActivityFinished,

Powered by Google App Engine
This is Rietveld 408576698