Chromium Code Reviews| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 90 const std::vector<uint8>& message, | 90 const std::vector<uint8>& message, |
| 91 const GURL& default_url); | 91 const GURL& default_url); |
| 92 void OnSessionReady(const std::string& web_session_id); | 92 void OnSessionReady(const std::string& web_session_id); |
| 93 void OnSessionClosed(const std::string& web_session_id); | 93 void OnSessionClosed(const std::string& web_session_id); |
| 94 void OnSessionError(const std::string& web_session_id, | 94 void OnSessionError(const std::string& web_session_id, |
| 95 media::MediaKeys::Exception exception_code, | 95 media::MediaKeys::Exception exception_code, |
| 96 uint32 system_code, | 96 uint32 system_code, |
| 97 const std::string& error_message); | 97 const std::string& error_message); |
| 98 | 98 |
| 99 // Called when a session is actually created or loaded. | 99 // Called when a session is actually created or loaded. |
| 100 void SetSessionId(bool persistent, const std::string& web_session_id); | 100 void SetSessionId(bool persistent, |
|
ddorwin
2014/08/08 23:36:23
is_new_persistent_session
jrummell
2014/08/11 18:59:03
Done.
| |
| 101 bool load_session, | |
|
ddorwin
2014/08/08 23:36:23
is_loaded_session
jrummell
2014/08/11 18:59:03
Done.
| |
| 102 const std::string& web_session_id); | |
| 101 | 103 |
| 102 #if defined(ENABLE_PEPPER_CDMS) | 104 #if defined(ENABLE_PEPPER_CDMS) |
| 103 // Callback to create the Pepper plugin. | 105 // Callback to create the Pepper plugin. |
| 104 CreatePepperCdmCB create_pepper_cdm_cb_; | 106 CreatePepperCdmCB create_pepper_cdm_cb_; |
| 105 #elif defined(ENABLE_BROWSER_CDMS) | 107 #elif defined(ENABLE_BROWSER_CDMS) |
| 106 RendererCdmManager* manager_; | 108 RendererCdmManager* manager_; |
| 107 int cdm_id_; | 109 int cdm_id_; |
| 108 #endif // defined(ENABLE_PEPPER_CDMS) | 110 #endif // defined(ENABLE_PEPPER_CDMS) |
| 109 | 111 |
| 110 // The real MediaKeys that manages key operations for the ProxyDecryptor. | 112 // The real MediaKeys that manages key operations for the ProxyDecryptor. |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 122 | 124 |
| 123 // NOTE: Weak pointers must be invalidated before all other member variables. | 125 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 124 base::WeakPtrFactory<ProxyDecryptor> weak_ptr_factory_; | 126 base::WeakPtrFactory<ProxyDecryptor> weak_ptr_factory_; |
| 125 | 127 |
| 126 DISALLOW_COPY_AND_ASSIGN(ProxyDecryptor); | 128 DISALLOW_COPY_AND_ASSIGN(ProxyDecryptor); |
| 127 }; | 129 }; |
| 128 | 130 |
| 129 } // namespace content | 131 } // namespace content |
| 130 | 132 |
| 131 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PROXY_DECRYPTOR_H_ | 133 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PROXY_DECRYPTOR_H_ |
| OLD | NEW |