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

Unified Diff: ppapi/thunk/ppb_instance_api.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/thunk/ppb_host_resolver_private_thunk.cc ('k') | ppapi/thunk/ppb_layer_compositor_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_instance_api.h
diff --git a/ppapi/thunk/ppb_instance_api.h b/ppapi/thunk/ppb_instance_api.h
index 97fd0b68877a98c39e4596b9e65e0c5faf4129b0..9b4e644c581f18bb940738a4eb645863d19a80e3 100644
--- a/ppapi/thunk/ppb_instance_api.h
+++ b/ppapi/thunk/ppb_instance_api.h
@@ -5,6 +5,8 @@
#ifndef PPAPI_THUNK_INSTANCE_API_H_
#define PPAPI_THUNK_INSTANCE_API_H_
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "ppapi/c/dev/pp_print_settings_dev.h"
#include "ppapi/c/dev/ppb_console_dev.h"
#include "ppapi/c/dev/ppb_text_input_dev.h"
@@ -27,6 +29,7 @@
namespace ppapi {
+class TrackedCallback;
struct ViewData;
namespace thunk {
@@ -109,7 +112,7 @@ class PPB_Instance_API {
// MouseLock.
virtual int32_t LockMouse(PP_Instance instance,
- PP_CompletionCallback callback) = 0;
+ scoped_refptr<TrackedCallback> callback) = 0;
virtual void UnlockMouse(PP_Instance instance) = 0;
// Printing.
« no previous file with comments | « ppapi/thunk/ppb_host_resolver_private_thunk.cc ('k') | ppapi/thunk/ppb_layer_compositor_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698