| 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..1f8b273e027a8c34f213f57d8d9055901ccfc646
|
| --- /dev/null
|
| +++ b/webkit/child/websocket_handle_delegate.h
|
| @@ -0,0 +1,38 @@
|
| +// 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 <vector>
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/memory/ref_counted.h"
|
| +#include "webkit/child/websocket_handle_bridge.h"
|
| +
|
| +class GURL;
|
| +
|
| +namespace webkit_glue {
|
| +
|
| +class WebSocketHandleDelegate {
|
| + public:
|
| + virtual void DidConnect(bool succeed,
|
| + const std::string& protocol,
|
| + const std::string& extensions) = 0;
|
| + virtual void DidReceiveData(WebSocketHandleBridge::MessageType type,
|
| + const char* data,
|
| + size_t size,
|
| + bool fin) = 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_
|
|
|