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

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

Issue 6488010: Propagate the remote socket address to URLRequest and to ViewHostMsg_FrameNavigate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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
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>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 virtual bool IsSafeRedirect(const GURL& location); 78 virtual bool IsSafeRedirect(const GURL& location);
79 virtual bool NeedsAuth(); 79 virtual bool NeedsAuth();
80 virtual void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*); 80 virtual void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*);
81 virtual void SetAuth(const string16& username, 81 virtual void SetAuth(const string16& username,
82 const string16& password); 82 const string16& password);
83 virtual void CancelAuth(); 83 virtual void CancelAuth();
84 virtual void ContinueWithCertificate(X509Certificate* client_cert); 84 virtual void ContinueWithCertificate(X509Certificate* client_cert);
85 virtual void ContinueDespiteLastError(); 85 virtual void ContinueDespiteLastError();
86 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read); 86 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read);
87 virtual void StopCaching(); 87 virtual void StopCaching();
88 virtual std::string GetSocketAddress() const;
88 89
89 // Keep a reference to the url request context to be sure it's not deleted 90 // Keep a reference to the url request context to be sure it's not deleted
90 // before us. 91 // before us.
91 scoped_refptr<URLRequestContext> context_; 92 scoped_refptr<URLRequestContext> context_;
92 93
93 HttpRequestInfo request_info_; 94 HttpRequestInfo request_info_;
94 const HttpResponseInfo* response_info_; 95 const HttpResponseInfo* response_info_;
95 96
96 std::vector<std::string> response_cookies_; 97 std::vector<std::string> response_cookies_;
97 size_t response_cookies_save_index_; 98 size_t response_cookies_save_index_;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 virtual ~URLRequestHttpJob(); 138 virtual ~URLRequestHttpJob();
138 139
139 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; 140 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_;
140 141
141 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); 142 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob);
142 }; 143 };
143 144
144 } // namespace net 145 } // namespace net
145 146
146 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 147 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698