file_chooser_common_win.h 903 B

12345678910111213141516171819202122
  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_FILE_CHOOSER_COMMON_WIN_H_
  5. #define REMOTING_HOST_FILE_TRANSFER_FILE_CHOOSER_COMMON_WIN_H_
  6. #include <cstddef>
  7. namespace remoting {
  8. // This is the buffer size requested when calling CreatePipe, and is also the
  9. // maximum amount of data the file chooser process will write to it (so the
  10. // correct error can be generated in that case). The CreatePipe documentation
  11. // notes that the size specified is only advisory, but 4096 is small enough to
  12. // be safe in any event, and is more than big enough to return any path we're
  13. // likely to see on Windows.
  14. constexpr std::size_t kFileChooserPipeBufferSize = 4096;
  15. } // namespace remoting
  16. #endif // REMOTING_HOST_FILE_TRANSFER_FILE_CHOOSER_COMMON_WIN_H_