Chromium Code Reviews| 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) | |
|
darin (slow to review)
2012/03/20 06:46:59
nit: impl will only be null if handle was null. m
Takashi Toyoshima
2012/03/20 18:19:40
Agreed.
Fixed in the Patch Set 10.
| |
| 18 return NULL; | |
| 19 return static_cast<SocketStreamHandleData*>(impl->GetUserData(handle)); | |
| 20 } | |
| OLD | NEW |