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

Side by Side Diff: content/renderer/pepper/content_decryptor_delegate.h

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun Created 7 years, 5 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
« no previous file with comments | « content/renderer/pepper/common.h ('k') | content/renderer/pepper/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 CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_CONTENT_DECRYPTOR_DELEGATE_H_ 6 #define CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "media/base/decryptor.h" 15 #include "media/base/decryptor.h"
16 #include "media/base/media_keys.h" 16 #include "media/base/media_keys.h"
17 #include "media/base/sample_format.h" 17 #include "media/base/sample_format.h"
18 #include "ppapi/c/private/pp_content_decryptor.h" 18 #include "ppapi/c/private/pp_content_decryptor.h"
19 #include "ppapi/c/private/ppp_content_decryptor_private.h" 19 #include "ppapi/c/private/ppp_content_decryptor_private.h"
20 #include "ui/gfx/size.h" 20 #include "ui/gfx/size.h"
21 #include "webkit/plugins/webkit_plugins_export.h"
22 21
23 namespace media { 22 namespace media {
24 class AudioDecoderConfig; 23 class AudioDecoderConfig;
25 class DecoderBuffer; 24 class DecoderBuffer;
26 class VideoDecoderConfig; 25 class VideoDecoderConfig;
27 } 26 }
28 27
29 namespace webkit { 28 namespace webkit {
30 namespace ppapi { 29 namespace ppapi {
31 30
32 class PPB_Buffer_Impl; 31 class PPB_Buffer_Impl;
33 32
34 class WEBKIT_PLUGINS_EXPORT ContentDecryptorDelegate { 33 class ContentDecryptorDelegate {
35 public: 34 public:
36 // ContentDecryptorDelegate does not take ownership of 35 // ContentDecryptorDelegate does not take ownership of
37 // |plugin_decryption_interface|. Therefore |plugin_decryption_interface| 36 // |plugin_decryption_interface|. Therefore |plugin_decryption_interface|
38 // must outlive this object. 37 // must outlive this object.
39 ContentDecryptorDelegate( 38 ContentDecryptorDelegate(
40 PP_Instance pp_instance, 39 PP_Instance pp_instance,
41 const PPP_ContentDecryptor_Private* plugin_decryption_interface); 40 const PPP_ContentDecryptor_Private* plugin_decryption_interface);
41 ~ContentDecryptorDelegate();
42 42
43 void Initialize(const std::string& key_system); 43 void Initialize(const std::string& key_system);
44 44
45 void SetKeyEventCallbacks(const media::KeyAddedCB& key_added_cb, 45 void SetKeyEventCallbacks(const media::KeyAddedCB& key_added_cb,
46 const media::KeyErrorCB& key_error_cb, 46 const media::KeyErrorCB& key_error_cb,
47 const media::KeyMessageCB& key_message_cb); 47 const media::KeyMessageCB& key_message_cb);
48 48
49 // Provides access to PPP_ContentDecryptor_Private. 49 // Provides access to PPP_ContentDecryptor_Private.
50 bool GenerateKeyRequest(const std::string& type, 50 bool GenerateKeyRequest(const std::string& type,
51 const uint8* init_data, 51 const uint8* init_data,
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 int audio_samples_per_second_; 185 int audio_samples_per_second_;
186 int audio_channel_count_; 186 int audio_channel_count_;
187 int audio_bytes_per_frame_; 187 int audio_bytes_per_frame_;
188 188
189 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); 189 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate);
190 }; 190 };
191 191
192 } // namespace ppapi 192 } // namespace ppapi
193 } // namespace webkit 193 } // namespace webkit
194 194
195 #endif // WEBKIT_PLUGINS_PPAPI_CONTENT_DECRYPTOR_DELEGATE_H_ 195 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/common.h ('k') | content/renderer/pepper/content_decryptor_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698