| 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 MOJO_EDK_SYSTEM_CORE_H_ | 5 #ifndef MOJO_EDK_SYSTEM_CORE_H_ |
| 6 #define MOJO_EDK_SYSTEM_CORE_H_ | 6 #define MOJO_EDK_SYSTEM_CORE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 base::Lock node_controller_lock_; | 292 base::Lock node_controller_lock_; |
| 293 | 293 |
| 294 // This is lazily initialized on first access. Always use GetNodeController() | 294 // This is lazily initialized on first access. Always use GetNodeController() |
| 295 // to access it. | 295 // to access it. |
| 296 std::unique_ptr<NodeController> node_controller_; | 296 std::unique_ptr<NodeController> node_controller_; |
| 297 | 297 |
| 298 // The default callback to invoke, if any, when a process error is reported | 298 // The default callback to invoke, if any, when a process error is reported |
| 299 // but cannot be associated with a specific process. | 299 // but cannot be associated with a specific process. |
| 300 ProcessErrorCallback default_process_error_callback_; | 300 ProcessErrorCallback default_process_error_callback_; |
| 301 | 301 |
| 302 base::Lock handles_lock_; | |
| 303 HandleTable handles_; | 302 HandleTable handles_; |
| 304 | 303 |
| 305 base::Lock mapping_table_lock_; // Protects |mapping_table_|. | 304 base::Lock mapping_table_lock_; // Protects |mapping_table_|. |
| 306 MappingTable mapping_table_; | 305 MappingTable mapping_table_; |
| 307 | 306 |
| 308 base::Lock property_lock_; | 307 base::Lock property_lock_; |
| 309 // Properties that can be read using the MojoGetProperty() API. | 308 // Properties that can be read using the MojoGetProperty() API. |
| 310 bool property_sync_call_allowed_ = true; | 309 bool property_sync_call_allowed_ = true; |
| 311 | 310 |
| 312 DISALLOW_COPY_AND_ASSIGN(Core); | 311 DISALLOW_COPY_AND_ASSIGN(Core); |
| 313 }; | 312 }; |
| 314 | 313 |
| 315 } // namespace edk | 314 } // namespace edk |
| 316 } // namespace mojo | 315 } // namespace mojo |
| 317 | 316 |
| 318 #endif // MOJO_EDK_SYSTEM_CORE_H_ | 317 #endif // MOJO_EDK_SYSTEM_CORE_H_ |
| OLD | NEW |