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

Unified Diff: ppapi/shared_impl/ppb_video_decoder_shared.h

Issue 10081020: PPAPI: Make blocking completion callbacks work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export AssertLockHeld Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/ppb_video_capture_shared.cc ('k') | ppapi/shared_impl/ppb_video_decoder_shared.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_video_decoder_shared.h
diff --git a/ppapi/shared_impl/ppb_video_decoder_shared.h b/ppapi/shared_impl/ppb_video_decoder_shared.h
index 9f1aa46fcebb16aec298ab1740bab2eb3ef94207..618b6d03dbb4b6309bd2d431eb42e7140f16b7a9 100644
--- a/ppapi/shared_impl/ppb_video_decoder_shared.h
+++ b/ppapi/shared_impl/ppb_video_decoder_shared.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -40,10 +40,10 @@ class PPAPI_SHARED_EXPORT PPB_VideoDecoder_Shared
virtual void Destroy() OVERRIDE;
protected:
- bool SetFlushCallback(PP_CompletionCallback callback);
- bool SetResetCallback(PP_CompletionCallback callback);
- bool SetBitstreamBufferCallback(
- int32 bitstream_buffer_id, PP_CompletionCallback callback);
+ bool SetFlushCallback(scoped_refptr<TrackedCallback> callback);
+ bool SetResetCallback(scoped_refptr<TrackedCallback> callback);
+ bool SetBitstreamBufferCallback(int32 bitstream_buffer_id,
+ scoped_refptr<TrackedCallback> callback);
void RunFlushCallback(int32 result);
void RunResetCallback(int32 result);
« no previous file with comments | « ppapi/shared_impl/ppb_video_capture_shared.cc ('k') | ppapi/shared_impl/ppb_video_decoder_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698