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

Side by Side Diff: content/child/web_socket_stream_handle_delegate.h

Issue 655253006: Remove old WebSocket implementation from content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 2 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 2014 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 CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_DELEGATE_H_
6 #define CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_DELEGATE_H_
7
8 #include "base/strings/string16.h"
9
10 class GURL;
11
12 namespace blink {
13 class WebSocketStreamHandle;
14 }
15
16 namespace content {
17
18 class WebSocketStreamHandleDelegate {
19 public:
20 WebSocketStreamHandleDelegate() {}
21
22 virtual void WillOpenStream(blink::WebSocketStreamHandle* handle,
23 const GURL& url) {}
24 virtual void WillSendData(blink::WebSocketStreamHandle* handle,
25 const char* data, int len) {}
26
27 virtual void DidOpenStream(blink::WebSocketStreamHandle* handle,
28 int max_amount_send_allowed) {}
29 virtual void DidSendData(blink::WebSocketStreamHandle* handle,
30 int amount_sent) {}
31 virtual void DidReceiveData(blink::WebSocketStreamHandle* handle,
32 const char* data, int len) {}
33 virtual void DidClose(blink::WebSocketStreamHandle*) {}
34 virtual void DidFail(blink::WebSocketStreamHandle* handle,
35 int error_code,
36 const base::string16& error_msg) {}
37
38 protected:
39 virtual ~WebSocketStreamHandleDelegate() {}
40 };
41
42 } // namespace content
43
44 #endif // CONTENT_CHILD_WEB_SOCKET_STREAM_HANDLE_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/child/web_socket_stream_handle_bridge.h ('k') | content/child/web_socket_stream_handle_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698