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

Unified Diff: ppapi/proxy/extensions_common_resource.h

Issue 15039008: Add browser resource host for Apps v2 APIs in Pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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 | « chrome/chrome_browser.gypi ('k') | ppapi/proxy/extensions_common_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/extensions_common_resource.h
diff --git a/ppapi/proxy/extensions_common_resource.h b/ppapi/proxy/extensions_common_resource.h
index 83a2667ca9f8b4ee1edea06528f7e48876218c21..b3ec366a0d9761c9effaf53dc95812b30e9e632d 100644
--- a/ppapi/proxy/extensions_common_resource.h
+++ b/ppapi/proxy/extensions_common_resource.h
@@ -30,14 +30,30 @@ class ExtensionsCommonResource : public PluginResource,
virtual thunk::ExtensionsCommon_API* AsExtensionsCommon_API() OVERRIDE;
// ExtensionsCommon_API implementation.
- virtual int32_t Call(const std::string& request_name,
- const std::vector<PP_Var>& input_args,
- const std::vector<PP_Var*>& output_args,
- scoped_refptr<TrackedCallback> callback) OVERRIDE;
- virtual void Post(const std::string& request_name,
- const std::vector<PP_Var>& args) OVERRIDE;
+ virtual int32_t CallRenderer(
+ const std::string& request_name,
+ const std::vector<PP_Var>& input_args,
+ const std::vector<PP_Var*>& output_args,
+ scoped_refptr<TrackedCallback> callback) OVERRIDE;
+ virtual void PostRenderer(const std::string& request_name,
+ const std::vector<PP_Var>& args) OVERRIDE;
+ virtual int32_t CallBrowser(const std::string& request_name,
+ const std::vector<PP_Var>& input_args,
+ const std::vector<PP_Var*>& output_args,
+ scoped_refptr<TrackedCallback> callback) OVERRIDE;
+ virtual void PostBrowser(const std::string& request_name,
+ const std::vector<PP_Var>& args) OVERRIDE;
private:
+ int32_t CommonCall(Destination dest,
+ const std::string& request_name,
+ const std::vector<PP_Var>& input_args,
+ const std::vector<PP_Var*>& output_args,
+ scoped_refptr<TrackedCallback> callback);
+ void CommonPost(Destination dest,
+ const std::string& request_name,
+ const std::vector<PP_Var>& args);
+
void OnPluginMsgCallReply(const std::vector<PP_Var*>& output_args,
scoped_refptr<TrackedCallback> callback,
const ResourceMessageReplyParams& params,
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | ppapi/proxy/extensions_common_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698