OLD | NEW |
1 /* -*- c++ -*- */ | 1 /* -*- c++ -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 * Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 // A class containing information regarding a socket connection to a | 8 // A class containing information regarding a socket connection to a |
9 // service runtime instance. | 9 // service runtime instance. |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 class Plugin; | 29 class Plugin; |
30 class SelLdrLauncherChrome; | 30 class SelLdrLauncherChrome; |
31 class SrpcClient; | 31 class SrpcClient; |
32 class ServiceRuntime; | 32 class ServiceRuntime; |
33 | 33 |
34 // Struct of params used by StartSelLdr. Use a struct so that callback | 34 // Struct of params used by StartSelLdr. Use a struct so that callback |
35 // creation templates aren't overwhelmed with too many parameters. | 35 // creation templates aren't overwhelmed with too many parameters. |
36 struct SelLdrStartParams { | 36 struct SelLdrStartParams { |
37 SelLdrStartParams(const std::string& url, | 37 SelLdrStartParams(const std::string& url, |
38 const PP_NaClFileInfo& file_info, | 38 const PP_NaClFileInfo& file_info, |
| 39 PP_NaClResourceFileHandle* resource_file_handles, |
| 40 uint32_t resource_file_handles_len, |
39 PP_NaClAppProcessType process_type) | 41 PP_NaClAppProcessType process_type) |
40 : url(url), | 42 : url(url), |
41 file_info(file_info), | 43 file_info(file_info), |
42 process_type(process_type) { | 44 resource_file_handles(resource_file_handles), |
43 } | 45 resource_file_handles_len(resource_file_handles_len), |
| 46 process_type(process_type) {} |
44 std::string url; | 47 std::string url; |
45 PP_NaClFileInfo file_info; | 48 PP_NaClFileInfo file_info; |
| 49 PP_NaClResourceFileHandle* resource_file_handles; |
| 50 uint32_t resource_file_handles_len; |
46 PP_NaClAppProcessType process_type; | 51 PP_NaClAppProcessType process_type; |
47 }; | 52 }; |
48 | 53 |
49 // Callback resources are essentially our continuation state. | 54 // Callback resources are essentially our continuation state. |
50 struct OpenManifestEntryResource { | 55 struct OpenManifestEntryResource { |
51 public: | 56 public: |
52 OpenManifestEntryResource(const std::string& target_url, | 57 OpenManifestEntryResource(const std::string& target_url, |
53 struct NaClFileInfo* finfo, | 58 struct NaClFileInfo* finfo, |
54 bool* op_complete) | 59 bool* op_complete) |
55 : url(target_url), | 60 : url(target_url), |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 bool start_sel_ldr_done_; | 199 bool start_sel_ldr_done_; |
195 bool start_nexe_done_; | 200 bool start_nexe_done_; |
196 bool nexe_started_ok_; | 201 bool nexe_started_ok_; |
197 | 202 |
198 NaClHandle bootstrap_channel_; | 203 NaClHandle bootstrap_channel_; |
199 }; | 204 }; |
200 | 205 |
201 } // namespace plugin | 206 } // namespace plugin |
202 | 207 |
203 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SERVICE_RUNTIME_H_ | 208 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SERVICE_RUNTIME_H_ |
OLD | NEW |