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

Side by Side Diff: net/url_request/url_request_ftp_job.h

Issue 10299002: Stop refcounting URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initialize to NULL Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 int buf_size, 60 int buf_size,
61 int *bytes_read) OVERRIDE; 61 int *bytes_read) OVERRIDE;
62 62
63 FtpRequestInfo request_info_; 63 FtpRequestInfo request_info_;
64 scoped_ptr<FtpTransaction> transaction_; 64 scoped_ptr<FtpTransaction> transaction_;
65 65
66 bool read_in_progress_; 66 bool read_in_progress_;
67 67
68 scoped_refptr<AuthData> server_auth_; 68 scoped_refptr<AuthData> server_auth_;
69 69
70 // Keep a reference to the url request context to be sure it's not deleted
71 // before us.
72 scoped_refptr<const URLRequestContext> context_;
73
74 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_; 70 base::WeakPtrFactory<URLRequestFtpJob> weak_factory_;
75 71
76 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob); 72 DISALLOW_COPY_AND_ASSIGN(URLRequestFtpJob);
77 }; 73 };
78 74
79 } // namespace net 75 } // namespace net
80 76
81 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_ 77 #endif // NET_URL_REQUEST_URL_REQUEST_FTP_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_context_builder_unittest.cc ('k') | net/url_request/url_request_ftp_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698