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 CONTENT_RENDERER_MEDIA_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 10 matching lines...) Expand all Loading... |
21 class MediaKeys; | 21 class MediaKeys; |
22 } | 22 } |
23 | 23 |
24 namespace content { | 24 namespace content { |
25 class CdmSessionAdapter; | 25 class CdmSessionAdapter; |
26 | 26 |
27 class WebContentDecryptionModuleSessionImpl | 27 class WebContentDecryptionModuleSessionImpl |
28 : public blink::WebContentDecryptionModuleSession { | 28 : public blink::WebContentDecryptionModuleSession { |
29 public: | 29 public: |
30 WebContentDecryptionModuleSessionImpl( | 30 WebContentDecryptionModuleSessionImpl( |
31 Client* client, | |
32 const scoped_refptr<CdmSessionAdapter>& adapter); | 31 const scoped_refptr<CdmSessionAdapter>& adapter); |
33 virtual ~WebContentDecryptionModuleSessionImpl(); | 32 virtual ~WebContentDecryptionModuleSessionImpl(); |
34 | 33 |
35 // blink::WebContentDecryptionModuleSession implementation. | 34 // blink::WebContentDecryptionModuleSession implementation. |
| 35 virtual void setClientInterface(Client* client); |
36 virtual blink::WebString sessionId() const; | 36 virtual blink::WebString sessionId() const; |
37 // TODO(jrummell): Remove the next 3 methods once blink updated. | 37 // TODO(jrummell): Remove the next 3 methods once blink updated. |
38 virtual void initializeNewSession(const blink::WebString& mime_type, | 38 virtual void initializeNewSession(const blink::WebString& mime_type, |
39 const uint8* init_data, | 39 const uint8* init_data, |
40 size_t init_data_length); | 40 size_t init_data_length); |
41 virtual void update(const uint8* response, size_t response_length); | 41 virtual void update(const uint8* response, size_t response_length); |
42 virtual void release(); | 42 virtual void release(); |
43 virtual void initializeNewSession( | 43 virtual void initializeNewSession( |
44 const blink::WebString& init_data_type, | 44 const blink::WebString& init_data_type, |
45 const uint8* init_data, | 45 const uint8* init_data, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // creating a promise in case this class disappears before the promise | 103 // creating a promise in case this class disappears before the promise |
104 // actually fires. | 104 // actually fires. |
105 base::WeakPtrFactory<WebContentDecryptionModuleSessionImpl> weak_ptr_factory_; | 105 base::WeakPtrFactory<WebContentDecryptionModuleSessionImpl> weak_ptr_factory_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(WebContentDecryptionModuleSessionImpl); | 107 DISALLOW_COPY_AND_ASSIGN(WebContentDecryptionModuleSessionImpl); |
108 }; | 108 }; |
109 | 109 |
110 } // namespace content | 110 } // namespace content |
111 | 111 |
112 #endif // CONTENT_RENDERER_MEDIA_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_ | 112 #endif // CONTENT_RENDERER_MEDIA_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_ |
OLD | NEW |