get_desktop_directory.h 762 B

1234567891011121314151617181920
  1. // Copyright 2019 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. #ifndef REMOTING_HOST_FILE_TRANSFER_GET_DESKTOP_DIRECTORY_H_
  5. #define REMOTING_HOST_FILE_TRANSFER_GET_DESKTOP_DIRECTORY_H_
  6. #include "base/files/file_path.h"
  7. #include "remoting/protocol/file_transfer_helpers.h"
  8. namespace remoting {
  9. // Retrieves the path to the user's desktop folder. This should be run in the
  10. // context of the user, which on Windows means it must be run on the same
  11. // dedicated thread on which EnsureUser was called.
  12. protocol::FileTransferResult<base::FilePath> GetDesktopDirectory();
  13. } // namespace remoting
  14. #endif // REMOTING_HOST_FILE_TRANSFER_GET_DESKTOP_DIRECTORY_H_