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

Side by Side Diff: Source/modules/encryptedmedia/SimpleContentDecryptionModuleResult.h

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 #ifndef SimpleContentDecryptionModuleResult_h 5 #ifndef SimpleContentDecryptionModuleResult_h
6 #define SimpleContentDecryptionModuleResult_h 6 #define SimpleContentDecryptionModuleResult_h
7 7
8 #include "core/dom/ExceptionCode.h" 8 #include "core/dom/ExceptionCode.h"
9 #include "platform/ContentDecryptionModuleResult.h" 9 #include "platform/ContentDecryptionModuleResult.h"
10 #include "wtf/Forward.h" 10 #include "wtf/Forward.h"
11 11
12 namespace blink { 12 namespace blink {
13 class WebString; 13 class WebString;
14 } 14 }
15 15
16 namespace WebCore { 16 namespace blink {
17 17
18 class ScriptPromise; 18 class ScriptPromise;
19 class ScriptPromiseResolver; 19 class ScriptPromiseResolver;
20 class ScriptState; 20 class ScriptState;
21 21
22 ExceptionCode WebCdmExceptionToExceptionCode(blink::WebContentDecryptionModuleEx ception); 22 ExceptionCode WebCdmExceptionToExceptionCode(blink::WebContentDecryptionModuleEx ception);
23 23
24 // This class wraps the promise resolver and is passed (indirectly) to Chromium 24 // This class wraps the promise resolver and is passed (indirectly) to Chromium
25 // to fullfill the promise. This implementation of complete() will resolve the 25 // to fullfill the promise. This implementation of complete() will resolve the
26 // promise with undefined, while completeWithError() reject the promise with an 26 // promise with undefined, while completeWithError() reject the promise with an
(...skipping 12 matching lines...) Expand all
39 // It is only valid to call this before completion. 39 // It is only valid to call this before completion.
40 ScriptPromise promise(); 40 ScriptPromise promise();
41 41
42 private: 42 private:
43 // Reject the promise with a DOMException. 43 // Reject the promise with a DOMException.
44 void completeWithDOMException(ExceptionCode, const String& errorMessage); 44 void completeWithDOMException(ExceptionCode, const String& errorMessage);
45 45
46 RefPtr<ScriptPromiseResolver> m_resolver; 46 RefPtr<ScriptPromiseResolver> m_resolver;
47 }; 47 };
48 48
49 } // namespace WebCore 49 } // namespace blink
50 50
51 #endif // SimpleContentDecryptionModuleResult_h 51 #endif // SimpleContentDecryptionModuleResult_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698