| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "components/nacl/renderer/plugin/pnacl_resources.h" | 5 #include "components/nacl/renderer/plugin/pnacl_resources.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <vector> | 9 #include <vector> |
| 8 | 10 |
| 9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 10 #include "components/nacl/renderer/plugin/plugin.h" | 12 #include "components/nacl/renderer/plugin/plugin.h" |
| 11 #include "components/nacl/renderer/plugin/utility.h" | 13 #include "components/nacl/renderer/plugin/utility.h" |
| 12 #include "native_client/src/include/portability_io.h" | 14 #include "native_client/src/include/portability_io.h" |
| 13 #include "native_client/src/trusted/desc/nacl_desc_wrapper.h" | 15 #include "native_client/src/trusted/desc/nacl_desc_wrapper.h" |
| 14 #include "ppapi/c/pp_errors.h" | 16 #include "ppapi/c/pp_errors.h" |
| 15 | 17 |
| 16 namespace plugin { | 18 namespace plugin { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 for (ResourceType t : to_load) { | 93 for (ResourceType t : to_load) { |
| 92 plugin_->nacl_interface()->GetReadExecPnaclFd( | 94 plugin_->nacl_interface()->GetReadExecPnaclFd( |
| 93 resources_[t].tool_name.c_str(), &resources_[t].file_info); | 95 resources_[t].tool_name.c_str(), &resources_[t].file_info); |
| 94 all_valid = | 96 all_valid = |
| 95 all_valid && resources_[t].file_info.handle != PP_kInvalidFileHandle; | 97 all_valid && resources_[t].file_info.handle != PP_kInvalidFileHandle; |
| 96 } | 98 } |
| 97 return all_valid; | 99 return all_valid; |
| 98 } | 100 } |
| 99 | 101 |
| 100 } // namespace plugin | 102 } // namespace plugin |
| OLD | NEW |