OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 CONTENT_BROWSER_LOADER_DOWNLOADED_TEMP_FILE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_LOADER_DOWNLOADED_TEMP_FILE_IMPL_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "content/common/content_export.h" |
| 10 #include "content/common/url_loader_factory.mojom.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 // DownloadedTempFileImpl is created on the download_to_file mode of resource |
| 15 // loading. The instance is held by the client and lives until the client |
| 16 // destroys the interface, slightly after the URLLoader is destroyed. |
| 17 class CONTENT_EXPORT DownloadedTempFileImpl final |
| 18 : public mojom::DownloadedTempFile { |
| 19 public: |
| 20 static mojo::InterfacePtr<mojom::DownloadedTempFile> Create(int child_id, |
| 21 int request_id); |
| 22 |
| 23 DownloadedTempFileImpl(); |
| 24 ~DownloadedTempFileImpl() override; |
| 25 |
| 26 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(DownloadedTempFileImpl); |
| 28 }; |
| 29 |
| 30 } // namespace content |
| 31 |
| 32 #endif // CONTENT_BROWSER_LOADER_DOWNLOADED_TEMP_FILE_IMPL_H_ |
OLD | NEW |