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_BROWSER_CDM_H_ | 5 #ifndef MEDIA_BASE_BROWSER_CDM_H_ |
6 #define MEDIA_BASE_BROWSER_CDM_H_ | 6 #define MEDIA_BASE_BROWSER_CDM_H_ |
7 | 7 |
| 8 #include "media/base/media_export.h" |
8 #include "media/base/media_keys.h" | 9 #include "media/base/media_keys.h" |
9 #include "media/base/player_tracker.h" | 10 #include "media/base/player_tracker.h" |
10 | 11 |
11 namespace media { | 12 namespace media { |
12 | 13 |
13 // Interface for browser side CDMs. | 14 // Interface for browser side CDMs. |
14 class BrowserCdm : public PlayerTracker { | 15 class MEDIA_EXPORT BrowserCdm : public PlayerTracker { |
15 public: | 16 public: |
16 // TODO(jrummell): Update this to actually derive from MediaKeys | 17 // TODO(jrummell): Update this to actually derive from MediaKeys |
17 // (Use web_session_id rather than session_id). | 18 // (Use web_session_id rather than session_id). |
18 typedef base::Callback< | 19 typedef base::Callback< |
19 void(uint32 session_id, const std::string& web_session_id)> | 20 void(uint32 session_id, const std::string& web_session_id)> |
20 SessionCreatedCB; | 21 SessionCreatedCB; |
21 | 22 |
22 typedef base::Callback<void(uint32 session_id, | 23 typedef base::Callback<void(uint32 session_id, |
23 const std::vector<uint8>& message, | 24 const std::vector<uint8>& message, |
24 const GURL& destination_url)> SessionMessageCB; | 25 const GURL& destination_url)> SessionMessageCB; |
(...skipping 28 matching lines...) Expand all Loading... |
53 protected: | 54 protected: |
54 BrowserCdm(); | 55 BrowserCdm(); |
55 | 56 |
56 private: | 57 private: |
57 DISALLOW_COPY_AND_ASSIGN(BrowserCdm); | 58 DISALLOW_COPY_AND_ASSIGN(BrowserCdm); |
58 }; | 59 }; |
59 | 60 |
60 } // namespace media | 61 } // namespace media |
61 | 62 |
62 #endif // MEDIA_BASE_BROWSER_CDM_H_ | 63 #endif // MEDIA_BASE_BROWSER_CDM_H_ |
OLD | NEW |