platform_util_internal.h 687 B

123456789101112131415161718192021222324
  1. // Copyright (c) 2020 Slack Technologies, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ELECTRON_SHELL_COMMON_PLATFORM_UTIL_INTERNAL_H_
  5. #define ELECTRON_SHELL_COMMON_PLATFORM_UTIL_INTERNAL_H_
  6. #include "shell/common/platform_util.h"
  7. #include <string>
  8. namespace base {
  9. class FilePath;
  10. }
  11. namespace platform_util::internal {
  12. // Called by platform_util.cc on to invoke platform specific logic to move
  13. // |path| to trash using a suitable handler.
  14. bool PlatformTrashItem(const base::FilePath& path, std::string* error);
  15. } // namespace platform_util::internal
  16. #endif // ELECTRON_SHELL_COMMON_PLATFORM_UTIL_INTERNAL_H_