| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_LOADER_NACL_LISTENER_H_ | 5 #ifndef COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ |
| 6 #define COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ | 6 #define COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // The outer sandbox on Linux and OSX prevents | 103 // The outer sandbox on Linux and OSX prevents |
| 104 // sysconf(_SC_NPROCESSORS) from working; in Windows, there are no | 104 // sysconf(_SC_NPROCESSORS) from working; in Windows, there are no |
| 105 // problems with invoking GetSystemInfo. Therefore, only in | 105 // problems with invoking GetSystemInfo. Therefore, only in |
| 106 // OS_POSIX do we need to supply the number of cores into the | 106 // OS_POSIX do we need to supply the number of cores into the |
| 107 // NaClChromeMainArgs object. | 107 // NaClChromeMainArgs object. |
| 108 int number_of_cores_; | 108 int number_of_cores_; |
| 109 #endif | 109 #endif |
| 110 | 110 |
| 111 std::unique_ptr<base::SharedMemory> crash_info_shmem_; | 111 std::unique_ptr<base::SharedMemory> crash_info_shmem_; |
| 112 | 112 |
| 113 std::unique_ptr<NaClTrustedListener> trusted_listener_; | 113 scoped_refptr<NaClTrustedListener> trusted_listener_; |
| 114 | 114 |
| 115 ResolveFileTokenCallback resolved_cb_; | 115 ResolveFileTokenCallback resolved_cb_; |
| 116 | 116 |
| 117 // Used to identify what thread we're on. | 117 // Used to identify what thread we're on. |
| 118 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 118 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| 119 | 119 |
| 120 typedef std::map< | 120 typedef std::map< |
| 121 std::string, // manifest key | 121 std::string, // manifest key |
| 122 std::pair<IPC::PlatformFileForTransit, | 122 std::pair<IPC::PlatformFileForTransit, |
| 123 base::FilePath> > PrefetchedResourceFilesMap; | 123 base::FilePath> > PrefetchedResourceFilesMap; |
| 124 PrefetchedResourceFilesMap prefetched_resource_files_; | 124 PrefetchedResourceFilesMap prefetched_resource_files_; |
| 125 | 125 |
| 126 bool is_started_; | 126 bool is_started_; |
| 127 | 127 |
| 128 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_; | 128 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_; |
| 129 | 129 |
| 130 DISALLOW_COPY_AND_ASSIGN(NaClListener); | 130 DISALLOW_COPY_AND_ASSIGN(NaClListener); |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 #endif // COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ | 133 #endif // COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ |
| OLD | NEW |