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

Unified Diff: ppapi/cpp/resource.h

Issue 10910099: PPAPI: Make CompletionCallbacks work right on background threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 1 month 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/cpp/completion_callback.h ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/resource.h
diff --git a/ppapi/cpp/resource.h b/ppapi/cpp/resource.h
index f21467214ff6b1852a23a40155339d1cfaa5de8a..8f5a92d2e1214815bd1762800fe39ae1b396739d 100644
--- a/ppapi/cpp/resource.h
+++ b/ppapi/cpp/resource.h
@@ -91,4 +91,8 @@ inline bool operator==(const pp::Resource& lhs, const pp::Resource& rhs) {
return lhs.pp_resource() == rhs.pp_resource();
}
+inline bool operator!=(const pp::Resource& lhs, const pp::Resource& rhs) {
+ return !(lhs == rhs);
+}
+
#endif // PPAPI_CPP_RESOURCE_H_
« no previous file with comments | « ppapi/cpp/completion_callback.h ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698