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

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

Issue 6730034: Remove all "net::" prefixes under net/url_request for code that's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed indentation Created 9 years, 9 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
« no previous file with comments | « net/url_request/url_request_filter.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_HTTP_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "base/task.h" 14 #include "base/task.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "net/base/auth.h" 16 #include "net/base/auth.h"
17 #include "net/base/completion_callback.h" 17 #include "net/base/completion_callback.h"
18 #include "net/http/http_request_info.h" 18 #include "net/http/http_request_info.h"
19 #include "net/url_request/url_request_job.h" 19 #include "net/url_request/url_request_job.h"
20 #include "net/url_request/url_request_throttler_entry_interface.h" 20 #include "net/url_request/url_request_throttler_entry_interface.h"
21 21
22 namespace net { 22 namespace net {
23 23
24 class HttpResponseInfo; 24 class HttpResponseInfo;
25 class HttpTransaction; 25 class HttpTransaction;
26 class URLRequestContext; 26 class URLRequestContext;
27 27
28 // A net::URLRequestJob subclass that is built on top of HttpTransaction. It 28 // A URLRequestJob subclass that is built on top of HttpTransaction. It
29 // provides an implementation for both HTTP and HTTPS. 29 // provides an implementation for both HTTP and HTTPS.
30 class URLRequestHttpJob : public URLRequestJob { 30 class URLRequestHttpJob : public URLRequestJob {
31 public: 31 public:
32 static URLRequestJob* Factory(URLRequest* request, 32 static URLRequestJob* Factory(URLRequest* request,
33 const std::string& scheme); 33 const std::string& scheme);
34 34
35 protected: 35 protected:
36 explicit URLRequestHttpJob(URLRequest* request); 36 explicit URLRequestHttpJob(URLRequest* request);
37 37
38 // Shadows URLRequestJob's version of this method so we can grab cookies. 38 // Shadows URLRequestJob's version of this method so we can grab cookies.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 // For recording of stats, we need to remember if this is cached content. 135 // For recording of stats, we need to remember if this is cached content.
136 bool is_cached_content_; 136 bool is_cached_content_;
137 137
138 private: 138 private:
139 class HttpFilterContext : public FilterContext { 139 class HttpFilterContext : public FilterContext {
140 public: 140 public:
141 explicit HttpFilterContext(URLRequestHttpJob* job); 141 explicit HttpFilterContext(URLRequestHttpJob* job);
142 virtual ~HttpFilterContext(); 142 virtual ~HttpFilterContext();
143 143
144 // net::FilterContext implementation. 144 // FilterContext implementation.
145 virtual bool GetMimeType(std::string* mime_type) const; 145 virtual bool GetMimeType(std::string* mime_type) const;
146 virtual bool GetURL(GURL* gurl) const; 146 virtual bool GetURL(GURL* gurl) const;
147 virtual base::Time GetRequestTime() const; 147 virtual base::Time GetRequestTime() const;
148 virtual bool IsCachedContent() const; 148 virtual bool IsCachedContent() const;
149 virtual bool IsDownload() const; 149 virtual bool IsDownload() const;
150 virtual bool IsSdchResponse() const; 150 virtual bool IsSdchResponse() const;
151 virtual int64 GetByteReadCount() const; 151 virtual int64 GetByteReadCount() const;
152 virtual int GetResponseCode() const; 152 virtual int GetResponseCode() const;
153 virtual void RecordPacketStats(StatisticSelector statistic) const; 153 virtual void RecordPacketStats(StatisticSelector statistic) const;
154 154
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 HttpFilterContext filter_context_; 205 HttpFilterContext filter_context_;
206 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; 206 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_;
207 207
208 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); 208 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob);
209 }; 209 };
210 210
211 } // namespace net 211 } // namespace net
212 212
213 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 213 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_filter.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698