| Index: content/common/socket_stream_handle_data.cc
|
| diff --git a/content/common/socket_stream_handle_data.cc b/content/common/socket_stream_handle_data.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ced1dd04bdbc098bf7ed7012e96b92f9af54ffb0
|
| --- /dev/null
|
| +++ b/content/common/socket_stream_handle_data.cc
|
| @@ -0,0 +1,20 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/common/socket_stream_handle_data.h"
|
| +
|
| +#include "webkit/glue/websocketstreamhandle_impl.h"
|
| +
|
| +using webkit_glue::WebSocketStreamHandleImpl;
|
| +using WebKit::WebSocketStreamHandle;
|
| +
|
| +// static
|
| +const SocketStreamHandleData* SocketStreamHandleData::ForHandle(
|
| + WebSocketStreamHandle* handle) {
|
| + WebSocketStreamHandleImpl* impl =
|
| + static_cast<WebSocketStreamHandleImpl*>(handle);
|
| + if (!impl)
|
| + return NULL;
|
| + return static_cast<SocketStreamHandleData*>(impl->GetUserData(handle));
|
| +}
|
|
|