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

Side by Side Diff: third_party/WebKit/Source/core/dom/ExecutionContext.cpp

Issue 2580263002: Remove TaskType::Unspecified (14) (Closed)
Patch Set: rebase Created 3 years, 11 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) 2012 Google Inc. All Rights Reserved. 3 * Copyright (C) 2012 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 160 }
161 161
162 const KURL& ExecutionContext::url() const { 162 const KURL& ExecutionContext::url() const {
163 return virtualURL(); 163 return virtualURL();
164 } 164 }
165 165
166 KURL ExecutionContext::completeURL(const String& url) const { 166 KURL ExecutionContext::completeURL(const String& url) const {
167 return virtualCompleteURL(url); 167 return virtualCompleteURL(url);
168 } 168 }
169 169
170 void ExecutionContext::postTask(const WebTraceLocation& location,
171 std::unique_ptr<ExecutionContextTask> task,
172 const String& taskNameForInstrumentation) {
173 postTask(TaskType::Unspecified, location, std::move(task),
174 taskNameForInstrumentation);
175 }
176
177 void ExecutionContext::allowWindowInteraction() { 170 void ExecutionContext::allowWindowInteraction() {
178 ++m_windowInteractionTokens; 171 ++m_windowInteractionTokens;
179 } 172 }
180 173
181 void ExecutionContext::consumeWindowInteraction() { 174 void ExecutionContext::consumeWindowInteraction() {
182 if (m_windowInteractionTokens == 0) 175 if (m_windowInteractionTokens == 0)
183 return; 176 return;
184 --m_windowInteractionTokens; 177 --m_windowInteractionTokens;
185 } 178 }
186 179
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 } 240 }
248 241
249 DEFINE_TRACE(ExecutionContext) { 242 DEFINE_TRACE(ExecutionContext) {
250 visitor->trace(m_publicURLManager); 243 visitor->trace(m_publicURLManager);
251 visitor->trace(m_pendingExceptions); 244 visitor->trace(m_pendingExceptions);
252 ContextLifecycleNotifier::trace(visitor); 245 ContextLifecycleNotifier::trace(visitor);
253 Supplementable<ExecutionContext>::trace(visitor); 246 Supplementable<ExecutionContext>::trace(visitor);
254 } 247 }
255 248
256 } // namespace blink 249 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ExecutionContext.h ('k') | third_party/WebKit/Source/core/dom/TaskRunnerHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698