OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebMediaPlayerEncryptedMediaClient_h | 31 #ifndef WebMediaPlayerEncryptedMediaClient_h |
32 #define WebMediaPlayerEncryptedMediaClient_h | 32 #define WebMediaPlayerEncryptedMediaClient_h |
33 | 33 |
34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
35 #include "WebEncryptedMediaTypes.h" | 35 #include "WebEncryptedMediaTypes.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class WebString; | |
40 class WebURL; | |
41 | |
42 class BLINK_PLATFORM_EXPORT WebMediaPlayerEncryptedMediaClient { | 39 class BLINK_PLATFORM_EXPORT WebMediaPlayerEncryptedMediaClient { |
43 public: | 40 public: |
44 virtual void encrypted(WebEncryptedMediaInitDataType, | 41 virtual void encrypted(WebEncryptedMediaInitDataType, |
45 const unsigned char* initData, | 42 const unsigned char* initData, |
46 unsigned initDataLength) = 0; | 43 unsigned initDataLength) = 0; |
47 virtual void didBlockPlaybackWaitingForKey() = 0; | 44 virtual void didBlockPlaybackWaitingForKey() = 0; |
48 virtual void didResumePlaybackBlockedForKey() = 0; | 45 virtual void didResumePlaybackBlockedForKey() = 0; |
49 | 46 |
50 protected: | 47 protected: |
51 ~WebMediaPlayerEncryptedMediaClient() {} | 48 ~WebMediaPlayerEncryptedMediaClient() {} |
52 }; | 49 }; |
53 | 50 |
54 } // namespace blink | 51 } // namespace blink |
55 | 52 |
56 #endif | 53 #endif |
OLD | NEW |