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

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

Issue 2848243004: Clean up bindings/core/v8 (Part 2) (Closed)
Patch Set: Rebase Created 3 years, 7 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"
9 #include "bindings/core/v8/V8ThrowDOMException.h" 8 #include "bindings/core/v8/V8ThrowDOMException.h"
10 #include "core/dom/DOMException.h" 9 #include "core/dom/DOMException.h"
11 #include "core/dom/ExecutionContext.h" 10 #include "core/dom/ExecutionContext.h"
11 #include "platform/bindings/ScriptState.h"
12 #include "platform/wtf/Assertions.h" 12 #include "platform/wtf/Assertions.h"
13 #include "platform/wtf/text/StringBuilder.h" 13 #include "platform/wtf/text/StringBuilder.h"
14 #include "public/platform/WebString.h" 14 #include "public/platform/WebString.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 ExceptionCode WebCdmExceptionToExceptionCode( 18 ExceptionCode WebCdmExceptionToExceptionCode(
19 WebContentDecryptionModuleException cdm_exception) { 19 WebContentDecryptionModuleException cdm_exception) {
20 switch (cdm_exception) { 20 switch (cdm_exception) {
21 case kWebContentDecryptionModuleExceptionTypeError: 21 case kWebContentDecryptionModuleExceptionTypeError:
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // promise which is about to go away anyway. 112 // promise which is about to go away anyway.
113 return GetExecutionContext() && !GetExecutionContext()->IsContextDestroyed(); 113 return GetExecutionContext() && !GetExecutionContext()->IsContextDestroyed();
114 } 114 }
115 115
116 DEFINE_TRACE(ContentDecryptionModuleResultPromise) { 116 DEFINE_TRACE(ContentDecryptionModuleResultPromise) {
117 visitor->Trace(resolver_); 117 visitor->Trace(resolver_);
118 ContentDecryptionModuleResult::Trace(visitor); 118 ContentDecryptionModuleResult::Trace(visitor);
119 } 119 }
120 120
121 } // namespace blink 121 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698