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 "ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h" | 5 #include "components/nacl/renderer/plugin/pnacl_coordinator.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <sstream> | 8 #include <sstream> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
| 11 #include "components/nacl/renderer/plugin/plugin.h" |
| 12 #include "components/nacl/renderer/plugin/plugin_error.h" |
| 13 #include "components/nacl/renderer/plugin/pnacl_translate_thread.h" |
| 14 #include "components/nacl/renderer/plugin/service_runtime.h" |
| 15 #include "components/nacl/renderer/plugin/temporary_file.h" |
11 #include "native_client/src/include/portability_io.h" | 16 #include "native_client/src/include/portability_io.h" |
12 #include "native_client/src/shared/platform/nacl_check.h" | 17 #include "native_client/src/shared/platform/nacl_check.h" |
13 #include "native_client/src/trusted/service_runtime/include/sys/stat.h" | 18 #include "native_client/src/trusted/service_runtime/include/sys/stat.h" |
14 | |
15 #include "ppapi/c/pp_bool.h" | 19 #include "ppapi/c/pp_bool.h" |
16 #include "ppapi/c/pp_errors.h" | 20 #include "ppapi/c/pp_errors.h" |
17 #include "ppapi/c/private/ppb_uma_private.h" | 21 #include "ppapi/c/private/ppb_uma_private.h" |
18 | 22 |
19 #include "ppapi/native_client/src/trusted/plugin/plugin.h" | |
20 #include "ppapi/native_client/src/trusted/plugin/plugin_error.h" | |
21 #include "ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h" | |
22 #include "ppapi/native_client/src/trusted/plugin/service_runtime.h" | |
23 #include "ppapi/native_client/src/trusted/plugin/temporary_file.h" | |
24 | |
25 namespace plugin { | 23 namespace plugin { |
26 | 24 |
27 namespace { | 25 namespace { |
28 | 26 |
29 const int32_t kSizeKBMin = 1; | 27 const int32_t kSizeKBMin = 1; |
30 const int32_t kSizeKBMax = 512*1024; // very large .pexe / .nexe. | 28 const int32_t kSizeKBMax = 512*1024; // very large .pexe / .nexe. |
31 const uint32_t kSizeKBBuckets = 100; | 29 const uint32_t kSizeKBBuckets = 100; |
32 | 30 |
33 const int32_t kRatioMin = 10; | 31 const int32_t kRatioMin = 10; |
34 const int32_t kRatioMax = 10*100; // max of 10x difference. | 32 const int32_t kRatioMax = 10*100; // max of 10x difference. |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 invalid_desc_wrapper_.get(), | 447 invalid_desc_wrapper_.get(), |
450 &error_info_, | 448 &error_info_, |
451 resources_.get(), | 449 resources_.get(), |
452 &pnacl_options_, | 450 &pnacl_options_, |
453 architecture_attributes_, | 451 architecture_attributes_, |
454 this, | 452 this, |
455 plugin_); | 453 plugin_); |
456 } | 454 } |
457 | 455 |
458 } // namespace plugin | 456 } // namespace plugin |
OLD | NEW |