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

Side by Side Diff: ppapi/thunk/extensions_common_api.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 | « ppapi/proxy/extensions_common_resource.cc ('k') | ppapi/thunk/ppb_ext_alarms_thunk.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_THUNK_EXTENSIONS_COMMON_API_H_ 5 #ifndef PPAPI_THUNK_EXTENSIONS_COMMON_API_H_
6 #define PPAPI_THUNK_EXTENSIONS_COMMON_API_H_ 6 #define PPAPI_THUNK_EXTENSIONS_COMMON_API_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "ppapi/c/pp_var.h" 12 #include "ppapi/c/pp_var.h"
13 #include "ppapi/shared_impl/singleton_resource_id.h" 13 #include "ppapi/shared_impl/singleton_resource_id.h"
14 #include "ppapi/shared_impl/tracked_callback.h" 14 #include "ppapi/shared_impl/tracked_callback.h"
15 #include "ppapi/thunk/ppapi_thunk_export.h" 15 #include "ppapi/thunk/ppapi_thunk_export.h"
16 16
17 namespace ppapi { 17 namespace ppapi {
18 namespace thunk { 18 namespace thunk {
19 19
20 class PPAPI_THUNK_EXPORT ExtensionsCommon_API { 20 class PPAPI_THUNK_EXPORT ExtensionsCommon_API {
21 public: 21 public:
22 virtual ~ExtensionsCommon_API() {} 22 virtual ~ExtensionsCommon_API() {}
23 23
24 virtual int32_t Call(const std::string& request_name, 24 virtual int32_t CallRenderer(const std::string& request_name,
25 const std::vector<PP_Var>& input_args, 25 const std::vector<PP_Var>& input_args,
26 const std::vector<PP_Var*>& output_args, 26 const std::vector<PP_Var*>& output_args,
27 scoped_refptr<TrackedCallback> callback) = 0; 27 scoped_refptr<TrackedCallback> callback) = 0;
28 virtual void Post(const std::string& request_name, 28 virtual void PostRenderer(const std::string& request_name,
29 const std::vector<PP_Var>& args) = 0; 29 const std::vector<PP_Var>& args) = 0;
30 virtual int32_t CallBrowser(const std::string& request_name,
31 const std::vector<PP_Var>& input_args,
32 const std::vector<PP_Var*>& output_args,
33 scoped_refptr<TrackedCallback> callback) = 0;
34 virtual void PostBrowser(const std::string& request_name,
35 const std::vector<PP_Var>& args) = 0;
30 36
31 static const SingletonResourceID kSingletonResourceID = 37 static const SingletonResourceID kSingletonResourceID =
32 EXTENSIONS_COMMON_SINGLETON_ID; 38 EXTENSIONS_COMMON_SINGLETON_ID;
33 }; 39 };
34 40
35 } // namespace thunk 41 } // namespace thunk
36 } // namespace ppapi 42 } // namespace ppapi
37 43
38 #endif // PPAPI_THUNK_EXTENSIONS_COMMON_API_H_ 44 #endif // PPAPI_THUNK_EXTENSIONS_COMMON_API_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/extensions_common_resource.cc ('k') | ppapi/thunk/ppb_ext_alarms_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698