Chromium Code Reviews| Index: sandbox/mac/seatbelt.h |
| diff --git a/sandbox/mac/seatbelt.h b/sandbox/mac/seatbelt.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..15d63ce9c780b58047f4731d4ef8b2b6d8ebf452 |
| --- /dev/null |
| +++ b/sandbox/mac/seatbelt.h |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef SANDBOX_MAC_SEATBELT_H_ |
| +#define SANDBOX_MAC_SEATBELT_H_ |
| + |
| +#include <cstdint> |
| + |
| +#include "sandbox/sandbox_export.h" |
| + |
| +namespace sandbox { |
| + |
| +// This class exists because OS X deprecated the sandbox functions, |
| +// and did not supply replacements that are suitable for Chrome. |
| +// This class wraps the functions in deprecation warning supressions. |
| +class SANDBOX_EXPORT Seatbelt { |
| + public: |
| + static int sandbox_init(const char* profile, uint64_t flags, char** errorbuf); |
|
Robert Sesek
2016/04/05 14:13:25
These should be named in CamelCase style, but sinc
Greg K
2016/04/05 18:24:44
Done.
|
| + static void sandbox_free_error(char* errorbuf); |
| + |
| + private: |
| + Seatbelt(); |
|
Robert Sesek
2016/04/05 14:13:25
DISALLOW_COPY_AND_ASSIGN()
Greg K
2016/04/05 18:24:44
Done.
|
| +}; |
| +} |
|
Robert Sesek
2016/04/05 14:13:25
Add comment: " // sandbox"
and a blank line befo
Greg K
2016/04/05 18:24:44
Done.
|
| +#endif // SANDBOX_MAC_SEATBELT_H_ |