| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_FLIP_FLIP_SESSION_H_ | 5 #ifndef NET_FLIP_FLIP_SESSION_H_ |
| 6 #define NET_FLIP_FLIP_SESSION_H_ | 6 #define NET_FLIP_FLIP_SESSION_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // Cancel a stream. | 105 // Cancel a stream. |
| 106 bool CancelStream(int id); | 106 bool CancelStream(int id); |
| 107 | 107 |
| 108 // Check if a stream is active. | 108 // Check if a stream is active. |
| 109 bool IsStreamActive(int id); | 109 bool IsStreamActive(int id); |
| 110 | 110 |
| 111 // The LoadState is used for informing the user of the current network | 111 // The LoadState is used for informing the user of the current network |
| 112 // status, such as "resolving host", "connecting", etc. | 112 // status, such as "resolving host", "connecting", etc. |
| 113 LoadState GetLoadState() const; | 113 LoadState GetLoadState() const; |
| 114 protected: | 114 protected: |
| 115 FRIEND_TEST(FlipNetworkTransactionTest, Connect); | 115 friend class FlipNetworkTransactionTest; |
| 116 FRIEND_TEST(FlipNetworkTransactionTest, ResponseWithoutSynReply); | |
| 117 friend class FlipSessionPool; | 116 friend class FlipSessionPool; |
| 118 friend class HttpNetworkLayer; // Temporary for server. | 117 friend class HttpNetworkLayer; // Temporary for server. |
| 119 | 118 |
| 120 // Provide access to the framer for testing. | 119 // Provide access to the framer for testing. |
| 121 flip::FlipFramer* GetFramer() { return &flip_framer_; } | 120 flip::FlipFramer* GetFramer() { return &flip_framer_; } |
| 122 | 121 |
| 123 // Create a new FlipSession. | 122 // Create a new FlipSession. |
| 124 // |host| is the hostname that this session connects to. | 123 // |host| is the hostname that this session connects to. |
| 125 FlipSession(std::string host, HttpNetworkSession* session); | 124 FlipSession(std::string host, HttpNetworkSession* session); |
| 126 | 125 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 222 |
| 224 // This is our weak session pool - one session per domain. | 223 // This is our weak session pool - one session per domain. |
| 225 static scoped_ptr<FlipSessionPool> session_pool_; | 224 static scoped_ptr<FlipSessionPool> session_pool_; |
| 226 static bool use_ssl_; | 225 static bool use_ssl_; |
| 227 }; | 226 }; |
| 228 | 227 |
| 229 } // namespace net | 228 } // namespace net |
| 230 | 229 |
| 231 #endif // NET_FLIP_FLIP_SESSION_H_ | 230 #endif // NET_FLIP_FLIP_SESSION_H_ |
| 232 | 231 |
| OLD | NEW |