| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include <stdio.h> | 5 #include <stdio.h> |
| 6 #include <windows.h> | 6 #include <windows.h> |
| 7 #include "sandbox/win/src/sandbox.h" | 7 #include "sandbox/win/src/sandbox.h" |
| 8 #include "sandbox/win/src/sandbox_factory.h" | 8 #include "sandbox/win/src/sandbox_factory.h" |
| 9 #include "sandbox/win/src/broker_services.h" | 9 #include "sandbox/win/src/broker_services.h" |
| 10 #include "sandbox/win/src/target_services.h" | 10 #include "sandbox/win/src/target_services.h" |
| 11 | 11 |
| 12 #if defined(_WIN64) && !defined(NACL_WIN64) | 12 #if defined(_WIN64) && !defined(NACL_WIN64) |
| 13 // We allow building this code for Win64 as part of NaCl to enable development | 13 // We allow building this code for Win64 as part of NaCl to enable development |
| 14 #error Sandbox code was not tested on 64-bit Windows. See \ | 14 #pragma message("Sandbox code was not tested on 64-bit Windows.") |
| 15 http://crbug.com/27218 for details and progress log. | |
| 16 #endif | 15 #endif |
| 17 | 16 |
| 18 | 17 |
| 19 namespace sandbox { | 18 namespace sandbox { |
| 20 // The section for IPC and policy. | 19 // The section for IPC and policy. |
| 21 SANDBOX_INTERCEPT HANDLE g_shared_section = NULL; | 20 SANDBOX_INTERCEPT HANDLE g_shared_section = NULL; |
| 22 | 21 |
| 23 static bool s_is_broker = false; | 22 static bool s_is_broker = false; |
| 24 | 23 |
| 25 // GetBrokerServices: the current implementation relies on a shared section | 24 // GetBrokerServices: the current implementation relies on a shared section |
| (...skipping 16 matching lines...) Expand all Loading... |
| 42 if (NULL == g_shared_section) { | 41 if (NULL == g_shared_section) { |
| 43 return NULL; | 42 return NULL; |
| 44 } | 43 } |
| 45 // We are the target | 44 // We are the target |
| 46 s_is_broker = false; | 45 s_is_broker = false; |
| 47 // Creates and returns the target services implementation. | 46 // Creates and returns the target services implementation. |
| 48 return TargetServicesBase::GetInstance(); | 47 return TargetServicesBase::GetInstance(); |
| 49 } | 48 } |
| 50 | 49 |
| 51 } // namespace sandbox | 50 } // namespace sandbox |
| OLD | NEW |