Chromium Code Reviews| Index: chrome/browser/media/encrypted_media_message_filter_android.h |
| diff --git a/chrome/browser/media/encrypted_media_message_filter_android.h b/chrome/browser/media/encrypted_media_message_filter_android.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..87dae69e209e3079bdcfa7efeab70f4d4bde3013 |
| --- /dev/null |
| +++ b/chrome/browser/media/encrypted_media_message_filter_android.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_MEDIA_ENCRYPTED_MEDIA_MESSAGE_FILTER_ANDROID_H_ |
| +#define CHROME_BROWSER_MEDIA_ENCRYPTED_MEDIA_MESSAGE_FILTER_ANDROID_H_ |
| + |
| +#include <vector> |
| + |
| +#include "base/basictypes.h" |
| +#include "content/public/browser/browser_message_filter.h" |
| + |
| +struct SupportedKeySystem; |
| + |
| +namespace chrome { |
| + |
| +// Message filter for EME on android. It is responsible for getting the |
| +// canPlayType information and pass it back to renderer. |
|
ddorwin
2013/09/16 17:58:10
Try to avoid canPlayType references, since that is
qinmin
2013/09/17 19:21:06
Done.
|
| +class EncryptedMediaMessageFilterAndroid |
| + : public content::BrowserMessageFilter { |
| + public: |
| + EncryptedMediaMessageFilterAndroid(); |
| + |
| + private: |
| + virtual ~EncryptedMediaMessageFilterAndroid(); |
| + |
| + // BrowserMessageFilter implementation. |
| + virtual bool OnMessageReceived(const IPC::Message& message, |
| + bool* message_was_ok) OVERRIDE; |
| + |
| + // Retrieve the supported key system. |
|
ddorwin
2013/09/16 17:58:10
system_s_
qinmin
2013/09/17 19:21:06
Done.
|
| + void OnGetSupportedKeySystems(std::vector<SupportedKeySystem>* result); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(EncryptedMediaMessageFilterAndroid); |
| +}; |
| + |
| +} // namespace chrome |
| + |
| +#endif // CHROME_BROWSER_MEDIA_ENCRYPTED_MEDIA_MESSAGE_FILTER_ANDROID_H_ |