Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SANDBOX_MAC_SEATBELT_H_ | |
| 6 #define SANDBOX_MAC_SEATBELT_H_ | |
| 7 | |
| 8 #include <cstdint> | |
| 9 | |
| 10 #include "sandbox/sandbox_export.h" | |
| 11 | |
| 12 namespace sandbox { | |
| 13 | |
| 14 // This class exists because OS X deprecated the sandbox functions, | |
| 15 // and did not supply replacements that are suitable for Chrome. | |
| 16 // This class wraps the functions in deprecation warning supressions. | |
| 17 class SANDBOX_EXPORT Seatbelt { | |
| 18 public: | |
| 19 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.
| |
| 20 static void sandbox_free_error(char* errorbuf); | |
| 21 | |
| 22 private: | |
| 23 Seatbelt(); | |
|
Robert Sesek
2016/04/05 14:13:25
DISALLOW_COPY_AND_ASSIGN()
Greg K
2016/04/05 18:24:44
Done.
| |
| 24 }; | |
| 25 } | |
|
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.
| |
| 26 #endif // SANDBOX_MAC_SEATBELT_H_ | |
| OLD | NEW |