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