| 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 CHROME_TEST_CHROMEDRIVER_NET_SYNC_WEBSOCKET_IMPL_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_NET_SYNC_WEBSOCKET_IMPL_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_NET_SYNC_WEBSOCKET_IMPL_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_NET_SYNC_WEBSOCKET_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/sequenced_task_runner_helpers.h" |
| 14 #include "base/synchronization/condition_variable.h" | 15 #include "base/synchronization/condition_variable.h" |
| 15 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
| 16 #include "chrome/test/chromedriver/net/sync_websocket.h" | 17 #include "chrome/test/chromedriver/net/sync_websocket.h" |
| 17 #include "chrome/test/chromedriver/net/websocket.h" | 18 #include "chrome/test/chromedriver/net/websocket.h" |
| 18 #include "net/base/completion_callback.h" | 19 #include "net/base/completion_callback.h" |
| 19 | 20 |
| 20 namespace base { | 21 namespace base { |
| 21 class WaitableEvent; | 22 class WaitableEvent; |
| 22 } | 23 } |
| 23 | 24 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 scoped_refptr<Core> core_; | 101 scoped_refptr<Core> core_; |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 struct SyncWebSocketImpl::CoreTraits { | 104 struct SyncWebSocketImpl::CoreTraits { |
| 104 static void Destruct(const SyncWebSocketImpl::Core* core) { | 105 static void Destruct(const SyncWebSocketImpl::Core* core) { |
| 105 core->OnDestruct(); | 106 core->OnDestruct(); |
| 106 } | 107 } |
| 107 }; | 108 }; |
| 108 | 109 |
| 109 #endif // CHROME_TEST_CHROMEDRIVER_NET_SYNC_WEBSOCKET_IMPL_H_ | 110 #endif // CHROME_TEST_CHROMEDRIVER_NET_SYNC_WEBSOCKET_IMPL_H_ |
| OLD | NEW |