bootstrap_sandbox_mac.h revision f8ee788a64d60abd8f2d742a5fdedde054ecd910
1afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madill// Copyright 2014 The Chromium Authors. All rights reserved. 2afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madill// Use of this source code is governed by a BSD-style license that can be 3afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madill// found in the LICENSE file. 4afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madill 5afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madill#ifndef CONTENT_BROWSER_BOOTSTRAP_SANDBOX_MAC_H_ 6afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madill#define CONTENT_BROWSER_BOOTSTRAP_SANDBOX_MAC_H_ 7afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madill 8afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madillnamespace sandbox { 9afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madillclass BootstrapSandbox; 10afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madill} 11afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madill 120b7eef7c469bf717f7e1b57c6273f00d88e8b1d9Geoff Langnamespace content { 130b7eef7c469bf717f7e1b57c6273f00d88e8b1d9Geoff Lang 140b7eef7c469bf717f7e1b57c6273f00d88e8b1d9Geoff Lang// Whether or not the bootstrap sandbox should be enabled. 15afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madillbool ShouldEnableBootstrapSandbox(); 166518fe2466f816f9da9f72d7be6ed7962226bdf9Brandon Jones 170b7eef7c469bf717f7e1b57c6273f00d88e8b1d9Geoff Lang// Returns the singleton instance of the BootstrapSandox. The returned object 18afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madill// is thread-safe. 19afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madill// On the first call to this function, the sandbox will be created and all 20afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madill// the policies will be registered with it. 21afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madillsandbox::BootstrapSandbox* GetBootstrapSandbox(); 22afc21c0623531c56f383d7c789f9e5a89a18bb0aJamie Madill 23e261b44af7631c31ddca8601490e7445af5a3341Jamie Madill} // namespace content 24e261b44af7631c31ddca8601490e7445af5a3341Jamie Madill 25aef95dec1cb82857fbe0dd88ad92eb3451e482f2Jamie Madill#endif // CONTENT_BROWSER_BOOTSTRAP_SANDBOX_MAC_H_ 26aef95dec1cb82857fbe0dd88ad92eb3451e482f2Jamie Madill