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

Unified Diff: mojo/services/network/web_socket_impl.h

Issue 1873463003: Remove mojo network service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/network/web_socket_factory_impl.cc ('k') | mojo/services/network/web_socket_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/web_socket_impl.h
diff --git a/mojo/services/network/web_socket_impl.h b/mojo/services/network/web_socket_impl.h
deleted file mode 100644
index 06fd3ca614cb18dcb7a03618e607294e365c3122..0000000000000000000000000000000000000000
--- a/mojo/services/network/web_socket_impl.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2014 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 MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_
-#define MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_
-
-#include <stdint.h>
-
-#include "base/memory/scoped_ptr.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
-#include "mojo/services/network/public/interfaces/web_socket.mojom.h"
-#include "mojo/shell/public/cpp/message_loop_ref.h"
-
-namespace net {
-class WebSocketChannel;
-} // namespace net
-
-namespace mojo {
-class NetworkContext;
-class WebSocketReadQueue;
-
-// Forms a bridge between the WebSocket mojo interface and the net::WebSocket
-// implementation.
-class WebSocketImpl : public WebSocket {
- public:
- WebSocketImpl(NetworkContext* context,
- scoped_ptr<mojo::MessageLoopRef> app_refcount,
- InterfaceRequest<WebSocket> request);
- ~WebSocketImpl() override;
-
- private:
- // WebSocket methods:
- void Connect(const String& url,
- Array<String> protocols,
- const String& origin,
- ScopedDataPipeConsumerHandle send_stream,
- WebSocketClientPtr client) override;
- void Send(bool fin, WebSocket::MessageType type, uint32_t num_bytes) override;
- void FlowControl(int64_t quota) override;
- void Close(uint16_t code, const String& reason) override;
-
- // Called with the data to send once it has been read from |send_stream_|.
- void DidReadFromSendStream(bool fin,
- WebSocket::MessageType type,
- uint32_t num_bytes,
- const char* data);
-
- // The channel we use to send events to the network.
- scoped_ptr<net::WebSocketChannel> channel_;
- ScopedDataPipeConsumerHandle send_stream_;
- scoped_ptr<WebSocketReadQueue> read_queue_;
- NetworkContext* context_;
- scoped_ptr<mojo::MessageLoopRef> app_refcount_;
- StrongBinding<WebSocket> binding_;
-};
-
-} // namespace mojo
-
-#endif // MOJO_SERVICES_NETWORK_WEB_SOCKET_IMPL_H_
« no previous file with comments | « mojo/services/network/web_socket_factory_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