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

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

Issue 368001: Second patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_DATA_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/url_request/url_request.h" 10 #include "net/url_request/url_request.h"
11 #include "net/url_request/url_request_simple_job.h" 11 #include "net/url_request/url_request_simple_job.h"
12 12
13 class URLRequest; 13 class URLRequest;
14 14
15 class URLRequestDataJob : public URLRequestSimpleJob { 15 class URLRequestDataJob : public URLRequestSimpleJob {
16 public: 16 public:
17 explicit URLRequestDataJob(URLRequest* request); 17 explicit URLRequestDataJob(URLRequest* request);
18 18
19 virtual bool GetData(std::string* mime_type, 19 virtual bool GetData(std::string* mime_type,
20 std::string* charset, 20 std::string* charset,
21 std::string* data) const; 21 std::string* data) const;
22 22
23 static URLRequest::ProtocolFactory Factory; 23 static URLRequest::ProtocolFactory Factory;
24 24
25 private:
26 ~URLRequestDataJob() {}
27
25 DISALLOW_COPY_AND_ASSIGN(URLRequestDataJob); 28 DISALLOW_COPY_AND_ASSIGN(URLRequestDataJob);
26 }; 29 };
27 30
28 #endif // NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_ 31 #endif // NET_URL_REQUEST_URL_REQUEST_DATA_JOB_H_
29 32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698