Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Side by Side Diff: Source/platform/ContentDecryptionModuleResult.h

Issue 1249913002: Make ContentDecryptionModuleResult cross-thread destructible. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use CrossThreadPersistent<> instead Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/platform/heap/Handle.h » ('j') | public/platform/WebPrivatePtr.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/platform/heap/Handle.h » ('j') | public/platform/WebPrivatePtr.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698