| OLD | NEW |
| 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 MEDIA_BASE_CDM_PROMISE_H_ | 5 #ifndef MEDIA_BASE_CDM_PROMISE_H_ |
| 6 #define MEDIA_BASE_CDM_PROMISE_H_ | 6 #define MEDIA_BASE_CDM_PROMISE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" |
| 11 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
| 12 #include "media/base/media_keys.h" | 13 #include "media/base/media_keys.h" |
| 13 | 14 |
| 14 namespace media { | 15 namespace media { |
| 15 | 16 |
| 16 // Interface for promises being resolved/rejected in response to various | 17 // Interface for promises being resolved/rejected in response to various |
| 17 // session actions. These may be called synchronously or asynchronously. | 18 // session actions. These may be called synchronously or asynchronously. |
| 18 // The promise must be resolved or rejected exactly once. It is expected that | 19 // The promise must be resolved or rejected exactly once. It is expected that |
| 19 // the caller free the promise once it is resolved/rejected. | 20 // the caller free the promise once it is resolved/rejected. |
| 20 | 21 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 private: | 108 private: |
| 108 // Keep track of whether the promise has been resolved or rejected yet. | 109 // Keep track of whether the promise has been resolved or rejected yet. |
| 109 bool is_settled_; | 110 bool is_settled_; |
| 110 | 111 |
| 111 DISALLOW_COPY_AND_ASSIGN(CdmPromiseTemplate); | 112 DISALLOW_COPY_AND_ASSIGN(CdmPromiseTemplate); |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } // namespace media | 115 } // namespace media |
| 115 | 116 |
| 116 #endif // MEDIA_BASE_CDM_PROMISE_H_ | 117 #endif // MEDIA_BASE_CDM_PROMISE_H_ |
| OLD | NEW |