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

Side by Side Diff: mojo/services/network/web_socket_impl.h

Issue 540683002: Mojo: Implement the rest of the WebSocket interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_ 5 #ifndef MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_
6 #define MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_ 6 #define MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "mojo/public/cpp/bindings/interface_impl.h" 10 #include "mojo/public/cpp/bindings/interface_impl.h"
(...skipping 19 matching lines...) Expand all
30 30
31 // WebSocket methods: 31 // WebSocket methods:
32 virtual void Connect(const String& url, 32 virtual void Connect(const String& url,
33 Array<String> protocols, 33 Array<String> protocols,
34 const String& origin, 34 const String& origin,
35 WebSocketClientPtr client) OVERRIDE; 35 WebSocketClientPtr client) OVERRIDE;
36 virtual void Send(bool fin, 36 virtual void Send(bool fin,
37 WebSocket::MessageType type, 37 WebSocket::MessageType type,
38 ScopedDataPipeConsumerHandle data) OVERRIDE; 38 ScopedDataPipeConsumerHandle data) OVERRIDE;
39 virtual void FlowControl(int64_t quota) OVERRIDE; 39 virtual void FlowControl(int64_t quota) OVERRIDE;
40 virtual void Close(int16_t code, const String& reason) OVERRIDE; 40 virtual void Close(uint16_t code, const String& reason) OVERRIDE;
41 41
42 // The channel we use to send events to the network. 42 // The channel we use to send events to the network.
43 scoped_ptr<net::WebSocketChannel> channel_; 43 scoped_ptr<net::WebSocketChannel> channel_;
44 NetworkContext* context_; 44 NetworkContext* context_;
45 }; 45 };
46 46
47 } // namespace mojo 47 } // namespace mojo
48 48
49 #endif // MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_ 49 #endif // MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/websockethandle_impl.cc ('k') | mojo/services/network/web_socket_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698