| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_QUIC_QUIC_STREAM_FACTORY_H_ | 5 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ | 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 base::StringPiece method, | 67 base::StringPiece method, |
| 68 const BoundNetLog& net_log, | 68 const BoundNetLog& net_log, |
| 69 const CompletionCallback& callback); | 69 const CompletionCallback& callback); |
| 70 | 70 |
| 71 void OnRequestComplete(int rv); | 71 void OnRequestComplete(int rv); |
| 72 | 72 |
| 73 scoped_ptr<QuicHttpStream> ReleaseStream(); | 73 scoped_ptr<QuicHttpStream> ReleaseStream(); |
| 74 | 74 |
| 75 void set_stream(scoped_ptr<QuicHttpStream> stream); | 75 void set_stream(scoped_ptr<QuicHttpStream> stream); |
| 76 | 76 |
| 77 const std::string origin_host() const { return origin_host_; } | 77 const std::string& origin_host() const { return origin_host_; } |
| 78 | 78 |
| 79 PrivacyMode privacy_mode() const { return privacy_mode_; } | 79 PrivacyMode privacy_mode() const { return privacy_mode_; } |
| 80 | 80 |
| 81 const BoundNetLog& net_log() const{ | 81 const BoundNetLog& net_log() const{ |
| 82 return net_log_; | 82 return net_log_; |
| 83 } | 83 } |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 QuicStreamFactory* factory_; | 86 QuicStreamFactory* factory_; |
| 87 HostPortPair host_port_pair_; | 87 HostPortPair host_port_pair_; |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 base::TaskRunner* task_runner_; | 427 base::TaskRunner* task_runner_; |
| 428 | 428 |
| 429 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 429 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 430 | 430 |
| 431 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 431 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 432 }; | 432 }; |
| 433 | 433 |
| 434 } // namespace net | 434 } // namespace net |
| 435 | 435 |
| 436 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 436 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |