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

Side by Side Diff: third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.cpp

Issue 2748953002: Remove createSameThreadTask() and deprecate createCrossThreadTask() (Closed)
Patch Set: Created 3 years, 9 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/encryptedmedia/ContentDecryptionModuleResultPromise.h" 5 #include "modules/encryptedmedia/ContentDecryptionModuleResultPromise.h"
6 6
7 #include "bindings/core/v8/ScriptPromise.h" 7 #include "bindings/core/v8/ScriptPromise.h"
8 #include "bindings/core/v8/ScriptState.h" 8 #include "bindings/core/v8/ScriptState.h"
9 #include "bindings/core/v8/V8ThrowException.h" 9 #include "bindings/core/v8/V8ThrowException.h"
10 #include "core/dom/DOMException.h" 10 #include "core/dom/DOMException.h"
11 #include "core/dom/ExecutionContext.h" 11 #include "core/dom/ExecutionContext.h"
12 #include "core/dom/ExecutionContextTask.h"
13 #include "public/platform/WebString.h" 12 #include "public/platform/WebString.h"
14 #include "wtf/Assertions.h" 13 #include "wtf/Assertions.h"
15 14
16 namespace blink { 15 namespace blink {
17 16
18 ExceptionCode WebCdmExceptionToExceptionCode( 17 ExceptionCode WebCdmExceptionToExceptionCode(
19 WebContentDecryptionModuleException cdmException) { 18 WebContentDecryptionModuleException cdmException) {
20 switch (cdmException) { 19 switch (cdmException) {
21 case WebContentDecryptionModuleExceptionTypeError: 20 case WebContentDecryptionModuleExceptionTypeError:
22 return V8TypeError; 21 return V8TypeError;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // promise which is about to go away anyway. 111 // promise which is about to go away anyway.
113 return getExecutionContext() && !getExecutionContext()->isContextDestroyed(); 112 return getExecutionContext() && !getExecutionContext()->isContextDestroyed();
114 } 113 }
115 114
116 DEFINE_TRACE(ContentDecryptionModuleResultPromise) { 115 DEFINE_TRACE(ContentDecryptionModuleResultPromise) {
117 visitor->trace(m_resolver); 116 visitor->trace(m_resolver);
118 ContentDecryptionModuleResult::trace(visitor); 117 ContentDecryptionModuleResult::trace(visitor);
119 } 118 }
120 119
121 } // namespace blink 120 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698