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

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

Issue 517003002: Remove RenderThreadImpl dependencies from WebMediaPlayerImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_ENCRYPTED_MEDIA_PLAYER_SUPPORT_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_CRYPTO_ENCRYPTED_MEDIA_PLAYER_SUPPORT_H_
6 #define CONTENT_RENDERER_MEDIA_CRYPTO_ENCRYPTED_MEDIA_PLAYER_SUPPORT_H_ 6 #define CONTENT_RENDERER_MEDIA_CRYPTO_ENCRYPTED_MEDIA_PLAYER_SUPPORT_H_
7 7
8 #include "media/base/decryptor.h" 8 #include "media/base/decryptor.h"
9 #include "media/base/demuxer.h" 9 #include "media/base/demuxer.h"
10 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 10 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
11 11
12 namespace blink { 12 namespace blink {
13 class WebContentDecryptionModule; 13 class WebContentDecryptionModule;
14 class WebContentDecryptionModuleResult; 14 class WebContentDecryptionModuleResult;
15 class WebLocalFrame; 15 class WebLocalFrame;
16 class WebMediaPlayerClient; 16 class WebMediaPlayerClient;
17 class WebString; 17 class WebString;
18 } 18 }
19 19
20 namespace content { 20 namespace content {
21 21
22 class EncryptedMediaPlayerSupport { 22 class EncryptedMediaPlayerSupport {
23 public: 23 public:
24 // Creates a new instance of EncryptedMediaPlayerSupport for |client|. This
25 // method must always return a valid pointer.
scherkus (not reviewing) 2014/08/28 18:36:12 is the plan to move this to media/ as well? if so
acolwell GONE FROM CHROMIUM 2014/08/28 19:07:28 Yes.
26 static scoped_ptr<EncryptedMediaPlayerSupport> Create(
27 blink::WebMediaPlayerClient* client);
28
29 EncryptedMediaPlayerSupport(); 24 EncryptedMediaPlayerSupport();
30 virtual ~EncryptedMediaPlayerSupport(); 25 virtual ~EncryptedMediaPlayerSupport();
31 26
32 // Prefixed API methods. 27 // Prefixed API methods.
33 virtual blink::WebMediaPlayer::MediaKeyException GenerateKeyRequest( 28 virtual blink::WebMediaPlayer::MediaKeyException GenerateKeyRequest(
34 blink::WebLocalFrame* frame, 29 blink::WebLocalFrame* frame,
35 const blink::WebString& key_system, 30 const blink::WebString& key_system,
36 const unsigned char* init_data, 31 const unsigned char* init_data,
37 unsigned init_data_length) = 0; 32 unsigned init_data_length) = 0;
38 33
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // and handled a decryption error. 70 // and handled a decryption error.
76 virtual void OnPipelineDecryptError() = 0; 71 virtual void OnPipelineDecryptError() = 0;
77 72
78 private: 73 private:
79 DISALLOW_COPY_AND_ASSIGN(EncryptedMediaPlayerSupport); 74 DISALLOW_COPY_AND_ASSIGN(EncryptedMediaPlayerSupport);
80 }; 75 };
81 76
82 } // namespace content 77 } // namespace content
83 78
84 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_ENCRYPTED_MEDIA_PLAYER_SUPPORT_H_ 79 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_ENCRYPTED_MEDIA_PLAYER_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698