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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_CPP_RESOURCE_H_ 5 #ifndef PPAPI_CPP_RESOURCE_H_
6 #define PPAPI_CPP_RESOURCE_H_ 6 #define PPAPI_CPP_RESOURCE_H_
7 7
8 #include "ppapi/c/pp_resource.h" 8 #include "ppapi/c/pp_resource.h"
9 #include "ppapi/cpp/instance_handle.h" 9 #include "ppapi/cpp/instance_handle.h"
10 #include "ppapi/cpp/pass_ref.h" 10 #include "ppapi/cpp/pass_ref.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 private: 84 private:
85 PP_Resource pp_resource_; 85 PP_Resource pp_resource_;
86 }; 86 };
87 87
88 } // namespace pp 88 } // namespace pp
89 89
90 inline bool operator==(const pp::Resource& lhs, const pp::Resource& rhs) { 90 inline bool operator==(const pp::Resource& lhs, const pp::Resource& rhs) {
91 return lhs.pp_resource() == rhs.pp_resource(); 91 return lhs.pp_resource() == rhs.pp_resource();
92 } 92 }
93 93
94 inline bool operator!=(const pp::Resource& lhs, const pp::Resource& rhs) {
95 return !(lhs == rhs);
96 }
97
94 #endif // PPAPI_CPP_RESOURCE_H_ 98 #endif // PPAPI_CPP_RESOURCE_H_
OLDNEW
« 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