| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/common/socket_stream_handle_data.h" |
| 6 |
| 7 #include "webkit/glue/websocketstreamhandle_impl.h" |
| 8 |
| 9 using webkit_glue::WebSocketStreamHandleImpl; |
| 10 using WebKit::WebSocketStreamHandle; |
| 11 |
| 12 // static |
| 13 const SocketStreamHandleData* SocketStreamHandleData::ForHandle( |
| 14 WebSocketStreamHandle* handle) { |
| 15 WebSocketStreamHandleImpl* impl = |
| 16 static_cast<WebSocketStreamHandleImpl*>(handle); |
| 17 if (!impl) |
| 18 return NULL; |
| 19 return static_cast<SocketStreamHandleData*>(impl->GetUserData(handle)); |
| 20 } |
| OLD | NEW |