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

Side by Side Diff: media/cdm/ppapi/external_clear_key/clear_key_cdm.h

Issue 297703002: Using GURL in place of std::string for destination_url (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 7 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
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 MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ 5 #ifndef MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_
6 #define MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ 6 #define MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 private: 70 private:
71 // Emulates a session stored for |session_id_for_emulated_loadsession_|. This 71 // Emulates a session stored for |session_id_for_emulated_loadsession_|. This
72 // is necessary since aes_decryptor.cc does not support storing sessions. 72 // is necessary since aes_decryptor.cc does not support storing sessions.
73 void LoadLoadableSession(); 73 void LoadLoadableSession();
74 74
75 // ContentDecryptionModule callbacks. 75 // ContentDecryptionModule callbacks.
76 void OnSessionCreated(uint32 session_id, const std::string& web_session_id); 76 void OnSessionCreated(uint32 session_id, const std::string& web_session_id);
77 void OnSessionMessage(uint32 session_id, 77 void OnSessionMessage(uint32 session_id,
78 const std::vector<uint8>& message, 78 const std::vector<uint8>& message,
79 const std::string& destination_url); 79 const GURL& destination_url);
80 void OnSessionReady(uint32 session_id); 80 void OnSessionReady(uint32 session_id);
81 void OnSessionClosed(uint32 session_id); 81 void OnSessionClosed(uint32 session_id);
82 void OnSessionError(uint32 session_id, 82 void OnSessionError(uint32 session_id,
83 MediaKeys::KeyError error_code, 83 MediaKeys::KeyError error_code,
84 uint32 system_code); 84 uint32 system_code);
85 85
86 // Prepares next heartbeat message and sets a timer for it. 86 // Prepares next heartbeat message and sets a timer for it.
87 void ScheduleNextHeartBeat(); 87 void ScheduleNextHeartBeat();
88 88
89 // Decrypts the |encrypted_buffer| and puts the result in |decrypted_buffer|. 89 // Decrypts the |encrypted_buffer| and puts the result in |decrypted_buffer|.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 scoped_ptr<CdmVideoDecoder> video_decoder_; 152 scoped_ptr<CdmVideoDecoder> video_decoder_;
153 153
154 scoped_ptr<FileIOTestRunner> file_io_test_runner_; 154 scoped_ptr<FileIOTestRunner> file_io_test_runner_;
155 155
156 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm); 156 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm);
157 }; 157 };
158 158
159 } // namespace media 159 } // namespace media
160 160
161 #endif // MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ 161 #endif // MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_
OLDNEW
« no previous file with comments | « media/cdm/aes_decryptor_unittest.cc ('k') | media/cdm/ppapi/external_clear_key/clear_key_cdm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698