OLD | NEW |
---|---|
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/scoped_ptr.h" | |
11 #include "net/base/completion_callback.h" | 12 #include "net/base/completion_callback.h" |
12 #include "net/http/http_request_info.h" | 13 #include "net/http/http_request_info.h" |
13 #include "net/url_request/url_request_job.h" | 14 #include "net/url_request/url_request_job.h" |
14 | 15 |
15 namespace net { | 16 namespace net { |
16 class HttpResponseInfo; | 17 class HttpResponseInfo; |
17 class HttpTransaction; | 18 class HttpTransaction; |
18 } | 19 } |
19 class URLRequestContext; | 20 class URLRequestContext; |
20 | 21 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 | 74 |
74 // Auth states for proxy and origin server. | 75 // Auth states for proxy and origin server. |
75 net::AuthState proxy_auth_state_; | 76 net::AuthState proxy_auth_state_; |
76 net::AuthState server_auth_state_; | 77 net::AuthState server_auth_state_; |
77 | 78 |
78 net::CompletionCallbackImpl<URLRequestHttpJob> start_callback_; | 79 net::CompletionCallbackImpl<URLRequestHttpJob> start_callback_; |
79 net::CompletionCallbackImpl<URLRequestHttpJob> read_callback_; | 80 net::CompletionCallbackImpl<URLRequestHttpJob> read_callback_; |
80 | 81 |
81 bool read_in_progress_; | 82 bool read_in_progress_; |
82 | 83 |
84 // An URL for an SDCH dictionary as suggested in a Get-Dictionary HTTP header. | |
85 GURL sdch_dictionary_url_; | |
Lincoln
2009/02/17 21:43:50
Since you're using GURL, you might want to add:
#i
| |
86 | |
83 // Keep a reference to the url request context to be sure it's not deleted | 87 // Keep a reference to the url request context to be sure it's not deleted |
84 // before us. | 88 // before us. |
85 scoped_refptr<URLRequestContext> context_; | 89 scoped_refptr<URLRequestContext> context_; |
86 | 90 |
87 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 91 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
88 }; | 92 }; |
89 | 93 |
90 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 94 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
OLD | NEW |