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_SPDY_SPDY_SESSION_H_ | 5 #ifndef NET_SPDY_SPDY_SESSION_H_ |
6 #define NET_SPDY_SPDY_SESSION_H_ | 6 #define NET_SPDY_SPDY_SESSION_H_ |
7 | 7 |
| 8 #include <stddef.h> |
8 #include <stdint.h> | 9 #include <stdint.h> |
9 | 10 |
10 #include <deque> | 11 #include <deque> |
11 #include <map> | 12 #include <map> |
12 #include <set> | 13 #include <set> |
13 #include <string> | 14 #include <string> |
14 | 15 |
15 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
16 #include "base/macros.h" | 17 #include "base/macros.h" |
17 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1213 // Used for posting asynchronous IO tasks. We use this even though | 1214 // Used for posting asynchronous IO tasks. We use this even though |
1214 // SpdySession is refcounted because we don't need to keep the SpdySession | 1215 // SpdySession is refcounted because we don't need to keep the SpdySession |
1215 // alive if the last reference is within a RunnableMethod. Just revoke the | 1216 // alive if the last reference is within a RunnableMethod. Just revoke the |
1216 // method. | 1217 // method. |
1217 base::WeakPtrFactory<SpdySession> weak_factory_; | 1218 base::WeakPtrFactory<SpdySession> weak_factory_; |
1218 }; | 1219 }; |
1219 | 1220 |
1220 } // namespace net | 1221 } // namespace net |
1221 | 1222 |
1222 #endif // NET_SPDY_SPDY_SESSION_H_ | 1223 #endif // NET_SPDY_SPDY_SESSION_H_ |
OLD | NEW |