| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2008 The Native Client Authors. All rights reserved. | 2 * Copyright 2008 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 // Generic and specialized closure classes. | 7 // Generic and specialized closure classes. |
| 8 // TODO(sehr): Closure support needs to be factored to be made portable. | 8 // TODO(sehr): Closure support needs to be factored to be made portable. |
| 9 | 9 |
| 10 | 10 |
| 11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NPAPI_CLOSURE_H_ | 11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NPAPI_CLOSURE_H_ |
| 12 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NPAPI_CLOSURE_H_ | 12 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NPAPI_CLOSURE_H_ |
| 13 | 13 |
| 14 #include "native_client/src/include/nacl_macros.h" | 14 #include "native_client/src/include/nacl_macros.h" |
| 15 #include "native_client/src/include/nacl_string.h" | 15 #include "native_client/src/include/nacl_string.h" |
| 16 #include "native_client/src/shared/npruntime/npmodule.h" | 16 #include "native_client/src/shared/npruntime/npmodule.h" |
| 17 #include "native_client/src/trusted/plugin/npapi/browser_impl_npapi.h" | 17 #include "native_client/src/trusted/plugin/npapi/browser_impl_npapi.h" |
| 18 #include "native_client/src/trusted/plugin/srpc/plugin.h" | 18 #include "native_client/src/trusted/plugin/plugin.h" |
| 19 | 19 |
| 20 namespace plugin { | 20 namespace plugin { |
| 21 | 21 |
| 22 class StreamShmBuffer; | 22 class StreamShmBuffer; |
| 23 | 23 |
| 24 // Closure base class. Following our C++ style rules, we have | 24 // Closure base class. Following our C++ style rules, we have |
| 25 // an explicit Run method rather than overload the operator(). | 25 // an explicit Run method rather than overload the operator(). |
| 26 // | 26 // |
| 27 // This is pretty generic, actually, and not restricted to be used for | 27 // This is pretty generic, actually, and not restricted to be used for |
| 28 // notification callbacks. | 28 // notification callbacks. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 NACL_DISALLOW_COPY_AND_ASSIGN(NpGetUrlClosure); | 99 NACL_DISALLOW_COPY_AND_ASSIGN(NpGetUrlClosure); |
| 100 nacl::NPModule* module_; | 100 nacl::NPModule* module_; |
| 101 NPP npp_; | 101 NPP npp_; |
| 102 int32_t notify_data_; | 102 int32_t notify_data_; |
| 103 bool call_url_notify_; | 103 bool call_url_notify_; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace plugin | 106 } // namespace plugin |
| 107 | 107 |
| 108 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NPAPI_CLOSURE_H_ | 108 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NPAPI_CLOSURE_H_ |
| OLD | NEW |