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

Unified Diff: components/webmessaging/public/interfaces/broadcast_channel.mojom

Issue 2158913006: Move BroadcastChannel browser code from components/ to content/browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « components/webmessaging/public/interfaces/OWNERS ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webmessaging/public/interfaces/broadcast_channel.mojom
diff --git a/components/webmessaging/public/interfaces/broadcast_channel.mojom b/components/webmessaging/public/interfaces/broadcast_channel.mojom
deleted file mode 100644
index fedc6df534f42ee0232845257ce0cf27c5225402..0000000000000000000000000000000000000000
--- a/components/webmessaging/public/interfaces/broadcast_channel.mojom
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2016 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.
-
-module webmessaging.mojom;
-
-import "url/mojo/origin.mojom";
-
-// A pair of BroadcastChannelClient interfaces is used to represent a connection
-// to a particular channel. One client is implemented in the browser, for
-// messages sent from the renderer to the browser, and one client is implemented
-// in the renderer for messages from the browser to the renderer.
-interface BroadcastChannelClient {
- // Messages are passed as SerializedScriptValue.
- OnMessage(string message);
-};
-
-// This interface is used to set up connections to broadcast channels. All
-// connections to channels made from the same event loop should be made
-// through the same BroadcastChannelProvider connection to ensure correct
-// ordering of messages.
-// Typically the browser will have one instance of a BroadcastChannelProvider
-// per storage partition, to which all connections from renderers in that
-// partition are bound. This instance will then forward messages received on a
-// particular connection to all other connections in the same storage partition
-// with the same origin and name.
-interface BroadcastChannelProvider {
- // Connect to the channel identified by the |origin| and |name|. Messages can
- // be sent to the channel using |sender|, and messages to the channel will be
- // received by |receiver|.
- ConnectToChannel(url.mojom.Origin origin, string name,
- associated BroadcastChannelClient receiver,
- associated BroadcastChannelClient& sender);
-};
« no previous file with comments | « components/webmessaging/public/interfaces/OWNERS ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698