Chromium Code Reviews| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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( |
| 66 scoped_ptr<ppapi::host::ReplyMessageContext> response_context, | 66 ppapi::host::ReplyMessageContext reply_context, |
|
dmichael (off chromium)
2014/04/11 18:11:23
const &?
bbudge
2014/04/11 20:41:19
Done. However it requires making a copy so I can c
dmichael (off chromium)
2014/04/11 20:56:14
Oh, right. I think either way is fine, then. Makes
bbudge
2014/04/11 22:46:05
Went back to non-const as it's less surprising and
| |
| 67 bool success, | 67 bool success, |
| 68 const base::ListValue& response, | 68 const base::ListValue& response, |
| 69 const std::string& error); | 69 const std::string& error); |
| 70 | 70 |
| 71 // Non-owning pointer. | 71 // Non-owning pointer. |
| 72 content::RendererPpapiHost* renderer_ppapi_host_; | 72 content::RendererPpapiHost* renderer_ppapi_host_; |
| 73 // Non-owning pointer. | 73 // Non-owning pointer. |
| 74 extensions::PepperRequestProxy* pepper_request_proxy_; | 74 extensions::PepperRequestProxy* pepper_request_proxy_; |
| 75 | 75 |
| 76 base::WeakPtrFactory<PepperExtensionsCommonHost> weak_factory_; | 76 base::WeakPtrFactory<PepperExtensionsCommonHost> weak_factory_; |
| 77 | 77 |
| 78 DISALLOW_COPY_AND_ASSIGN(PepperExtensionsCommonHost); | 78 DISALLOW_COPY_AND_ASSIGN(PepperExtensionsCommonHost); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 #endif // CHROME_RENDERER_PEPPER_PEPPER_EXTENSIONS_COMMON_HOST_H_ | 81 #endif // CHROME_RENDERER_PEPPER_PEPPER_EXTENSIONS_COMMON_HOST_H_ |
| OLD | NEW |