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