| Index: webkit/child/websocket_handle_delegate.h
|
| diff --git a/webkit/child/websocket_handle_delegate.h b/webkit/child/websocket_handle_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7ef5e84d40da048aa92283500ca86549d2c6350d
|
| --- /dev/null
|
| +++ b/webkit/child/websocket_handle_delegate.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright (c) 2013 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_CHILD_WEBSOCKET_HANDLE_DELEGATE_H_
|
| +#define WEBKIT_CHILD_WEBSOCKET_HANDLE_DELEGATE_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "webkit/child/websocket_handle_bridge.h"
|
| +
|
| +class GURL;
|
| +
|
| +namespace webkit_glue {
|
| +
|
| +class WebSocketHandleDelegate {
|
| + public:
|
| + virtual void DidConnect(bool fail,
|
| + const std::string& protocol,
|
| + const std::string& extensions) = 0;
|
| + virtual void DidReceiveData(bool fin,
|
| + WebSocketHandleBridge::MessageType type,
|
| + const char* data,
|
| + size_t size) = 0;
|
| + virtual void DidReceiveFlowControl(int64_t quota) = 0;
|
| + virtual void DidClose(unsigned short code, const std::string& reason) = 0;
|
| +
|
| + protected:
|
| + WebSocketHandleDelegate() {}
|
| + virtual ~WebSocketHandleDelegate() {}
|
| +};
|
| +
|
| +} // namespace webkit_glue
|
| +
|
| +#endif // WEBKIT_CHILD_WEBSOCKET_HANDLE_DELEGATE_H_
|
|
|