Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(539)

Side by Side Diff: content/renderer/media/crypto/ppapi_decryptor.h

Issue 179123009: Encrypted Media: Use uint32 for systemCode in SessionError. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_PPAPI_DECRYPTOR_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_
6 #define CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ 6 #define CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Callbacks for |plugin_cdm_delegate_| to fire session events. 89 // Callbacks for |plugin_cdm_delegate_| to fire session events.
90 void OnSessionCreated(uint32 session_id, const std::string& web_session_id); 90 void OnSessionCreated(uint32 session_id, const std::string& web_session_id);
91 void OnSessionMessage(uint32 session_id, 91 void OnSessionMessage(uint32 session_id,
92 const std::vector<uint8>& message, 92 const std::vector<uint8>& message,
93 const std::string& destination_url); 93 const std::string& destination_url);
94 void OnSessionReady(uint32 session_id); 94 void OnSessionReady(uint32 session_id);
95 void OnSessionClosed(uint32 session_id); 95 void OnSessionClosed(uint32 session_id);
96 void OnSessionError(uint32 session_id, 96 void OnSessionError(uint32 session_id,
97 media::MediaKeys::KeyError error_code, 97 media::MediaKeys::KeyError error_code,
98 int system_code); 98 uint32 system_code);
99 99
100 // Callback to notify that a fatal error happened in |plugin_cdm_delegate_|. 100 // Callback to notify that a fatal error happened in |plugin_cdm_delegate_|.
101 // The error is terminal and |plugin_cdm_delegate_| should not be used after 101 // The error is terminal and |plugin_cdm_delegate_| should not be used after
102 // this call. 102 // this call.
103 void OnFatalPluginError(); 103 void OnFatalPluginError();
104 104
105 ContentDecryptorDelegate* CdmDelegate(); 105 ContentDecryptorDelegate* CdmDelegate();
106 106
107 base::WeakPtr<PpapiDecryptor> weak_this_; 107 base::WeakPtr<PpapiDecryptor> weak_this_;
108 108
(...skipping 16 matching lines...) Expand all
125 NewKeyCB new_video_key_cb_; 125 NewKeyCB new_video_key_cb_;
126 126
127 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_; 127 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_;
128 128
129 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); 129 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor);
130 }; 130 };
131 131
132 } // namespace content 132 } // namespace content
133 133
134 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ 134 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698