|
23 | 23 | #include <utility> |
24 | 24 |
|
25 | 25 | #include "absl/base/attributes.h" |
| 26 | +#include "absl/base/macros.h" |
26 | 27 | #include "absl/log/check.h" |
27 | 28 | #include "absl/status/status.h" |
28 | 29 | #include "absl/status/statusor.h" |
@@ -171,16 +172,16 @@ class SandboxBase { |
171 | 172 | // The Sandbox class represents the sandboxed library. It provides users with |
172 | 173 | // means to communicate with it (make function calls, transfer memory). |
173 | 174 | template <typename Backend> |
174 | | -class SandboxImpl : public SandboxBase { |
| 175 | +class Sandbox : public SandboxBase { |
175 | 176 | public: |
176 | | - explicit SandboxImpl(SandboxConfig config) |
| 177 | + explicit Sandbox(SandboxConfig config) |
177 | 178 | : SandboxBase(), |
178 | 179 | backend_(std::move(config), [this] { return CreateNotifier(); }) {} |
179 | 180 |
|
180 | | - SandboxImpl(const SandboxImpl&) = delete; |
181 | | - SandboxImpl& operator=(const SandboxImpl&) = delete; |
| 181 | + Sandbox(const Sandbox&) = delete; |
| 182 | + Sandbox& operator=(const Sandbox&) = delete; |
182 | 183 |
|
183 | | - virtual ~SandboxImpl() = default; |
| 184 | + virtual ~Sandbox() = default; |
184 | 185 |
|
185 | 186 | // Initializes a new sandboxing session. |
186 | 187 | absl::Status Init() override { return backend().Init(); } |
@@ -216,7 +217,8 @@ class SandboxImpl : public SandboxBase { |
216 | 217 | }; |
217 | 218 |
|
218 | 219 | template <typename Backend> |
219 | | -using Sandbox = SandboxImpl<Backend>; |
| 220 | +using SandboxImpl [[deprecated("Use Sandbox instead")]] ABSL_REFACTOR_INLINE = |
| 221 | + Sandbox<Backend>; |
220 | 222 |
|
221 | 223 | } // namespace sapi |
222 | 224 |
|
|
0 commit comments