| 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 // An implementation of buzz::AsyncSocket that uses Chrome sockets. | 5 // An implementation of buzz::AsyncSocket that uses Chrome sockets. |
| 6 | 6 |
| 7 #ifndef JINGLE_GLUE_CHROME_ASYNC_SOCKET_H_ | 7 #ifndef JINGLE_GLUE_CHROME_ASYNC_SOCKET_H_ |
| 8 #define JINGLE_GLUE_CHROME_ASYNC_SOCKET_H_ | 8 #define JINGLE_GLUE_CHROME_ASYNC_SOCKET_H_ |
| 9 | 9 |
| 10 #if !defined(FEATURE_ENABLE_SSL) | |
| 11 #error ChromeAsyncSocket expects FEATURE_ENABLE_SSL to be defined | |
| 12 #endif | |
| 13 | |
| 14 #include <stddef.h> | 10 #include <stddef.h> |
| 15 | 11 |
| 16 #include <memory> | 12 #include <memory> |
| 17 #include <string> | 13 #include <string> |
| 18 #include <vector> | 14 #include <vector> |
| 19 | 15 |
| 20 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 21 #include "base/macros.h" | 17 #include "base/macros.h" |
| 22 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 23 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 size_t write_end_; | 204 size_t write_end_; |
| 209 | 205 |
| 210 base::WeakPtrFactory<ChromeAsyncSocket> weak_ptr_factory_; | 206 base::WeakPtrFactory<ChromeAsyncSocket> weak_ptr_factory_; |
| 211 | 207 |
| 212 DISALLOW_COPY_AND_ASSIGN(ChromeAsyncSocket); | 208 DISALLOW_COPY_AND_ASSIGN(ChromeAsyncSocket); |
| 213 }; | 209 }; |
| 214 | 210 |
| 215 } // namespace jingle_glue | 211 } // namespace jingle_glue |
| 216 | 212 |
| 217 #endif // JINGLE_GLUE_CHROME_ASYNC_SOCKET_H_ | 213 #endif // JINGLE_GLUE_CHROME_ASYNC_SOCKET_H_ |
| OLD | NEW |