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

Unified Diff: third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.h

Issue 2078833004: Change back to destroy the CDM synchronously (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.h
diff --git a/third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.h b/third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.h
index 62d995d5fa762cefd9abfb8c4edff27f8d64bc81..9fb19bd5482e1e4f0c8061340dd4c32ad12f9ab2 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.h
+++ b/third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.h
@@ -45,12 +45,16 @@ protected:
m_resolver.clear();
}
- // Rejects the promise with a DOMException.
+ // Rejects the promise with a DOMException. This will post a task to
+ // actually reject the promise later on.
void reject(ExceptionCode, const String& errorMessage);
ExecutionContext* getExecutionContext() const;
private:
+ // Rejects the promise with a DOMException.
+ void rejectInternal(ExceptionCode, const String& errorMessage);
+
Member<ScriptPromiseResolver> m_resolver;
};

Powered by Google App Engine
This is Rietveld 408576698