summaryrefslogtreecommitdiffstats
path: root/remoting/client/plugin/pepper_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/client/plugin/pepper_util.h')
-rw-r--r--remoting/client/plugin/pepper_util.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/remoting/client/plugin/pepper_util.h b/remoting/client/plugin/pepper_util.h
index 90dbeb3..80ab630 100644
--- a/remoting/client/plugin/pepper_util.h
+++ b/remoting/client/plugin/pepper_util.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.
@@ -12,12 +12,10 @@
namespace remoting {
-// Function for adapting a Chromium base::Closure to a PP_CompletionCallback
-// friendly function. The base::Closure object should be a dynamically
-// allocated copy of the result from base::Bind(). It should be passed as
-// |user_data|. This function will invoke base::Closure::Run() on
-// |user_data| when called, and then delete |user_data|.
-void CompletionCallbackClosureAdapter(void* user_data, int32_t not_used);
+// Adapts a base::Callback to a pp::CompletionCallback, which may be passed to
+// exactly one Pepper API. If the adapted callback is not used then a copy of
+// |callback| will be leaked, including references & passed values bound to it.
+pp::CompletionCallback PpCompletionCallback(base::Callback<void(int)> callback);
} // namespace remoting