summaryrefslogtreecommitdiffstats
path: root/webkit/support/simple_socket_stream_bridge.h
blob: a68e3f16afed51b5019068c00499758f2a0f652f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 2011 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.

#ifndef WEBKIT_SUPPORT_SIMPLE_SOCKET_STREAM_BRIDGE_H_
#define WEBKIT_SUPPORT_SIMPLE_SOCKET_STREAM_BRIDGE_H_

#include "base/basictypes.h"

namespace net {
class URLRequestContext;
}  // namespace net

namespace WebKit {
class WebSocketStreamHandle;
}  // namespace WebKit

namespace webkit_glue {
class WebSocketStreamHandleDelegate;
class WebSocketStreamHandleBridge;
}  // namespace webkit_glue

class SimpleSocketStreamBridge {
 public:
  static void InitializeOnIOThread(net::URLRequestContext* request_context);
  static void Cleanup();
  static webkit_glue::WebSocketStreamHandleBridge* Create(
      WebKit::WebSocketStreamHandle* handle,
      webkit_glue::WebSocketStreamHandleDelegate* delegate);

 private:
  DISALLOW_IMPLICIT_CONSTRUCTORS(SimpleSocketStreamBridge);
};

#endif  // WEBKIT_SUPPORT_SIMPLE_SOCKET_STREAM_BRIDGE_H_