OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 27 matching lines...) Expand all Loading... |
38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
39 | 39 |
40 namespace WebCore { | 40 namespace WebCore { |
41 | 41 |
42 class ContentDecryptionModuleSession; | 42 class ContentDecryptionModuleSession; |
43 class ContentDecryptionModuleSessionClient; | 43 class ContentDecryptionModuleSessionClient; |
44 | 44 |
45 class PLATFORM_EXPORT ContentDecryptionModule { | 45 class PLATFORM_EXPORT ContentDecryptionModule { |
46 WTF_MAKE_NONCOPYABLE(ContentDecryptionModule); | 46 WTF_MAKE_NONCOPYABLE(ContentDecryptionModule); |
47 public: | 47 public: |
48 static bool supportsKeySystem(const String&); | |
49 static PassOwnPtr<ContentDecryptionModule> create(const String& keySystem); | 48 static PassOwnPtr<ContentDecryptionModule> create(const String& keySystem); |
50 | 49 |
51 ContentDecryptionModule(PassOwnPtr<blink::WebContentDecryptionModule>); | 50 ContentDecryptionModule(PassOwnPtr<blink::WebContentDecryptionModule>); |
52 ~ContentDecryptionModule(); | 51 ~ContentDecryptionModule(); |
53 | 52 |
54 // ContentDecryptionModule | 53 // ContentDecryptionModule |
55 bool supportsMIMEType(const String&); | |
56 PassOwnPtr<ContentDecryptionModuleSession> createSession(ContentDecryptionMo
duleSessionClient*); | 54 PassOwnPtr<ContentDecryptionModuleSession> createSession(ContentDecryptionMo
duleSessionClient*); |
57 | 55 |
58 blink::WebContentDecryptionModule* contentDecryptionModule() { return m_cdm.
get(); } | 56 blink::WebContentDecryptionModule* contentDecryptionModule() { return m_cdm.
get(); } |
59 | 57 |
60 private: | 58 private: |
61 OwnPtr<blink::WebContentDecryptionModule> m_cdm; | 59 OwnPtr<blink::WebContentDecryptionModule> m_cdm; |
62 }; | 60 }; |
63 | 61 |
64 } // namespace WebCore | 62 } // namespace WebCore |
65 | 63 |
66 #endif // ContentDecryptionModule_h | 64 #endif // ContentDecryptionModule_h |
OLD | NEW |