OLD | NEW |
(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_ |
OLD | NEW |