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_BLINK_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_ |
6 #define MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_ | 6 #define MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 public: | 26 public: |
27 WebContentDecryptionModuleSessionImpl( | 27 WebContentDecryptionModuleSessionImpl( |
28 const scoped_refptr<CdmSessionAdapter>& adapter); | 28 const scoped_refptr<CdmSessionAdapter>& adapter); |
29 virtual ~WebContentDecryptionModuleSessionImpl(); | 29 virtual ~WebContentDecryptionModuleSessionImpl(); |
30 | 30 |
31 // blink::WebContentDecryptionModuleSession implementation. | 31 // blink::WebContentDecryptionModuleSession implementation. |
32 virtual void setClientInterface(Client* client); | 32 virtual void setClientInterface(Client* client); |
33 virtual blink::WebString sessionId() const; | 33 virtual blink::WebString sessionId() const; |
34 | 34 |
35 virtual void initializeNewSession( | 35 virtual void initializeNewSession( |
| 36 blink::WebEncryptedMediaInitDataType init_data_type, |
| 37 const unsigned char* initData, |
| 38 size_t initDataLength, |
| 39 blink::WebEncryptedMediaSessionType session_type, |
| 40 blink::WebContentDecryptionModuleResult result); |
| 41 virtual void initializeNewSession( |
36 const blink::WebString& init_data_type, | 42 const blink::WebString& init_data_type, |
37 const uint8* init_data, | 43 const uint8* init_data, |
38 size_t init_data_length, | 44 size_t init_data_length, |
39 const blink::WebString& session_type, | 45 const blink::WebString& session_type, |
40 blink::WebContentDecryptionModuleResult result); | 46 blink::WebContentDecryptionModuleResult result); |
41 virtual void load(const blink::WebString& session_id, | 47 virtual void load(const blink::WebString& session_id, |
42 blink::WebContentDecryptionModuleResult result); | 48 blink::WebContentDecryptionModuleResult result); |
43 virtual void update(const uint8* response, | 49 virtual void update(const uint8* response, |
44 size_t response_length, | 50 size_t response_length, |
45 blink::WebContentDecryptionModuleResult result); | 51 blink::WebContentDecryptionModuleResult result); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // creating a promise in case this class disappears before the promise | 84 // creating a promise in case this class disappears before the promise |
79 // actually fires. | 85 // actually fires. |
80 base::WeakPtrFactory<WebContentDecryptionModuleSessionImpl> weak_ptr_factory_; | 86 base::WeakPtrFactory<WebContentDecryptionModuleSessionImpl> weak_ptr_factory_; |
81 | 87 |
82 DISALLOW_COPY_AND_ASSIGN(WebContentDecryptionModuleSessionImpl); | 88 DISALLOW_COPY_AND_ASSIGN(WebContentDecryptionModuleSessionImpl); |
83 }; | 89 }; |
84 | 90 |
85 } // namespace media | 91 } // namespace media |
86 | 92 |
87 #endif // MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_ | 93 #endif // MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_ |
OLD | NEW |