| 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 | 7 |
| 8 #include "native_client/src/trusted/plugin/npapi/closure.h" | 8 #include "native_client/src/trusted/plugin/npapi/closure.h" |
| 9 | 9 |
| 10 #include <string.h> | 10 #include <string.h> |
| 11 | 11 |
| 12 #include "native_client/src/include/nacl_string.h" | 12 #include "native_client/src/include/nacl_string.h" |
| 13 #include "native_client/src/shared/npruntime/npmodule.h" | 13 #include "native_client/src/shared/npruntime/npmodule.h" |
| 14 #include "native_client/src/shared/platform/nacl_host_desc.h" | 14 #include "native_client/src/shared/platform/nacl_host_desc.h" |
| 15 #include "native_client/src/trusted/desc/nacl_desc_invalid.h" | 15 #include "native_client/src/trusted/desc/nacl_desc_invalid.h" |
| 16 #include "native_client/src/trusted/desc/nacl_desc_wrapper.h" | 16 #include "native_client/src/trusted/desc/nacl_desc_wrapper.h" |
| 17 #include "native_client/src/trusted/plugin/desc_based_handle.h" |
| 17 #include "native_client/src/trusted/plugin/npapi/browser_impl_npapi.h" | 18 #include "native_client/src/trusted/plugin/npapi/browser_impl_npapi.h" |
| 18 #include "native_client/src/trusted/plugin/npapi/npapi_native.h" | 19 #include "native_client/src/trusted/plugin/npapi/npapi_native.h" |
| 19 #include "native_client/src/trusted/plugin/npapi/plugin_npapi.h" | 20 #include "native_client/src/trusted/plugin/npapi/plugin_npapi.h" |
| 20 #include "native_client/src/trusted/plugin/npapi/scriptable_impl_npapi.h" | 21 #include "native_client/src/trusted/plugin/npapi/scriptable_impl_npapi.h" |
| 21 #include "native_client/src/trusted/plugin/origin.h" | 22 #include "native_client/src/trusted/plugin/origin.h" |
| 22 #include "native_client/src/trusted/plugin/srpc/desc_based_handle.h" | 23 #include "native_client/src/trusted/plugin/scriptable_handle.h" |
| 23 #include "native_client/src/trusted/plugin/srpc/scriptable_handle.h" | 24 #include "native_client/src/trusted/plugin/shared_memory.h" |
| 24 #include "native_client/src/trusted/plugin/srpc/shared_memory.h" | 25 #include "native_client/src/trusted/plugin/stream_shm_buffer.h" |
| 25 #include "native_client/src/trusted/plugin/srpc/stream_shm_buffer.h" | |
| 26 #include "native_client/src/trusted/service_runtime/include/sys/fcntl.h" | 26 #include "native_client/src/trusted/service_runtime/include/sys/fcntl.h" |
| 27 | 27 |
| 28 struct NPObject; | 28 struct NPObject; |
| 29 | 29 |
| 30 namespace plugin { | 30 namespace plugin { |
| 31 | 31 |
| 32 bool Closure::StartDownload() { | 32 bool Closure::StartDownload() { |
| 33 PLUGIN_PRINTF(("StartDownload npp_=%p, requested_url_=%s, this=%p\n", | 33 PLUGIN_PRINTF(("StartDownload npp_=%p, requested_url_=%s, this=%p\n", |
| 34 reinterpret_cast<void*>(npp_), | 34 reinterpret_cast<void*>(npp_), |
| 35 requested_url_.c_str(), | 35 requested_url_.c_str(), |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 // If the user requested a notification, invoke NPP_URLNotify. | 373 // If the user requested a notification, invoke NPP_URLNotify. |
| 374 if (call_url_notify_) { | 374 if (call_url_notify_) { |
| 375 module_->URLNotify(npp_, | 375 module_->URLNotify(npp_, |
| 376 notify_url.c_str(), | 376 notify_url.c_str(), |
| 377 notify_reason, | 377 notify_reason, |
| 378 reinterpret_cast<void*>(notify_data_)); | 378 reinterpret_cast<void*>(notify_data_)); |
| 379 } | 379 } |
| 380 } | 380 } |
| 381 | 381 |
| 382 } // namespace plugin | 382 } // namespace plugin |
| OLD | NEW |