Chromium Code Reviews| Index: Source/modules/encryptedmedia/SimpleContentDecryptionModuleResultPromise.h | 
| diff --git a/Source/modules/encryptedmedia/SimpleContentDecryptionModuleResultPromise.h b/Source/modules/encryptedmedia/SimpleContentDecryptionModuleResultPromise.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..02c70b4d0aa317b6e23aacf449f83bf6f5912791 | 
| --- /dev/null | 
| +++ b/Source/modules/encryptedmedia/SimpleContentDecryptionModuleResultPromise.h | 
| @@ -0,0 +1,26 @@ | 
| +// Copyright 2014 The Chromium Authors. All rights reserved. | 
| +// Use of this source code is governed by a BSD-style license that can be | 
| +// found in the LICENSE file. | 
| + | 
| +#ifndef SimpleContentDecryptionModuleResultPromise_h | 
| +#define SimpleContentDecryptionModuleResultPromise_h | 
| + | 
| +#include "modules/encryptedmedia/ContentDecryptionModuleResultPromise.h" | 
| + | 
| +namespace blink { | 
| + | 
| +// This class creates a simple ContentDecryptionModuleResultPromise where the | 
| +// implementation of complete() will resolve the promise. All other complete() | 
| +// methods will reject the promise. | 
| 
 
ddorwin
2014/11/11 22:44:09
nit: Perhaps better to say that they should not be
 
jrummell
2014/11/11 23:30:11
Done.
 
 | 
| +class SimpleContentDecryptionModuleResultPromise : public ContentDecryptionModuleResultPromise { | 
| +public: | 
| + explicit SimpleContentDecryptionModuleResultPromise(ScriptState*); | 
| + virtual ~SimpleContentDecryptionModuleResultPromise(); | 
| + | 
| + // ContentDecryptionModuleResult implementation. | 
| 
 
ddorwin
2014/11/11 22:44:09
ContentDecryptionModuleResultPromise?
 
jrummell
2014/11/11 23:30:11
Done.
 
 | 
| + virtual void complete() override; | 
| +}; | 
| + | 
| +} // namespace blink | 
| + | 
| +#endif // SimpleContentDecryptionModuleResultPromise_h |