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

Unified Diff: mojo/services/html_viewer/web_message_port_channel_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_message_port_channel_impl.h
diff --git a/mojo/services/html_viewer/web_message_port_channel_impl.h b/mojo/services/html_viewer/web_message_port_channel_impl.h
deleted file mode 100644
index 0336dcc72bdf32b329dc64ff0bef585c4a0084e0..0000000000000000000000000000000000000000
--- a/mojo/services/html_viewer/web_message_port_channel_impl.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2015 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_MESSAGE_PORT_CHANNEL_IMPL_H_
-#define MOJO_SERVICES_HTML_VIEWER_WEB_MESSAGE_PORT_CHANNEL_IMPL_H_
-
-#include "base/basictypes.h"
-#include "mojo/common/handle_watcher.h"
-#include "third_party/WebKit/public/platform/WebMessagePortChannel.h"
-#include "third_party/mojo/src/mojo/public/cpp/system/message_pipe.h"
-
-namespace html_viewer {
-
-class WebMessagePortChannelImpl : public blink::WebMessagePortChannel {
- public:
- static void CreatePair(
- blink::WebMessagePortChannel** channel1,
- blink::WebMessagePortChannel** channel2);
-
- private:
- explicit WebMessagePortChannelImpl(mojo::ScopedMessagePipeHandle pipe);
- virtual ~WebMessagePortChannelImpl();
-
- // blink::WebMessagePortChannel implementation.
- virtual void setClient(blink::WebMessagePortChannelClient* client);
- virtual void destroy();
- virtual void postMessage(const blink::WebString& message,
- blink::WebMessagePortChannelArray* channels);
- virtual bool tryGetMessage(blink::WebString* message,
- blink::WebMessagePortChannelArray& channels);
-
- void WaitForNextMessage();
- void OnMessageAvailable(MojoResult result);
-
- blink::WebMessagePortChannelClient* client_;
- mojo::ScopedMessagePipeHandle pipe_;
- mojo::common::HandleWatcher handle_watcher_;
-
- DISALLOW_COPY_AND_ASSIGN(WebMessagePortChannelImpl);
-};
-
-} // namespace html_viewer
-
-#endif // MOJO_SERVICES_HTML_VIEWER_WEB_MESSAGE_PORT_CHANNEL_IMPL_H_
« no previous file with comments | « mojo/services/html_viewer/web_media_player_factory.cc ('k') | mojo/services/html_viewer/web_message_port_channel_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698