OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebContentDecryptionModuleResult_h | 5 #ifndef WebContentDecryptionModuleResult_h |
6 #define WebContentDecryptionModuleResult_h | 6 #define WebContentDecryptionModuleResult_h |
7 | 7 |
8 #include "WebCommon.h" | 8 #include "WebCommon.h" |
9 #include "WebContentDecryptionModuleException.h" | 9 #include "WebContentDecryptionModuleException.h" |
10 #include "WebPrivatePtr.h" | 10 #include "WebPrivatePtr.h" |
11 | 11 |
12 namespace WebCore { | 12 namespace blink { |
13 class ContentDecryptionModuleResult; | 13 class ContentDecryptionModuleResult; |
14 } | 14 } |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
18 class WebString; | 18 class WebString; |
19 | 19 |
20 class WebContentDecryptionModuleResult { | 20 class WebContentDecryptionModuleResult { |
21 public: | 21 public: |
22 enum SessionStatus { | 22 enum SessionStatus { |
(...skipping 28 matching lines...) Expand all Loading... |
51 // pass back. | 51 // pass back. |
52 BLINK_PLATFORM_EXPORT void complete(); | 52 BLINK_PLATFORM_EXPORT void complete(); |
53 | 53 |
54 // Called when the CDM completes a session operation. | 54 // Called when the CDM completes a session operation. |
55 BLINK_PLATFORM_EXPORT void completeWithSession(SessionStatus); | 55 BLINK_PLATFORM_EXPORT void completeWithSession(SessionStatus); |
56 | 56 |
57 // Called when the operation fails. | 57 // Called when the operation fails. |
58 BLINK_PLATFORM_EXPORT void completeWithError(WebContentDecryptionModuleExcep
tion, unsigned long systemCode, const WebString& message); | 58 BLINK_PLATFORM_EXPORT void completeWithError(WebContentDecryptionModuleExcep
tion, unsigned long systemCode, const WebString& message); |
59 | 59 |
60 #if INSIDE_BLINK | 60 #if INSIDE_BLINK |
61 BLINK_PLATFORM_EXPORT explicit WebContentDecryptionModuleResult(WebCore::Con
tentDecryptionModuleResult*); | 61 BLINK_PLATFORM_EXPORT explicit WebContentDecryptionModuleResult(blink::Conte
ntDecryptionModuleResult*); |
62 #endif | 62 #endif |
63 | 63 |
64 private: | 64 private: |
65 BLINK_PLATFORM_EXPORT void reset(); | 65 BLINK_PLATFORM_EXPORT void reset(); |
66 BLINK_PLATFORM_EXPORT void assign(const WebContentDecryptionModuleResult&); | 66 BLINK_PLATFORM_EXPORT void assign(const WebContentDecryptionModuleResult&); |
67 | 67 |
68 WebPrivatePtr<WebCore::ContentDecryptionModuleResult> m_impl; | 68 WebPrivatePtr<blink::ContentDecryptionModuleResult> m_impl; |
69 }; | 69 }; |
70 | 70 |
71 } // namespace blink | 71 } // namespace blink |
72 | 72 |
73 #endif // WebContentDecryptionModuleSession_h | 73 #endif // WebContentDecryptionModuleSession_h |
OLD | NEW |