OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MEDIA_KEYS_H_ | 5 #ifndef MEDIA_BASE_MEDIA_KEYS_H_ |
6 #define MEDIA_BASE_MEDIA_KEYS_H_ | 6 #define MEDIA_BASE_MEDIA_KEYS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
15 #include "media/base/eme_constants.h" | 16 #include "media/base/eme_constants.h" |
16 #include "media/base/media_export.h" | 17 #include "media/base/media_export.h" |
17 #include "url/gurl.h" | 18 #include "url/gurl.h" |
18 | 19 |
19 namespace base { | 20 namespace base { |
20 class Time; | 21 class Time; |
21 } | 22 } |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 216 |
216 // Called when the CDM changes the expiration time of a session. | 217 // Called when the CDM changes the expiration time of a session. |
217 // See http://w3c.github.io/encrypted-media/#update-expiration | 218 // See http://w3c.github.io/encrypted-media/#update-expiration |
218 typedef base::Callback<void(const std::string& session_id, | 219 typedef base::Callback<void(const std::string& session_id, |
219 const base::Time& new_expiry_time)> | 220 const base::Time& new_expiry_time)> |
220 SessionExpirationUpdateCB; | 221 SessionExpirationUpdateCB; |
221 | 222 |
222 } // namespace media | 223 } // namespace media |
223 | 224 |
224 #endif // MEDIA_BASE_MEDIA_KEYS_H_ | 225 #endif // MEDIA_BASE_MEDIA_KEYS_H_ |
OLD | NEW |