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

Unified Diff: ppapi/thunk/common.cc

Issue 9113044: Convert to new enter method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: PATCH DESCRIPTIONS ARE A STUPID WASTE OF TIME Created 8 years, 11 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/common.h ('k') | ppapi/thunk/enter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/common.cc
diff --git a/ppapi/thunk/common.cc b/ppapi/thunk/common.cc
deleted file mode 100644
index 9a952a2e1aeae7c0f8cc9141c9b40458f5e049c7..0000000000000000000000000000000000000000
--- a/ppapi/thunk/common.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2011 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.
-
-#include "ppapi/thunk/common.h"
-
-#include "base/bind.h"
-#include "base/message_loop.h"
-#include "ppapi/c/pp_errors.h"
-
-namespace ppapi {
-namespace thunk {
-
-int32_t MayForceCallback(PP_CompletionCallback callback, int32_t result) {
- if (result == PP_OK_COMPLETIONPENDING)
- return result;
-
- if (callback.func == NULL ||
- (callback.flags & PP_COMPLETIONCALLBACK_FLAG_OPTIONAL) != 0)
- return result;
-
- // TODO(polina): make this work off the main thread as well
- // (At this point this should not be an issue because PPAPI is only supported
- // on the main thread).
- MessageLoop::current()->PostTask(FROM_HERE, base::Bind(
- callback.func, callback.user_data, result));
- return PP_OK_COMPLETIONPENDING;
-}
-
-} // namespace thunk
-} // namespace ppapi
« no previous file with comments | « ppapi/thunk/common.h ('k') | ppapi/thunk/enter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698