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

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: move to dtor Created 4 years 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
« no previous file with comments | « content/browser/loader/DEPS ('k') | content/browser/loader/downloaded_temp_file_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(int child_id, int request_id);
24 ~DownloadedTempFileImpl() override;
25
26 private:
27 int child_id_;
28 int request_id_;
29
30 DISALLOW_COPY_AND_ASSIGN(DownloadedTempFileImpl);
31 };
32
33 } // namespace content
34
35 #endif // CONTENT_BROWSER_LOADER_DOWNLOADED_TEMP_FILE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/loader/DEPS ('k') | content/browser/loader/downloaded_temp_file_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698