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

Unified Diff: ppapi/shared_impl/resource.h

Issue 10815073: Refactoring of new IPC-only pepper implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
Index: ppapi/shared_impl/resource.h
diff --git a/ppapi/shared_impl/resource.h b/ppapi/shared_impl/resource.h
index efe40daff329108adf70e824ed6b736dcfa1ea3c..069d4a5146344333623f6596fe6fa028bad92a07 100644
--- a/ppapi/shared_impl/resource.h
+++ b/ppapi/shared_impl/resource.h
@@ -71,6 +71,12 @@ class Message;
namespace ppapi {
+// Normally we shouldn't reply on proxy here, but this is to support
+// OnReplyReceived. See that comment.
+namespace proxy {
+class ResourceMessageReplyParams;
+}
+
// Forward declare all the resource APIs.
namespace thunk {
#define DECLARE_RESOURCE_CLASS(RESOURCE) class RESOURCE;
@@ -177,8 +183,7 @@ class PPAPI_SHARED_EXPORT Resource : public base::RefCounted<Resource> {
// (This function would make more conceptual sense on PluginResource but we
// need to call this function from general code that doesn't know how to
// distinguish the classes.)
- virtual void OnReplyReceived(int sequence,
- int32_t result,
+ virtual void OnReplyReceived(const proxy::ResourceMessageReplyParams& params,
const IPC::Message& msg);
protected:

Powered by Google App Engine
This is Rietveld 408576698