OLD | NEW |
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_PPP_INSTANCE_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPP_INSTANCE_PROXY_H_ |
6 #define PPAPI_PROXY_PPP_INSTANCE_PROXY_H_ | 6 #define PPAPI_PROXY_PPP_INSTANCE_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_resource.h" | 13 #include "ppapi/c/pp_resource.h" |
14 #include "ppapi/c/pp_var.h" | 14 #include "ppapi/c/pp_var.h" |
15 #include "ppapi/proxy/interface_proxy.h" | 15 #include "ppapi/proxy/interface_proxy.h" |
16 #include "ppapi/shared_impl/host_resource.h" | 16 #include "ppapi/shared_impl/host_resource.h" |
17 #include "ppapi/shared_impl/ppp_instance_combined.h" | 17 #include "ppapi/shared_impl/ppp_instance_combined.h" |
18 | 18 |
19 struct PP_Rect; | 19 struct PP_Rect; |
20 | 20 |
21 namespace ppapi { | 21 namespace ppapi { |
22 namespace proxy { | 22 namespace proxy { |
23 | 23 |
24 class SerializedVarReturnValue; | |
25 | |
26 class PPP_Instance_Proxy : public InterfaceProxy { | 24 class PPP_Instance_Proxy : public InterfaceProxy { |
27 public: | 25 public: |
28 PPP_Instance_Proxy(Dispatcher* dispatcher); | 26 explicit PPP_Instance_Proxy(Dispatcher* dispatcher); |
29 virtual ~PPP_Instance_Proxy(); | 27 virtual ~PPP_Instance_Proxy(); |
30 | 28 |
31 // Return the info for the 1.0 (latest, canonical) version of the interface. | 29 // Return the info for the 1.0 (latest, canonical) version of the interface. |
32 static const Info* GetInfo1_0(); | 30 static const Info* GetInfo1_0(); |
33 | 31 |
34 PPP_Instance_Combined* ppp_instance_target() const { | 32 PPP_Instance_Combined* ppp_instance_target() const { |
35 return combined_interface_.get(); | 33 return combined_interface_.get(); |
36 } | 34 } |
37 | 35 |
38 // InterfaceProxy implementation. | 36 // InterfaceProxy implementation. |
(...skipping 15 matching lines...) Expand all Loading... |
54 void OnMsgHandleDocumentLoad(PP_Instance instance, | 52 void OnMsgHandleDocumentLoad(PP_Instance instance, |
55 const HostResource& url_loader, | 53 const HostResource& url_loader, |
56 PP_Bool* result); | 54 PP_Bool* result); |
57 scoped_ptr<PPP_Instance_Combined> combined_interface_; | 55 scoped_ptr<PPP_Instance_Combined> combined_interface_; |
58 }; | 56 }; |
59 | 57 |
60 } // namespace proxy | 58 } // namespace proxy |
61 } // namespace ppapi | 59 } // namespace ppapi |
62 | 60 |
63 #endif // PPAPI_PROXY_PPP_INSTANCE_PROXY_H_ | 61 #endif // PPAPI_PROXY_PPP_INSTANCE_PROXY_H_ |
OLD | NEW |