Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: content/browser/loader/downloaded_temp_file_impl.h

Issue 2503813002: Fix and refactor downloaded file handling in the loading stack (Closed)
Patch Set: . Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698