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

Side by Side Diff: chrome/browser/media/encrypted_media_message_filter_android.h

Issue 23513055: Populate canPlayType to renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing commnets Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_MEDIA_ENCRYPTED_MEDIA_MESSAGE_FILTER_ANDROID_H_
6 #define CHROME_BROWSER_MEDIA_ENCRYPTED_MEDIA_MESSAGE_FILTER_ANDROID_H_
7
8 #include "base/basictypes.h"
9 #include "content/public/browser/browser_message_filter.h"
10
11 namespace android {
12 struct SupportedKeySystemRequest;
13 struct SupportedKeySystemResponse;
14 }
15
16 namespace chrome {
17
18 // Message filter for EME on android. It is responsible for getting the
19 // SupportedKeySystems information and passing it back to renderer.
20 class EncryptedMediaMessageFilterAndroid
21 : public content::BrowserMessageFilter {
22 public:
23 EncryptedMediaMessageFilterAndroid();
24
25 private:
26 virtual ~EncryptedMediaMessageFilterAndroid();
27
28 // BrowserMessageFilter implementation.
29 virtual bool OnMessageReceived(const IPC::Message& message,
30 bool* message_was_ok) OVERRIDE;
31 virtual void OverrideThreadForMessage(
32 const IPC::Message& message,
33 content::BrowserThread::ID* thread) OVERRIDE;
34
35 // Retrieve the supported key systems.
36 void OnGetSupportedKeySystems(
37 const android::SupportedKeySystemRequest& request,
38 android::SupportedKeySystemResponse* response);
39
40 DISALLOW_COPY_AND_ASSIGN(EncryptedMediaMessageFilterAndroid);
41 };
42
43 } // namespace chrome
44
45 #endif // CHROME_BROWSER_MEDIA_ENCRYPTED_MEDIA_MESSAGE_FILTER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698