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

Side by Side Diff: webkit/plugins/ppapi/content_decryptor_delegate.h

Issue 11414226: Encrypted Media: Support natural size in video decrypt-and-decode path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolve comments Created 8 years 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
« no previous file with comments | « no previous file | webkit/plugins/ppapi/content_decryptor_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_PLUGINS_PPAPI_CONTENT_DECRYPTOR_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_CONTENT_DECRYPTOR_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_CONTENT_DECRYPTOR_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_CONTENT_DECRYPTOR_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "media/base/decryptor.h" 13 #include "media/base/decryptor.h"
14 #include "ppapi/c/private/pp_content_decryptor.h" 14 #include "ppapi/c/private/pp_content_decryptor.h"
15 #include "ppapi/c/private/ppp_content_decryptor_private.h" 15 #include "ppapi/c/private/ppp_content_decryptor_private.h"
16 #include "ppapi/shared_impl/scoped_pp_resource.h" 16 #include "ppapi/shared_impl/scoped_pp_resource.h"
17 #include "ui/gfx/size.h"
17 #include "webkit/plugins/webkit_plugins_export.h" 18 #include "webkit/plugins/webkit_plugins_export.h"
18 19
19 namespace media { 20 namespace media {
20 class AudioDecoderConfig; 21 class AudioDecoderConfig;
21 class DecoderBuffer; 22 class DecoderBuffer;
22 class DecryptorClient; 23 class DecryptorClient;
23 class VideoDecoderConfig; 24 class VideoDecoderConfig;
24 } 25 }
25 26
26 namespace webkit { 27 namespace webkit {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Returns true upon success and false if any error happened. 109 // Returns true upon success and false if any error happened.
109 bool MakeMediaBufferResource(media::Decryptor::StreamType stream_type, 110 bool MakeMediaBufferResource(media::Decryptor::StreamType stream_type,
110 const uint8* data, int size, 111 const uint8* data, int size,
111 ::ppapi::ScopedPPResource* resource); 112 ::ppapi::ScopedPPResource* resource);
112 113
113 const PP_Instance pp_instance_; 114 const PP_Instance pp_instance_;
114 const PPP_ContentDecryptor_Private* const plugin_decryption_interface_; 115 const PPP_ContentDecryptor_Private* const plugin_decryption_interface_;
115 116
116 media::DecryptorClient* decryptor_client_; 117 media::DecryptorClient* decryptor_client_;
117 118
119 gfx::Size natural_size_;
120
118 // Request ID for tracking pending content decryption callbacks. 121 // Request ID for tracking pending content decryption callbacks.
119 // Note that zero indicates an invalid request ID. 122 // Note that zero indicates an invalid request ID.
120 // TODO(xhwang): Add completion callbacks for Reset/Stop and remove the use 123 // TODO(xhwang): Add completion callbacks for Reset/Stop and remove the use
121 // of request IDs. 124 // of request IDs.
122 uint32_t next_decryption_request_id_; 125 uint32_t next_decryption_request_id_;
123 126
124 uint32_t pending_audio_decrypt_request_id_; 127 uint32_t pending_audio_decrypt_request_id_;
125 media::Decryptor::DecryptCB pending_audio_decrypt_cb_; 128 media::Decryptor::DecryptCB pending_audio_decrypt_cb_;
126 129
127 uint32_t pending_video_decrypt_request_id_; 130 uint32_t pending_video_decrypt_request_id_;
(...skipping 18 matching lines...) Expand all
146 ::ppapi::ScopedPPResource video_input_resource_; 149 ::ppapi::ScopedPPResource video_input_resource_;
147 int video_input_resource_size_; 150 int video_input_resource_size_;
148 151
149 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); 152 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate);
150 }; 153 };
151 154
152 } // namespace ppapi 155 } // namespace ppapi
153 } // namespace webkit 156 } // namespace webkit
154 157
155 #endif // WEBKIT_PLUGINS_PPAPI_CONTENT_DECRYPTOR_DELEGATE_H_ 158 #endif // WEBKIT_PLUGINS_PPAPI_CONTENT_DECRYPTOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/plugins/ppapi/content_decryptor_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698