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

Side by Side Diff: net/socket_stream/socket_stream.h

Issue 6338002: net: Remove typedef net::URLRequestContext URLRequestContext; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for real Created 9 years, 11 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) 2010 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_SOCKET_STREAM_SOCKET_STREAM_H_ 5 #ifndef NET_SOCKET_STREAM_SOCKET_STREAM_H_
6 #define NET_SOCKET_STREAM_SOCKET_STREAM_H_ 6 #define NET_SOCKET_STREAM_SOCKET_STREAM_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // delete the object if it is changed or the job is destroyed. 105 // delete the object if it is changed or the job is destroyed.
106 UserData* GetUserData(const void* key) const; 106 UserData* GetUserData(const void* key) const;
107 void SetUserData(const void* key, UserData* data); 107 void SetUserData(const void* key, UserData* data);
108 108
109 const GURL& url() const { return url_; } 109 const GURL& url() const { return url_; }
110 bool is_secure() const; 110 bool is_secure() const;
111 const AddressList& address_list() const { return addresses_; } 111 const AddressList& address_list() const { return addresses_; }
112 Delegate* delegate() const { return delegate_; } 112 Delegate* delegate() const { return delegate_; }
113 int max_pending_send_allowed() const { return max_pending_send_allowed_; } 113 int max_pending_send_allowed() const { return max_pending_send_allowed_; }
114 114
115 URLRequestContext* context() const { return context_.get(); } 115 net::URLRequestContext* context() const { return context_.get(); }
wtc 2011/01/15 17:54:23 Undo the changes in this file (already in the 'net
116 void set_context(URLRequestContext* context); 116 void set_context(net::URLRequestContext* context);
117 117
118 BoundNetLog* net_log() { return &net_log_; } 118 BoundNetLog* net_log() { return &net_log_; }
119 119
120 // Opens the connection on the IO thread. 120 // Opens the connection on the IO thread.
121 // Once the connection is established, calls delegate's OnConnected. 121 // Once the connection is established, calls delegate's OnConnected.
122 virtual void Connect(); 122 virtual void Connect();
123 123
124 // Requests to send |len| bytes of |data| on the connection. 124 // Requests to send |len| bytes of |data| on the connection.
125 // Returns true if |data| is buffered in the job. 125 // Returns true if |data| is buffered in the job.
126 // Returns false if size of buffered data would exceeds 126 // Returns false if size of buffered data would exceeds
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 264
265 int HandleCertificateError(int result); 265 int HandleCertificateError(int result);
266 266
267 SSLConfigService* ssl_config_service() const; 267 SSLConfigService* ssl_config_service() const;
268 ProxyService* proxy_service() const; 268 ProxyService* proxy_service() const;
269 269
270 BoundNetLog net_log_; 270 BoundNetLog net_log_;
271 271
272 GURL url_; 272 GURL url_;
273 int max_pending_send_allowed_; 273 int max_pending_send_allowed_;
274 scoped_refptr<URLRequestContext> context_; 274 scoped_refptr<net::URLRequestContext> context_;
275 275
276 UserDataMap user_data_; 276 UserDataMap user_data_;
277 277
278 State next_state_; 278 State next_state_;
279 HostResolver* host_resolver_; 279 HostResolver* host_resolver_;
280 CertVerifier* cert_verifier_; 280 CertVerifier* cert_verifier_;
281 HttpAuthHandlerFactory* http_auth_handler_factory_; 281 HttpAuthHandlerFactory* http_auth_handler_factory_;
282 ClientSocketFactory* factory_; 282 ClientSocketFactory* factory_;
283 283
284 ProxyMode proxy_mode_; 284 ProxyMode proxy_mode_;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 bool server_closed_; 327 bool server_closed_;
328 328
329 scoped_ptr<SocketStreamMetrics> metrics_; 329 scoped_ptr<SocketStreamMetrics> metrics_;
330 330
331 DISALLOW_COPY_AND_ASSIGN(SocketStream); 331 DISALLOW_COPY_AND_ASSIGN(SocketStream);
332 }; 332 };
333 333
334 } // namespace net 334 } // namespace net
335 335
336 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_H_ 336 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698