| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_NACL_RENDERER_NEXE_LOAD_MANAGER_H_ | 5 #ifndef COMPONENTS_NACL_RENDERER_NEXE_LOAD_MANAGER_H_ |
| 6 #define COMPONENTS_NACL_RENDERER_NEXE_LOAD_MANAGER_H_ | 6 #define COMPONENTS_NACL_RENDERER_NEXE_LOAD_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 void InitializePlugin(uint32_t argc, const char* argn[], const char* argv[]); | 83 void InitializePlugin(uint32_t argc, const char* argn[], const char* argv[]); |
| 84 | 84 |
| 85 void ReportStartupOverhead() const; | 85 void ReportStartupOverhead() const; |
| 86 | 86 |
| 87 int64_t nexe_size() const { return nexe_size_; } | 87 int64_t nexe_size() const { return nexe_size_; } |
| 88 | 88 |
| 89 bool RequestNaClManifest(const std::string& url); | 89 bool RequestNaClManifest(const std::string& url); |
| 90 void ProcessNaClManifest(const std::string& program_url); | 90 void ProcessNaClManifest(const std::string& program_url); |
| 91 | 91 |
| 92 void CloseTrustedPluginChannel(); |
| 93 |
| 92 // URL resolution support. | 94 // URL resolution support. |
| 93 // plugin_base_url is the URL used for resolving relative URLs used in | 95 // plugin_base_url is the URL used for resolving relative URLs used in |
| 94 // src="...". | 96 // src="...". |
| 95 const GURL& plugin_base_url() const { return plugin_base_url_; } | 97 const GURL& plugin_base_url() const { return plugin_base_url_; } |
| 96 | 98 |
| 97 // manifest_base_url is the URL used for resolving relative URLs mentioned | 99 // manifest_base_url is the URL used for resolving relative URLs mentioned |
| 98 // in manifest files. If the manifest is a data URI, this is an empty string | 100 // in manifest files. If the manifest is a data URI, this is an empty string |
| 99 const GURL& manifest_base_url() const { return manifest_base_url_; } | 101 const GURL& manifest_base_url() const { return manifest_base_url_; } |
| 100 | 102 |
| 101 // Returns the manifest URL passed as an argument for this plugin instance. | 103 // Returns the manifest URL passed as an argument for this plugin instance. |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 base::SharedMemoryHandle crash_info_shmem_handle_; | 190 base::SharedMemoryHandle crash_info_shmem_handle_; |
| 189 | 191 |
| 190 std::unique_ptr<TrustedPluginChannel> trusted_plugin_channel_; | 192 std::unique_ptr<TrustedPluginChannel> trusted_plugin_channel_; |
| 191 std::unique_ptr<ManifestServiceChannel> manifest_service_channel_; | 193 std::unique_ptr<ManifestServiceChannel> manifest_service_channel_; |
| 192 base::WeakPtrFactory<NexeLoadManager> weak_factory_; | 194 base::WeakPtrFactory<NexeLoadManager> weak_factory_; |
| 193 }; | 195 }; |
| 194 | 196 |
| 195 } // namespace nacl | 197 } // namespace nacl |
| 196 | 198 |
| 197 #endif // COMPONENTS_NACL_RENDERER_NEXE_LOAD_MANAGER_H_ | 199 #endif // COMPONENTS_NACL_RENDERER_NEXE_LOAD_MANAGER_H_ |
| OLD | NEW |