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 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 private: | 75 private: |
76 DISALLOW_COPY_AND_ASSIGN(MediaKeys); | 76 DISALLOW_COPY_AND_ASSIGN(MediaKeys); |
77 }; | 77 }; |
78 | 78 |
79 // Key event callbacks. See the spec for details: | 79 // Key event callbacks. See the spec for details: |
80 // https://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-
media.html#event-summary | 80 // https://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-
media.html#event-summary |
81 typedef base::Callback< | 81 typedef base::Callback< |
82 void(uint32 session_id, const std::string& web_session_id)> | 82 void(uint32 session_id, const std::string& web_session_id)> |
83 SessionCreatedCB; | 83 SessionCreatedCB; |
84 | 84 |
| 85 // TODO(xhwang): Use GURL for |destination_url|. See http://crbug.com/372877 |
85 typedef base::Callback<void(uint32 session_id, | 86 typedef base::Callback<void(uint32 session_id, |
86 const std::vector<uint8>& message, | 87 const std::vector<uint8>& message, |
87 const std::string& destination_url)> | 88 const std::string& destination_url)> |
88 SessionMessageCB; | 89 SessionMessageCB; |
89 | 90 |
90 typedef base::Callback<void(uint32 session_id)> SessionReadyCB; | 91 typedef base::Callback<void(uint32 session_id)> SessionReadyCB; |
91 | 92 |
92 typedef base::Callback<void(uint32 session_id)> SessionClosedCB; | 93 typedef base::Callback<void(uint32 session_id)> SessionClosedCB; |
93 | 94 |
94 typedef base::Callback<void(uint32 session_id, | 95 typedef base::Callback<void(uint32 session_id, |
95 media::MediaKeys::KeyError error_code, | 96 media::MediaKeys::KeyError error_code, |
96 uint32 system_code)> SessionErrorCB; | 97 uint32 system_code)> SessionErrorCB; |
97 | 98 |
98 } // namespace media | 99 } // namespace media |
99 | 100 |
100 #endif // MEDIA_BASE_MEDIA_KEYS_H_ | 101 #endif // MEDIA_BASE_MEDIA_KEYS_H_ |
OLD | NEW |