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

Unified Diff: android_webview/browser/aw_message_port_message_filter.h

Issue 2375133002: Move MessagePort implementation from android_webview to content (Closed)
Patch Set: rsesek nits and git cl format Created 4 years, 2 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: android_webview/browser/aw_message_port_message_filter.h
diff --git a/android_webview/browser/aw_message_port_message_filter.h b/android_webview/browser/aw_message_port_message_filter.h
deleted file mode 100644
index ca0c8fb46fc85458840bf0c0ea11d269b7c800f4..0000000000000000000000000000000000000000
--- a/android_webview/browser/aw_message_port_message_filter.h
+++ /dev/null
@@ -1,58 +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 ANDROID_WEBVIEW_BROWSER_MESSAGE_PORT_MESSAGE_FILTER_H_
-#define ANDROID_WEBVIEW_BROWSER_MESSAGE_PORT_MESSAGE_FILTER_H_
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "content/public/browser/browser_message_filter.h"
-#include "content/public/browser/message_port_delegate.h"
-
-namespace android_webview {
-
-// Filter for Aw specific MessagePort related IPC messages (creating and
-// destroying a MessagePort, sending a message via a MessagePort etc).
-class AwMessagePortMessageFilter : public content::BrowserMessageFilter,
- public content::MessagePortDelegate {
- public:
- explicit AwMessagePortMessageFilter(int route_id);
-
- // BrowserMessageFilter implementation.
- void OnChannelClosing() override;
- bool OnMessageReceived(const IPC::Message& message) override;
- void OnDestruct() const override;
-
- void SendAppToWebMessage(int msg_port_route_id,
- const base::string16& message,
- const std::vector<int>& sent_message_port_ids);
- void SendClosePortMessage(int message_port_id);
-
- // MessagePortDelegate implementation.
- void SendMessage(
- int msg_port_route_id,
- const base::string16& message,
- const std::vector<int>& sent_message_ports)
- override;
- void SendMessagesAreQueued(int route_id) override;
- private:
- friend class content::BrowserThread;
- friend class base::DeleteHelper<AwMessagePortMessageFilter>;
-
- void OnConvertedAppToWebMessage(
- int msg_port_id,
- const base::string16& message,
- const std::vector<int>& sent_message_port_ids);
- void OnClosePortAck(int message_port_id);
-
- ~AwMessagePortMessageFilter() override;
-
- int route_id_;
-
- DISALLOW_COPY_AND_ASSIGN(AwMessagePortMessageFilter);
-};
-
-} // namespace android_webview
-
-#endif // ANDROID_WEBVIEW_BROWSER_MESSAGE_PORT_MESSAGE_FILTER_H_
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | android_webview/browser/aw_message_port_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698