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.
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
#ifndef CEF_LIBCEF_BROWSER_SOCKET_STREAM_BRIDGE_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_SOCKET_STREAM_BRIDGE_H_
|
|
|
|
#pragma once
|
2010-10-03 23:04:50 +02:00
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
#endif // CEF_LIBCEF_BROWSER_SOCKET_STREAM_BRIDGE_H_
|