Avi Drissman | 4e1b7bc3 | 2022-09-15 14:03:50 | [diff] [blame] | 1 | // Copyright 2017 The Chromium Authors |
rsesek | 5f11985 | 2017-04-11 13:45:04 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "content/renderer/seccomp_sandbox_status_android.h" |
| 6 | |
Robert Sesek | 5fb3197 | 2017-07-12 00:21:40 | [diff] [blame] | 7 | #include "content/public/renderer/seccomp_sandbox_status_android.h" |
| 8 | |
rsesek | 5f11985 | 2017-04-11 13:45:04 | [diff] [blame] | 9 | namespace content { |
| 10 | |
Robert Sesek | 5fb3197 | 2017-07-12 00:21:40 | [diff] [blame] | 11 | static sandbox::SeccompSandboxStatus g_status = |
| 12 | sandbox::SeccompSandboxStatus::NOT_SUPPORTED; |
rsesek | 5f11985 | 2017-04-11 13:45:04 | [diff] [blame] | 13 | |
Robert Sesek | 5fb3197 | 2017-07-12 00:21:40 | [diff] [blame] | 14 | void SetSeccompSandboxStatus(sandbox::SeccompSandboxStatus status) { |
rsesek | 5f11985 | 2017-04-11 13:45:04 | [diff] [blame] | 15 | g_status = status; |
| 16 | } |
| 17 | |
Robert Sesek | 5fb3197 | 2017-07-12 00:21:40 | [diff] [blame] | 18 | sandbox::SeccompSandboxStatus GetSeccompSandboxStatus() { |
rsesek | 5f11985 | 2017-04-11 13:45:04 | [diff] [blame] | 19 | return g_status; |
| 20 | } |
| 21 | |
| 22 | } // namespace content |