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

Unified Diff: content/browser/loader/downloaded_temp_file_impl.h

Issue 2715423003: [Mojo-Loading] Use independent URLLoaderClient (Closed)
Patch Set: fix Created 3 years, 10 months 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/downloaded_temp_file_impl.h
diff --git a/content/browser/loader/downloaded_temp_file_impl.h b/content/browser/loader/downloaded_temp_file_impl.h
index b8b5aad084e3fe5a73b8a969fa6dfda64e2e2edc..160511b2ac5285c0f8e5d3e3dcd96e78b758459d 100644
--- a/content/browser/loader/downloaded_temp_file_impl.h
+++ b/content/browser/loader/downloaded_temp_file_impl.h
@@ -17,25 +17,19 @@ namespace content {
class CONTENT_EXPORT DownloadedTempFileImpl final
: public mojom::DownloadedTempFile {
public:
- // Creates a DownloadedTempFileImpl, binds it as a strong associated
- // interface, and returns the interface ptr info to be passed to the client.
+ // Creates a DownloadedTempFileImpl, binds it as a strong interface, and
+ // returns the interface ptr to be passed to the client.
// That means:
// * The DownloadedTempFile object created here is essentially owned by the
// client. It keeps alive until the client destroys the other endpoint.
- // * The resulting interface will be associated to the same message pipe on
- // which the returned pointer info object is sent.
- static mojom::DownloadedTempFileAssociatedPtrInfo Create(int child_id,
- int request_id);
-
- static mojom::DownloadedTempFilePtr CreateForTesting(int child_id,
- int request_id);
+ static mojom::DownloadedTempFilePtr Create(int child_id, int request_id);
DownloadedTempFileImpl(int child_id, int request_id);
~DownloadedTempFileImpl() override;
private:
- int child_id_;
- int request_id_;
+ const int child_id_;
+ const int request_id_;
DISALLOW_COPY_AND_ASSIGN(DownloadedTempFileImpl);
};
« no previous file with comments | « no previous file | content/browser/loader/downloaded_temp_file_impl.cc » ('j') | content/child/resource_dispatcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698