1 // Copyright 2018 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 5 #ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_LOADER_FTP_DIRECTORY_LISTING_H_ 6 #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_LOADER_FTP_DIRECTORY_LISTING_H_ 7 8 #include "base/memory/scoped_refptr.h" 9 #include "base/optional.h" 10 #include "third_party/blink/renderer/platform/platform_export.h" 11 #include "third_party/blink/renderer/platform/wtf/forward.h" 12 13 namespace blink { 14 15 class KURL; 16 17 // Translates |input|, an FTP LISTING result, to an HTML and returns it. When 18 // an error happens that is written in the result HTML. 19 PLATFORM_EXPORT scoped_refptr<SharedBuffer> GenerateFtpDirectoryListingHtml( 20 const KURL& url, 21 const SharedBuffer* input); 22 23 } // namespace blink 24 25 #endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_LOADER_FTP_DIRECTORY_LISTING_H_ 26