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

Unified Diff: content/public/browser/message_port_delegate.h

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add missing ScopedAsyncTaskScheduler instance for the new unit tests; required by a recent change t… Created 3 years, 10 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: content/public/browser/message_port_delegate.h
diff --git a/content/public/browser/message_port_delegate.h b/content/public/browser/message_port_delegate.h
deleted file mode 100644
index 4364ba7af9a16fd86bf22340f8fcb15f13279ad3..0000000000000000000000000000000000000000
--- a/content/public/browser/message_port_delegate.h
+++ /dev/null
@@ -1,42 +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 CONTENT_PUBLIC_BROWSER_MESSAGE_PORT_DELEGATE_H_
-#define CONTENT_PUBLIC_BROWSER_MESSAGE_PORT_DELEGATE_H_
-
-#include <vector>
-
-#include "base/strings/string16.h"
-#include "content/common/content_export.h"
-
-// Windows headers will redefine SendMessage.
-#ifdef SendMessage
-#undef SendMessage
-#endif
-
-namespace content {
-
-// Delegate used by MessagePortService to send messages to message ports to the
-// correct renderer. Delegates are responsible for managing their own lifetime,
-// and should call MessagePortService::OnMessagePortDelegateClosing if they are
-// destroyed while there are still message ports associated with them.
-class CONTENT_EXPORT MessagePortDelegate {
- public:
- // Sends a message to the given route. Implementations are responsible for
- // updating MessagePortService with new routes for the sent message ports.
- virtual void SendMessage(
- int route_id,
- const base::string16& message,
- const std::vector<int>& sent_message_ports) = 0;
-
- // Requests messages to the given route to be queued.
- virtual void SendMessagesAreQueued(int route_id) = 0;
-
- protected:
- virtual ~MessagePortDelegate() {}
-};
-
-} // namespace content
-
-#endif // CONTENT_PUBLIC_BROWSER_MESSAGE_PORT_DELEGATE_H_
« no previous file with comments | « content/public/browser/android/app_web_message_port_service.h ('k') | content/public/browser/message_port_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698