2011-10-12 21:09:15 +02:00
|
|
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
2010-10-03 23:04:50 +02:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef _BROWSER_SOCKET_STREAM_BRIDGE_H
|
|
|
|
#define _BROWSER_SOCKET_STREAM_BRIDGE_H
|
|
|
|
|
2011-12-16 15:51:10 +01:00
|
|
|
#include "base/basictypes.h"
|
|
|
|
|
2011-01-07 22:34:20 +01:00
|
|
|
namespace net {
|
2010-10-03 23:04:50 +02:00
|
|
|
class URLRequestContext;
|
2011-10-12 21:09:15 +02:00
|
|
|
} // namespace net
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-16 15:51:10 +01:00
|
|
|
namespace WebKit {
|
|
|
|
class WebSocketStreamHandle;
|
|
|
|
} // namespace WebKit
|
|
|
|
|
|
|
|
namespace webkit_glue {
|
|
|
|
class WebSocketStreamHandleDelegate;
|
|
|
|
class WebSocketStreamHandleBridge;
|
|
|
|
} // namespace webkit_glue
|
|
|
|
|
2010-10-03 23:04:50 +02:00
|
|
|
class BrowserSocketStreamBridge {
|
|
|
|
public:
|
2011-01-07 22:34:20 +01:00
|
|
|
static void InitializeOnIOThread(net::URLRequestContext* request_context);
|
2010-10-03 23:04:50 +02:00
|
|
|
static void Cleanup();
|
2011-12-16 15:51:10 +01:00
|
|
|
static webkit_glue::WebSocketStreamHandleBridge* Create(
|
|
|
|
WebKit::WebSocketStreamHandle* handle,
|
|
|
|
webkit_glue::WebSocketStreamHandleDelegate* delegate);
|
|
|
|
|
|
|
|
private:
|
|
|
|
DISALLOW_IMPLICIT_CONSTRUCTORS(BrowserSocketStreamBridge);
|
2010-10-03 23:04:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _BROWSER_SOCKET_STREAM_BRIDGE_H
|