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_CRYPTO_PROXY_DECRYPTOR_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_CRYPTO_PROXY_DECRYPTOR_H_ |
6 #define CONTENT_RENDERER_MEDIA_CRYPTO_PROXY_DECRYPTOR_H_ | 6 #define CONTENT_RENDERER_MEDIA_CRYPTO_PROXY_DECRYPTOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 private: | 83 private: |
84 // Helper function to create MediaKeys to handle the given |key_system|. | 84 // Helper function to create MediaKeys to handle the given |key_system|. |
85 scoped_ptr<media::MediaKeys> CreateMediaKeys(const std::string& key_system, | 85 scoped_ptr<media::MediaKeys> CreateMediaKeys(const std::string& key_system, |
86 const GURL& security_origin); | 86 const GURL& security_origin); |
87 | 87 |
88 // Callbacks for firing session events. | 88 // Callbacks for firing session events. |
89 void OnSessionMessage(const std::string& web_session_id, | 89 void OnSessionMessage(const std::string& web_session_id, |
90 const std::vector<uint8>& message, | 90 const std::vector<uint8>& message, |
91 const GURL& default_url); | 91 const GURL& default_url); |
| 92 void OnSessionKeysChange(const std::string& web_session_id, |
| 93 bool has_additional_usable_key); |
| 94 void OnSessionExpirationUpdate(const std::string& web_session_id, |
| 95 const base::Time& new_expiry_time); |
92 void OnSessionReady(const std::string& web_session_id); | 96 void OnSessionReady(const std::string& web_session_id); |
93 void OnSessionClosed(const std::string& web_session_id); | 97 void OnSessionClosed(const std::string& web_session_id); |
94 void OnSessionError(const std::string& web_session_id, | 98 void OnSessionError(const std::string& web_session_id, |
95 media::MediaKeys::Exception exception_code, | 99 media::MediaKeys::Exception exception_code, |
96 uint32 system_code, | 100 uint32 system_code, |
97 const std::string& error_message); | 101 const std::string& error_message); |
98 | 102 |
99 enum SessionCreationType { | 103 enum SessionCreationType { |
100 TemporarySession, | 104 TemporarySession, |
101 PersistentSession, | 105 PersistentSession, |
(...skipping 27 matching lines...) Expand all Loading... |
129 | 133 |
130 // NOTE: Weak pointers must be invalidated before all other member variables. | 134 // NOTE: Weak pointers must be invalidated before all other member variables. |
131 base::WeakPtrFactory<ProxyDecryptor> weak_ptr_factory_; | 135 base::WeakPtrFactory<ProxyDecryptor> weak_ptr_factory_; |
132 | 136 |
133 DISALLOW_COPY_AND_ASSIGN(ProxyDecryptor); | 137 DISALLOW_COPY_AND_ASSIGN(ProxyDecryptor); |
134 }; | 138 }; |
135 | 139 |
136 } // namespace content | 140 } // namespace content |
137 | 141 |
138 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PROXY_DECRYPTOR_H_ | 142 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PROXY_DECRYPTOR_H_ |
OLD | NEW |