| OLD | NEW | 
|---|
| 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_HTTP_HTTP_STREAM_REQUEST_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_REQUEST_H_ | 
| 6 #define NET_HTTP_HTTP_STREAM_REQUEST_H_ | 6 #define NET_HTTP_HTTP_STREAM_REQUEST_H_ | 
| 7 | 7 | 
| 8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" | 
| 9 #include "base/task.h" | 9 #include "base/task.h" | 
| 10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" | 
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 62                  ProxyInfo* proxy_info, | 62                  ProxyInfo* proxy_info, | 
| 63                  PreconnectDelegate* delegate, | 63                  PreconnectDelegate* delegate, | 
| 64                  const BoundNetLog& net_log); | 64                  const BoundNetLog& net_log); | 
| 65 | 65 | 
| 66   // StreamRequest interface | 66   // StreamRequest interface | 
| 67   virtual int RestartWithCertificate(X509Certificate* client_cert); | 67   virtual int RestartWithCertificate(X509Certificate* client_cert); | 
| 68   virtual int RestartTunnelWithProxyAuth(const string16& username, | 68   virtual int RestartTunnelWithProxyAuth(const string16& username, | 
| 69                                          const string16& password); | 69                                          const string16& password); | 
| 70   virtual LoadState GetLoadState() const; | 70   virtual LoadState GetLoadState() const; | 
| 71 | 71 | 
| 72   virtual bool was_alternate_protocol_available() const { | 72   virtual bool was_alternate_protocol_available() const; | 
| 73       return was_alternate_protocol_available_; | 73   virtual bool was_npn_negotiated() const; | 
| 74   } | 74   virtual bool using_spdy() const; | 
| 75   virtual bool was_npn_negotiated() const { return was_npn_negotiated_; } |  | 
| 76   virtual bool using_spdy() const { return using_spdy_; } |  | 
| 77 | 75 | 
| 78  private: | 76  private: | 
| 79   enum AlternateProtocolMode { | 77   enum AlternateProtocolMode { | 
| 80     kUnspecified,  // Unspecified, check HttpAlternateProtocols | 78     kUnspecified,  // Unspecified, check HttpAlternateProtocols | 
| 81     kUsingAlternateProtocol,  // Using an alternate protocol | 79     kUsingAlternateProtocol,  // Using an alternate protocol | 
| 82     kDoNotUseAlternateProtocol,  // Failed to connect once, do not try again. | 80     kDoNotUseAlternateProtocol,  // Failed to connect once, do not try again. | 
| 83   }; | 81   }; | 
| 84 | 82 | 
| 85   enum State { | 83   enum State { | 
| 86     STATE_RESOLVE_PROXY, | 84     STATE_RESOLVE_PROXY, | 
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 242   int num_streams_; | 240   int num_streams_; | 
| 243 | 241 | 
| 244   ScopedRunnableMethodFactory<HttpStreamRequest> method_factory_; | 242   ScopedRunnableMethodFactory<HttpStreamRequest> method_factory_; | 
| 245 | 243 | 
| 246   DISALLOW_COPY_AND_ASSIGN(HttpStreamRequest); | 244   DISALLOW_COPY_AND_ASSIGN(HttpStreamRequest); | 
| 247 }; | 245 }; | 
| 248 | 246 | 
| 249 }  // namespace net | 247 }  // namespace net | 
| 250 | 248 | 
| 251 #endif  // NET_HTTP_HTTP_STREAM_REQUEST_H_ | 249 #endif  // NET_HTTP_HTTP_STREAM_REQUEST_H_ | 
| OLD | NEW | 
|---|