| Index: content/browser/android/app_web_message_port_message_filter.h
|
| diff --git a/android_webview/browser/aw_message_port_message_filter.h b/content/browser/android/app_web_message_port_message_filter.h
|
| similarity index 72%
|
| rename from android_webview/browser/aw_message_port_message_filter.h
|
| rename to content/browser/android/app_web_message_port_message_filter.h
|
| index ca0c8fb46fc85458840bf0c0ea11d269b7c800f4..f42252e6feb7d8ab50caf9b78e6e15c79d754d41 100644
|
| --- a/android_webview/browser/aw_message_port_message_filter.h
|
| +++ b/content/browser/android/app_web_message_port_message_filter.h
|
| @@ -2,22 +2,22 @@
|
| // 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_
|
| +#ifndef CONTENT_BROWSER_ANDROID_APP_WEB_MESSAGE_PORT_MESSAGE_FILTER_H_
|
| +#define CONTENT_BROWSER_ANDROID_APP_WEB_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 {
|
| +namespace content {
|
|
|
| // 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,
|
| +class AppWebMessagePortMessageFilter : public content::BrowserMessageFilter,
|
| public content::MessagePortDelegate {
|
| public:
|
| - explicit AwMessagePortMessageFilter(int route_id);
|
| + explicit AppWebMessagePortMessageFilter(int route_id);
|
|
|
| // BrowserMessageFilter implementation.
|
| void OnChannelClosing() override;
|
| @@ -38,7 +38,7 @@ class AwMessagePortMessageFilter : public content::BrowserMessageFilter,
|
| void SendMessagesAreQueued(int route_id) override;
|
| private:
|
| friend class content::BrowserThread;
|
| - friend class base::DeleteHelper<AwMessagePortMessageFilter>;
|
| + friend class base::DeleteHelper<AppWebMessagePortMessageFilter>;
|
|
|
| void OnConvertedAppToWebMessage(
|
| int msg_port_id,
|
| @@ -46,13 +46,13 @@ class AwMessagePortMessageFilter : public content::BrowserMessageFilter,
|
| const std::vector<int>& sent_message_port_ids);
|
| void OnClosePortAck(int message_port_id);
|
|
|
| - ~AwMessagePortMessageFilter() override;
|
| + ~AppWebMessagePortMessageFilter() override;
|
|
|
| int route_id_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(AwMessagePortMessageFilter);
|
| + DISALLOW_COPY_AND_ASSIGN(AppWebMessagePortMessageFilter);
|
| };
|
|
|
| -} // namespace android_webview
|
| +} // namespace content
|
|
|
| -#endif // ANDROID_WEBVIEW_BROWSER_MESSAGE_PORT_MESSAGE_FILTER_H_
|
| +#endif // CONTENT_BROWSER_ANDROID_APP_WEB_MESSAGE_PORT_MESSAGE_FILTER_H_
|
|
|