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

Side by Side Diff: ppapi/proxy/ppb_var_deprecated_proxy.h

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years 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
« no previous file with comments | « ppapi/proxy/ppb_testing_proxy.cc ('k') | ppapi/proxy/ppb_var_deprecated_proxy.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) 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_PROXY_PPB_VAR_DEPRECATED_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_VAR_DEPRECATED_PROXY_H_
6 #define PPAPI_PROXY_PPB_VAR_DEPRECATED_PROXY_H_ 6 #define PPAPI_PROXY_PPB_VAR_DEPRECATED_PROXY_H_
7 7
8 #include <stdint.h>
9
8 #include <vector> 10 #include <vector>
9 11
12 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
11 #include "ppapi/c/pp_instance.h" 14 #include "ppapi/c/pp_instance.h"
12 #include "ppapi/proxy/interface_proxy.h" 15 #include "ppapi/proxy/interface_proxy.h"
13 16
14 struct PPB_Var_Deprecated; 17 struct PPB_Var_Deprecated;
15 18
16 namespace ppapi { 19 namespace ppapi {
17 namespace proxy { 20 namespace proxy {
18 21
19 class SerializedVar; 22 class SerializedVar;
20 class SerializedVarReceiveInput; 23 class SerializedVarReceiveInput;
21 class SerializedVarVectorOutParam; 24 class SerializedVarVectorOutParam;
22 class SerializedVarVectorReceiveInput; 25 class SerializedVarVectorReceiveInput;
23 class SerializedVarOutParam; 26 class SerializedVarOutParam;
24 class SerializedVarReturnValue; 27 class SerializedVarReturnValue;
25 28
26 class PPB_Var_Deprecated_Proxy : public InterfaceProxy { 29 class PPB_Var_Deprecated_Proxy : public InterfaceProxy {
27 public: 30 public:
28 explicit PPB_Var_Deprecated_Proxy(Dispatcher* dispatcher); 31 explicit PPB_Var_Deprecated_Proxy(Dispatcher* dispatcher);
29 virtual ~PPB_Var_Deprecated_Proxy(); 32 virtual ~PPB_Var_Deprecated_Proxy();
30 33
31 static const PPB_Var_Deprecated* GetProxyInterface(); 34 static const PPB_Var_Deprecated* GetProxyInterface();
32 35
33 // InterfaceProxy implementation. 36 // InterfaceProxy implementation.
34 virtual bool OnMessageReceived(const IPC::Message& msg); 37 virtual bool OnMessageReceived(const IPC::Message& msg);
35 38
36 private: 39 private:
37 // Message handlers. 40 // Message handlers.
38 void OnMsgAddRefObject(int64 object_id); 41 void OnMsgAddRefObject(int64_t object_id);
39 void OnMsgReleaseObject(int64 object_id); 42 void OnMsgReleaseObject(int64_t object_id);
40 void OnMsgHasProperty(SerializedVarReceiveInput var, 43 void OnMsgHasProperty(SerializedVarReceiveInput var,
41 SerializedVarReceiveInput name, 44 SerializedVarReceiveInput name,
42 SerializedVarOutParam exception, 45 SerializedVarOutParam exception,
43 PP_Bool* result); 46 PP_Bool* result);
44 void OnMsgHasMethodDeprecated(SerializedVarReceiveInput var, 47 void OnMsgHasMethodDeprecated(SerializedVarReceiveInput var,
45 SerializedVarReceiveInput name, 48 SerializedVarReceiveInput name,
46 SerializedVarOutParam exception, 49 SerializedVarOutParam exception,
47 PP_Bool* result); 50 PP_Bool* result);
48 void OnMsgGetProperty(SerializedVarReceiveInput var, 51 void OnMsgGetProperty(SerializedVarReceiveInput var,
49 SerializedVarReceiveInput name, 52 SerializedVarReceiveInput name,
(...skipping 20 matching lines...) Expand all
70 void OnMsgCallDeprecated(SerializedVarReceiveInput object, 73 void OnMsgCallDeprecated(SerializedVarReceiveInput object,
71 SerializedVarReceiveInput method_name, 74 SerializedVarReceiveInput method_name,
72 SerializedVarVectorReceiveInput arg_vector, 75 SerializedVarVectorReceiveInput arg_vector,
73 SerializedVarOutParam exception, 76 SerializedVarOutParam exception,
74 SerializedVarReturnValue result); 77 SerializedVarReturnValue result);
75 void OnMsgConstruct(SerializedVarReceiveInput var, 78 void OnMsgConstruct(SerializedVarReceiveInput var,
76 SerializedVarVectorReceiveInput arg_vector, 79 SerializedVarVectorReceiveInput arg_vector,
77 SerializedVarOutParam exception, 80 SerializedVarOutParam exception,
78 SerializedVarReturnValue result); 81 SerializedVarReturnValue result);
79 void OnMsgIsInstanceOfDeprecated(SerializedVarReceiveInput var, 82 void OnMsgIsInstanceOfDeprecated(SerializedVarReceiveInput var,
80 int64 ppp_class, 83 int64_t ppp_class,
81 int64* ppp_class_data, 84 int64_t* ppp_class_data,
82 PP_Bool* result); 85 PP_Bool* result);
83 void OnMsgCreateObjectDeprecated(PP_Instance instance, 86 void OnMsgCreateObjectDeprecated(PP_Instance instance,
84 int64 ppp_class, 87 int64_t ppp_class,
85 int64 ppp_class_data, 88 int64_t ppp_class_data,
86 SerializedVarReturnValue result); 89 SerializedVarReturnValue result);
87 90
88 // Call in the host for messages that can be reentered. 91 // Call in the host for messages that can be reentered.
89 void SetAllowPluginReentrancy(); 92 void SetAllowPluginReentrancy();
90 93
91 void DoReleaseObject(int64 object_id); 94 void DoReleaseObject(int64_t object_id);
92 95
93 const PPB_Var_Deprecated* ppb_var_impl_; 96 const PPB_Var_Deprecated* ppb_var_impl_;
94 97
95 base::WeakPtrFactory<PPB_Var_Deprecated_Proxy> task_factory_; 98 base::WeakPtrFactory<PPB_Var_Deprecated_Proxy> task_factory_;
96 99
97 DISALLOW_COPY_AND_ASSIGN(PPB_Var_Deprecated_Proxy); 100 DISALLOW_COPY_AND_ASSIGN(PPB_Var_Deprecated_Proxy);
98 }; 101 };
99 102
100 } // namespace proxy 103 } // namespace proxy
101 } // namespace ppapi 104 } // namespace ppapi
102 105
103 #endif // PPAPI_PROXY_PPB_VAR_DEPRECATED_PROXY_H_ 106 #endif // PPAPI_PROXY_PPB_VAR_DEPRECATED_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_testing_proxy.cc ('k') | ppapi/proxy/ppb_var_deprecated_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698