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

Side by Side Diff: content/renderer/media/android/proxy_media_keys.h

Issue 17502007: Move webkit/renderer/media/android/ to content/renderer/media/android/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix shared lib Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 WEBKIT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_
6 #define WEBKIT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "media/base/media_keys.h" 9 #include "media/base/media_keys.h"
10 10
11 namespace webkit_media { 11 namespace content {
12 12
13 class WebMediaPlayerProxyAndroid; 13 class WebMediaPlayerProxyAndroid;
14 14
15 // MediaKeys wrapper of the WebMediaPlayerProxyAndroid. 15 // MediaKeys wrapper of the WebMediaPlayerProxyAndroid.
16 // TODO(xhwang): Remove |player_id| from WebMediaPlayerProxyAndroid, make 16 // TODO(xhwang): Remove |player_id| from WebMediaPlayerProxyAndroid, make
17 // WebMediaPlayerProxyAndroid a subclass of media::MediaKeys, then remove this 17 // WebMediaPlayerProxyAndroid a subclass of media::MediaKeys, then remove this
18 // class! 18 // class!
19 class ProxyMediaKeys : public media::MediaKeys { 19 class ProxyMediaKeys : public media::MediaKeys {
20 public: 20 public:
21 ProxyMediaKeys(WebMediaPlayerProxyAndroid* proxy, int media_keys_id); 21 ProxyMediaKeys(WebMediaPlayerProxyAndroid* proxy, int media_keys_id);
22 22
23 // MediaKeys implementation. 23 // MediaKeys implementation.
24 virtual bool GenerateKeyRequest(const std::string& type, 24 virtual bool GenerateKeyRequest(const std::string& type,
25 const uint8* init_data, 25 const uint8* init_data,
26 int init_data_length) OVERRIDE; 26 int init_data_length) OVERRIDE;
27 virtual void AddKey(const uint8* key, int key_length, 27 virtual void AddKey(const uint8* key, int key_length,
28 const uint8* init_data, int init_data_length, 28 const uint8* init_data, int init_data_length,
29 const std::string& session_id) OVERRIDE; 29 const std::string& session_id) OVERRIDE;
30 virtual void CancelKeyRequest(const std::string& session_id) OVERRIDE; 30 virtual void CancelKeyRequest(const std::string& session_id) OVERRIDE;
31 31
32 private: 32 private:
33 WebMediaPlayerProxyAndroid* proxy_; 33 WebMediaPlayerProxyAndroid* proxy_;
34 int media_keys_id_; 34 int media_keys_id_;
35 35
36 DISALLOW_COPY_AND_ASSIGN (ProxyMediaKeys); 36 DISALLOW_COPY_AND_ASSIGN (ProxyMediaKeys);
37 }; 37 };
38 38
39 } // namespace webkit_media 39 } // namespace content
40 40
41 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_ 41 #endif // CONTENT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/android/media_source_delegate.cc ('k') | content/renderer/media/android/proxy_media_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698