Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: webkit/child/websocket_handle_delegate.h

Issue 22815034: Introduce webkit_glue bridges for the new WebSocket Implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_CHILD_WEBSOCKET_HANDLE_DELEGATE_H_
6 #define WEBKIT_CHILD_WEBSOCKET_HANDLE_DELEGATE_H_
7
8 #include <string>
9 #include <vector>
tyoshino (SeeGerritForStatus) 2013/09/03 07:18:30 unnecessary
yhirano 2013/09/03 09:12:08 Done.
10
11 #include "base/basictypes.h"
12 #include "base/memory/ref_counted.h"
tyoshino (SeeGerritForStatus) 2013/09/03 07:18:30 not used?
yhirano 2013/09/03 09:12:08 Done.
13 #include "webkit/child/websocket_handle_bridge.h"
14
15 class GURL;
16
17 namespace webkit_glue {
18
19 class WebSocketHandleDelegate {
20 public:
21 virtual void DidConnect(bool fail,
22 const std::string& protocol,
23 const std::string& extensions) = 0;
24 virtual void DidReceiveData(bool fin,
25 WebSocketHandleBridge::MessageType type,
26 const char* data,
27 size_t size) = 0;
28 virtual void DidReceiveFlowControl(int64_t quota) = 0;
29 virtual void DidClose(unsigned short code, const std::string& reason) = 0;
30
31 protected:
32 WebSocketHandleDelegate() {}
33 virtual ~WebSocketHandleDelegate() {}
34 };
35
36 } // namespace webkit_glue
37
38 #endif // WEBKIT_CHILD_WEBSOCKET_HANDLE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698