Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: sandbox/src/sandbox.cc

Issue 378030: 64-bit compatibility changes for the sandbox code (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sandbox/src/interception.cc ('k') | sandbox/src/sandbox_nt_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/src/sandbox.h" 7 #include "sandbox/src/sandbox.h"
8 #include "sandbox/src/sandbox_factory.h" 8 #include "sandbox/src/sandbox_factory.h"
9 #include "sandbox/src/broker_services.h" 9 #include "sandbox/src/broker_services.h"
10 #include "sandbox/src/target_services.h" 10 #include "sandbox/src/target_services.h"
11 11
12 #ifdef _WIN64
13 #error Sandbox code was not tested on 64-bit Windows. See \
14 http://code.google.com/p/chromium/issues/detail?id=27218 for details \
15 and progress log.
16 #endif
17
18
12 namespace sandbox { 19 namespace sandbox {
13 // The section for IPC and policy. 20 // The section for IPC and policy.
14 SANDBOX_INTERCEPT HANDLE g_shared_section = NULL; 21 SANDBOX_INTERCEPT HANDLE g_shared_section = NULL;
15 22
16 static bool s_is_broker = false; 23 static bool s_is_broker = false;
17 24
18 // GetBrokerServices: the current implementation relies on a shared section 25 // GetBrokerServices: the current implementation relies on a shared section
19 // that is created by the broker and opened by the target. 26 // that is created by the broker and opened by the target.
20 BrokerServices* SandboxFactory::GetBrokerServices() { 27 BrokerServices* SandboxFactory::GetBrokerServices() {
21 // Can't be the broker if the shared section is open. 28 // Can't be the broker if the shared section is open.
(...skipping 13 matching lines...) Expand all
35 if (NULL == g_shared_section) { 42 if (NULL == g_shared_section) {
36 return NULL; 43 return NULL;
37 } 44 }
38 // We are the target 45 // We are the target
39 s_is_broker = false; 46 s_is_broker = false;
40 // Creates and returns the target services implementation. 47 // Creates and returns the target services implementation.
41 return TargetServicesBase::GetInstance(); 48 return TargetServicesBase::GetInstance();
42 } 49 }
43 50
44 } // namespace sandbox 51 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/src/interception.cc ('k') | sandbox/src/sandbox_nt_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698