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 ContentDecryptionModuleResult_h | 5 #ifndef ContentDecryptionModuleResult_h |
6 #define ContentDecryptionModuleResult_h | 6 #define ContentDecryptionModuleResult_h |
7 | 7 |
8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
9 #include "public/platform/WebContentDecryptionModuleException.h" | 9 #include "public/platform/WebContentDecryptionModuleException.h" |
10 #include "public/platform/WebContentDecryptionModuleResult.h" | 10 #include "public/platform/WebContentDecryptionModuleResult.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 virtual void complete() = 0; | 22 virtual void complete() = 0; |
23 virtual void completeWithContentDecryptionModule(WebContentDecryptionModule*
) = 0; | 23 virtual void completeWithContentDecryptionModule(WebContentDecryptionModule*
) = 0; |
24 virtual void completeWithSession(WebContentDecryptionModuleResult::SessionSt
atus) = 0; | 24 virtual void completeWithSession(WebContentDecryptionModuleResult::SessionSt
atus) = 0; |
25 virtual void completeWithError(WebContentDecryptionModuleException, unsigned
long systemCode, const WebString&) = 0; | 25 virtual void completeWithError(WebContentDecryptionModuleException, unsigned
long systemCode, const WebString&) = 0; |
26 | 26 |
27 WebContentDecryptionModuleResult result() | 27 WebContentDecryptionModuleResult result() |
28 { | 28 { |
29 return WebContentDecryptionModuleResult(this); | 29 return WebContentDecryptionModuleResult(this); |
30 } | 30 } |
31 | 31 |
| 32 // WebContentDecryptionModuleResult may be destructed on a thread other |
| 33 // than the Blink Oilpan thread that created it. To support that, mark |
| 34 // it as cross-thread accessible (for WebContentDecryptionModuleResult's |
| 35 // WebPrivatePtr<> to make use of.) |
| 36 CROSS_THREAD_ACCESSIBLE(); |
32 DEFINE_INLINE_VIRTUAL_TRACE() { } | 37 DEFINE_INLINE_VIRTUAL_TRACE() { } |
33 }; | 38 }; |
34 | 39 |
35 } // namespace blink | 40 } // namespace blink |
36 | 41 |
37 #endif // ContentDecryptionModuleResult_h | 42 #endif // ContentDecryptionModuleResult_h |
OLD | NEW |