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

Side by Side Diff: content/renderer/media/crypto/ppapi_decryptor.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, 6 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 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 const media::SessionErrorCB& session_error_cb); 86 const media::SessionErrorCB& session_error_cb);
87 87
88 void ReportFailureToCallPlugin(uint32 session_id); 88 void ReportFailureToCallPlugin(uint32 session_id);
89 89
90 void OnDecoderInitialized(StreamType stream_type, bool success); 90 void OnDecoderInitialized(StreamType stream_type, bool success);
91 91
92 // Callbacks for |plugin_cdm_delegate_| to fire session events. 92 // Callbacks for |plugin_cdm_delegate_| to fire session events.
93 void OnSessionCreated(uint32 session_id, const std::string& web_session_id); 93 void OnSessionCreated(uint32 session_id, const std::string& web_session_id);
94 void OnSessionMessage(uint32 session_id, 94 void OnSessionMessage(uint32 session_id,
95 const std::vector<uint8>& message, 95 const std::vector<uint8>& message,
96 const std::string& destination_url); 96 const GURL& destination_url);
97 void OnSessionReady(uint32 session_id); 97 void OnSessionReady(uint32 session_id);
98 void OnSessionClosed(uint32 session_id); 98 void OnSessionClosed(uint32 session_id);
99 void OnSessionError(uint32 session_id, 99 void OnSessionError(uint32 session_id,
100 media::MediaKeys::KeyError error_code, 100 media::MediaKeys::KeyError error_code,
101 uint32 system_code); 101 uint32 system_code);
102 102
103 // Callback to notify that a fatal error happened in |plugin_cdm_delegate_|. 103 // Callback to notify that a fatal error happened in |plugin_cdm_delegate_|.
104 // The error is terminal and |plugin_cdm_delegate_| should not be used after 104 // The error is terminal and |plugin_cdm_delegate_| should not be used after
105 // this call. 105 // this call.
106 void OnFatalPluginError(); 106 void OnFatalPluginError();
(...skipping 20 matching lines...) Expand all
127 127
128 // NOTE: Weak pointers must be invalidated before all other member variables. 128 // NOTE: Weak pointers must be invalidated before all other member variables.
129 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_; 129 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_;
130 130
131 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); 131 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor);
132 }; 132 };
133 133
134 } // namespace content 134 } // namespace content
135 135
136 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ 136 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_
OLDNEW
« no previous file with comments | « content/renderer/media/cdm_session_adapter.cc ('k') | content/renderer/media/crypto/ppapi_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698