OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ | 5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ |
6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ | 6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "native_client/src/include/nacl_macros.h" | 11 #include "native_client/src/include/nacl_macros.h" |
12 #include "native_client/src/include/nacl_string.h" | 12 #include "native_client/src/include/nacl_string.h" |
13 #include "native_client/src/shared/srpc/nacl_srpc.h" | 13 #include "native_client/src/shared/srpc/nacl_srpc.h" |
14 #include "native_client/src/trusted/desc/nacl_desc_wrapper.h" | 14 #include "native_client/src/trusted/desc/nacl_desc_wrapper.h" |
15 #include "native_client/src/trusted/plugin/delayed_callback.h" | 15 #include "native_client/src/trusted/plugin/delayed_callback.h" |
16 #include "native_client/src/trusted/plugin/plugin_error.h" | 16 #include "native_client/src/trusted/plugin/plugin_error.h" |
17 | 17 #include "ppapi/utility/completion_callback_factory.h" |
18 #include "ppapi/cpp/completion_callback.h" | |
19 | 18 |
20 namespace plugin { | 19 namespace plugin { |
21 | 20 |
22 class Manifest; | 21 class Manifest; |
23 class Plugin; | 22 class Plugin; |
24 class PnaclCoordinator; | 23 class PnaclCoordinator; |
25 | 24 |
26 | 25 |
27 // Loads a list of remote resources, providing a way to get file descriptors for | 26 // Loads a list of remote resources, providing a way to get file descriptors for |
28 // thse resources. All URLs in relative to resource_base_url_. | 27 // thse resources. All URLs in relative to resource_base_url_. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // Because we may be loading multiple resources, we need a callback that | 74 // Because we may be loading multiple resources, we need a callback that |
76 // is invoked each time a resource arrives, and finally invokes | 75 // is invoked each time a resource arrives, and finally invokes |
77 // all_loaded_callback_ when done. | 76 // all_loaded_callback_ when done. |
78 nacl::scoped_ptr<DelayedCallback> delayed_callback_; | 77 nacl::scoped_ptr<DelayedCallback> delayed_callback_; |
79 // Factory for ready callbacks, etc. | 78 // Factory for ready callbacks, etc. |
80 pp::CompletionCallbackFactory<PnaclResources> callback_factory_; | 79 pp::CompletionCallbackFactory<PnaclResources> callback_factory_; |
81 }; | 80 }; |
82 | 81 |
83 } // namespace plugin; | 82 } // namespace plugin; |
84 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ | 83 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ |
OLD | NEW |