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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | ppapi/proxy/extensions_common_resource.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_PROXY_EXTENSIONS_COMMON_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_EXTENSIONS_COMMON_RESOURCE_H_
6 #define PPAPI_PROXY_EXTENSIONS_COMMON_RESOURCE_H_ 6 #define PPAPI_PROXY_EXTENSIONS_COMMON_RESOURCE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ppapi/proxy/connection.h" 10 #include "ppapi/proxy/connection.h"
(...skipping 12 matching lines...) Expand all
23 class ExtensionsCommonResource : public PluginResource, 23 class ExtensionsCommonResource : public PluginResource,
24 public thunk::ExtensionsCommon_API { 24 public thunk::ExtensionsCommon_API {
25 public: 25 public:
26 ExtensionsCommonResource(Connection connection, PP_Instance instance); 26 ExtensionsCommonResource(Connection connection, PP_Instance instance);
27 virtual ~ExtensionsCommonResource(); 27 virtual ~ExtensionsCommonResource();
28 28
29 // Resource overrides. 29 // Resource overrides.
30 virtual thunk::ExtensionsCommon_API* AsExtensionsCommon_API() OVERRIDE; 30 virtual thunk::ExtensionsCommon_API* AsExtensionsCommon_API() OVERRIDE;
31 31
32 // ExtensionsCommon_API implementation. 32 // ExtensionsCommon_API implementation.
33 virtual int32_t Call(const std::string& request_name, 33 virtual int32_t CallRenderer(
34 const std::vector<PP_Var>& input_args, 34 const std::string& request_name,
35 const std::vector<PP_Var*>& output_args, 35 const std::vector<PP_Var>& input_args,
36 scoped_refptr<TrackedCallback> callback) OVERRIDE; 36 const std::vector<PP_Var*>& output_args,
37 virtual void Post(const std::string& request_name, 37 scoped_refptr<TrackedCallback> callback) OVERRIDE;
38 const std::vector<PP_Var>& args) OVERRIDE; 38 virtual void PostRenderer(const std::string& request_name,
39 const std::vector<PP_Var>& args) OVERRIDE;
40 virtual int32_t CallBrowser(const std::string& request_name,
41 const std::vector<PP_Var>& input_args,
42 const std::vector<PP_Var*>& output_args,
43 scoped_refptr<TrackedCallback> callback) OVERRIDE;
44 virtual void PostBrowser(const std::string& request_name,
45 const std::vector<PP_Var>& args) OVERRIDE;
39 46
40 private: 47 private:
48 int32_t CommonCall(Destination dest,
49 const std::string& request_name,
50 const std::vector<PP_Var>& input_args,
51 const std::vector<PP_Var*>& output_args,
52 scoped_refptr<TrackedCallback> callback);
53 void CommonPost(Destination dest,
54 const std::string& request_name,
55 const std::vector<PP_Var>& args);
56
41 void OnPluginMsgCallReply(const std::vector<PP_Var*>& output_args, 57 void OnPluginMsgCallReply(const std::vector<PP_Var*>& output_args,
42 scoped_refptr<TrackedCallback> callback, 58 scoped_refptr<TrackedCallback> callback,
43 const ResourceMessageReplyParams& params, 59 const ResourceMessageReplyParams& params,
44 const base::ListValue& output); 60 const base::ListValue& output);
45 61
46 DISALLOW_COPY_AND_ASSIGN(ExtensionsCommonResource); 62 DISALLOW_COPY_AND_ASSIGN(ExtensionsCommonResource);
47 }; 63 };
48 64
49 } // namespace proxy 65 } // namespace proxy
50 } // namespace ppapi 66 } // namespace ppapi
51 67
52 #endif // PPAPI_PROXY_EXTENSIONS_COMMON_RESOURCE_H_ 68 #endif // PPAPI_PROXY_EXTENSIONS_COMMON_RESOURCE_H_
OLDNEW
« 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