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

Side by Side Diff: net/url_request/url_request_http_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 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "net/base/auth.h" 14 #include "net/base/auth.h"
15 #include "net/base/completion_callback.h" 15 #include "net/base/completion_callback.h"
16 #include "net/http/http_request_info.h" 16 #include "net/http/http_request_info.h"
17 #include "net/url_request/url_request_job.h" 17 #include "net/url_request/url_request_job.h"
18 #include "net/url_request/url_request_throttler_entry_interface.h" 18 #include "net/url_request/url_request_throttler_entry_interface.h"
19 19
20 namespace net { 20 namespace net {
21 class HttpResponseInfo; 21 class HttpResponseInfo;
22 class HttpTransaction; 22 class HttpTransaction;
23 } 23 }
24 class URLRequestContext; 24 class URLRequestContext;
25 25
26 // A URLRequestJob subclass that is built on top of HttpTransaction. It 26 // A URLRequestJob subclass that is built on top of HttpTransaction. It
27 // provides an implementation for both HTTP and HTTPS. 27 // provides an implementation for both HTTP and HTTPS.
28 class URLRequestHttpJob : public URLRequestJob { 28 class URLRequestHttpJob : public URLRequestJob {
29 public: 29 public:
30 static URLRequestJob* Factory(URLRequest* request, const std::string& scheme); 30 static URLRequestJob* Factory(net::URLRequest* request,
31 const std::string& scheme);
31 32
32 protected: 33 protected:
33 explicit URLRequestHttpJob(URLRequest* request); 34 explicit URLRequestHttpJob(net::URLRequest* request);
34 35
35 // URLRequestJob methods: 36 // URLRequestJob methods:
36 virtual void SetUpload(net::UploadData* upload); 37 virtual void SetUpload(net::UploadData* upload);
37 virtual void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers); 38 virtual void SetExtraRequestHeaders(const net::HttpRequestHeaders& headers);
38 virtual void Start(); 39 virtual void Start();
39 virtual void Kill(); 40 virtual void Kill();
40 virtual net::LoadState GetLoadState() const; 41 virtual net::LoadState GetLoadState() const;
41 virtual uint64 GetUploadProgress() const; 42 virtual uint64 GetUploadProgress() const;
42 virtual bool GetMimeType(std::string* mime_type) const; 43 virtual bool GetMimeType(std::string* mime_type) const;
43 virtual bool GetCharset(std::string* charset); 44 virtual bool GetCharset(std::string* charset);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // For recording of stats, we need to remember if this is cached content. 132 // For recording of stats, we need to remember if this is cached content.
132 bool is_cached_content_; 133 bool is_cached_content_;
133 134
134 private: 135 private:
135 virtual ~URLRequestHttpJob(); 136 virtual ~URLRequestHttpJob();
136 137
137 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); 138 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob);
138 }; 139 };
139 140
140 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 141 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698