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

Unified Diff: mojo/services/html_viewer/web_socket_handle_impl.h

Issue 1099303002: Move html_viewer from mojo/services to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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
Index: mojo/services/html_viewer/web_socket_handle_impl.h
diff --git a/mojo/services/html_viewer/web_socket_handle_impl.h b/mojo/services/html_viewer/web_socket_handle_impl.h
deleted file mode 100644
index 878776d79c16ec647778659bff1cce05d1dd2c9c..0000000000000000000000000000000000000000
--- a/mojo/services/html_viewer/web_socket_handle_impl.h
+++ /dev/null
@@ -1,63 +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_HTML_VIEWER_WEB_SOCKET_HANDLE_IMPL_H_
-#define MOJO_SERVICES_HTML_VIEWER_WEB_SOCKET_HANDLE_IMPL_H_
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "mojo/common/handle_watcher.h"
-#include "mojo/services/network/public/interfaces/web_socket.mojom.h"
-#include "third_party/WebKit/public/platform/WebSocketHandle.h"
-
-namespace mojo {
-class NetworkService;
-class WebSocketWriteQueue;
-}
-
-namespace html_viewer {
-
-class WebSocketClientImpl;
-
-// Implements WebSocketHandle by talking to the mojo WebSocket interface.
-class WebSocketHandleImpl : public blink::WebSocketHandle {
- public:
- explicit WebSocketHandleImpl(mojo::NetworkService* network_service);
-
- private:
- friend class WebSocketClientImpl;
-
- virtual ~WebSocketHandleImpl();
-
- // blink::WebSocketHandle methods:
- virtual void connect(const blink::WebURL& url,
- const blink::WebVector<blink::WebString>& protocols,
- const blink::WebSerializedOrigin& origin,
- blink::WebSocketHandleClient*);
- virtual void send(bool fin, MessageType, const char* data, size_t size);
- virtual void flowControl(int64_t quota);
- virtual void close(unsigned short code, const blink::WebString& reason);
-
- // Called when we finished writing to |send_stream_|.
- void DidWriteToSendStream(bool fin,
- WebSocketHandle::MessageType type,
- uint32_t num_bytes,
- const char* data);
-
- // Called when the socket is closed.
- void Disconnect();
-
- mojo::WebSocketPtr web_socket_;
- scoped_ptr<WebSocketClientImpl> client_;
- mojo::ScopedDataPipeProducerHandle send_stream_;
- scoped_ptr<mojo::WebSocketWriteQueue> write_queue_;
- // True if close() was called.
- bool did_close_;
-
- DISALLOW_COPY_AND_ASSIGN(WebSocketHandleImpl);
-};
-
-} // namespace html_viewer
-
-#endif // MOJO_SERVICES_HTML_VIEWER_WEB_SOCKET_HANDLE_IMPL_H_
« no previous file with comments | « mojo/services/html_viewer/web_scheduler_impl.cc ('k') | mojo/services/html_viewer/web_socket_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698