OLD | NEW |
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 CHROME_RENDERER_PEPPER_PEPPER_EXTENSIONS_COMMON_HOST_H_ | 5 #ifndef CHROME_RENDERER_PEPPER_PEPPER_EXTENSIONS_COMMON_HOST_H_ |
6 #define CHROME_RENDERER_PEPPER_PEPPER_EXTENSIONS_COMMON_HOST_H_ | 6 #define CHROME_RENDERER_PEPPER_PEPPER_EXTENSIONS_COMMON_HOST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 extensions::PepperRequestProxy* pepper_request_proxy); | 55 extensions::PepperRequestProxy* pepper_request_proxy); |
56 | 56 |
57 int32_t OnPost(ppapi::host::HostMessageContext* context, | 57 int32_t OnPost(ppapi::host::HostMessageContext* context, |
58 const std::string& request_name, | 58 const std::string& request_name, |
59 const base::ListValue& args); | 59 const base::ListValue& args); |
60 | 60 |
61 int32_t OnCall(ppapi::host::HostMessageContext* context, | 61 int32_t OnCall(ppapi::host::HostMessageContext* context, |
62 const std::string& request_name, | 62 const std::string& request_name, |
63 const base::ListValue& args); | 63 const base::ListValue& args); |
64 | 64 |
65 void OnResponseReceived( | 65 void OnResponseReceived(ppapi::host::ReplyMessageContext reply_context, |
66 scoped_ptr<ppapi::host::ReplyMessageContext> response_context, | 66 bool success, |
67 bool success, | 67 const base::ListValue& response, |
68 const base::ListValue& response, | 68 const std::string& error); |
69 const std::string& error); | |
70 | 69 |
71 // Non-owning pointer. | 70 // Non-owning pointer. |
72 content::RendererPpapiHost* renderer_ppapi_host_; | 71 content::RendererPpapiHost* renderer_ppapi_host_; |
73 // Non-owning pointer. | 72 // Non-owning pointer. |
74 extensions::PepperRequestProxy* pepper_request_proxy_; | 73 extensions::PepperRequestProxy* pepper_request_proxy_; |
75 | 74 |
76 base::WeakPtrFactory<PepperExtensionsCommonHost> weak_factory_; | 75 base::WeakPtrFactory<PepperExtensionsCommonHost> weak_factory_; |
77 | 76 |
78 DISALLOW_COPY_AND_ASSIGN(PepperExtensionsCommonHost); | 77 DISALLOW_COPY_AND_ASSIGN(PepperExtensionsCommonHost); |
79 }; | 78 }; |
80 | 79 |
81 #endif // CHROME_RENDERER_PEPPER_PEPPER_EXTENSIONS_COMMON_HOST_H_ | 80 #endif // CHROME_RENDERER_PEPPER_PEPPER_EXTENSIONS_COMMON_HOST_H_ |
OLD | NEW |