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

Unified Diff: net/url_request/url_request_job.h

Issue 5298008: net: Add namespace net to URLRequest and URLRequestJob classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some chromeos fixes Created 10 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 side-by-side diff with in-line comments
Download patch
Index: net/url_request/url_request_job.h
diff --git a/net/url_request/url_request_job.h b/net/url_request/url_request_job.h
index 56496edcd2e9b720de8d6612905c35a581755bda..239f5e9f935e60937a67cc9a4b87f83bc54fbdc6 100644
--- a/net/url_request/url_request_job.h
+++ b/net/url_request/url_request_job.h
@@ -23,13 +23,15 @@ class HttpRequestHeaders;
class HttpResponseInfo;
class IOBuffer;
class UploadData;
+class URLRequest;
class X509Certificate;
-}
+} // namespace net
-class URLRequest;
class URLRequestStatus;
class URLRequestJobMetrics;
+namespace net {
+
class URLRequestJob : public base::RefCounted<URLRequestJob>,
public FilterContext {
public:
@@ -40,11 +42,11 @@ class URLRequestJob : public base::RefCounted<URLRequestJob>,
// congestion window on stalling of transmissions.
static const size_t kSdchPacketHistogramCount = 5;
- explicit URLRequestJob(URLRequest* request);
+ explicit URLRequestJob(net::URLRequest* request);
wtc 2010/11/30 01:51:53 Don't need to add net:: to URLRequest because most
// Returns the request that owns this job. THIS POINTER MAY BE NULL if the
// request was destroyed.
- URLRequest* request() const {
+ net::URLRequest* request() const {
return request_;
}
@@ -278,7 +280,7 @@ class URLRequestJob : public base::RefCounted<URLRequestJob>,
// The request that initiated this job. This value MAY BE NULL if the
// request was released by DetachRequest().
- URLRequest* request_;
+ net::URLRequest* request_;
// The status of the job.
const URLRequestStatus GetStatus();
@@ -420,4 +422,8 @@ class URLRequestJob : public base::RefCounted<URLRequestJob>,
DISALLOW_COPY_AND_ASSIGN(URLRequestJob);
};
+} // namespace net
+
+typedef net::URLRequestJob URLRequestJob;
+
#endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_

Powered by Google App Engine
This is Rietveld 408576698