0

Remove unused constants from ipc_message_start.h

Rename platform_notification_messages.h ->
    platform_notification_param_traits.h
since no messages remain.

Change-Id: I3439963c7107d779ef8c4eca6320a4fa39bb66d3
Reviewed-on: https://chromium-review.googlesource.com/1074227
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#562096}
This commit is contained in:
Tom Sepez
2018-05-26 01:22:59 +00:00
committed by Commit Bot
parent e0d88e2a45
commit 9847254bf1
6 changed files with 12 additions and 18 deletions

@ -13,7 +13,7 @@
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/browser/service_worker/service_worker_registration.h"
#include "content/browser/service_worker/service_worker_storage.h"
#include "content/common/platform_notification_messages.h"
#include "content/common/platform_notification_param_traits.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_process_host.h"

@ -241,7 +241,7 @@ source_set("common") {
"pepper_plugin_list.h",
"pepper_renderer_instance_data.cc",
"pepper_renderer_instance_data.h",
"platform_notification_messages.h",
"platform_notification_param_traits.h",
"plugin_list.cc",
"plugin_list.h",
"possibly_associated_interface_ptr.h",

@ -73,10 +73,10 @@
#ifndef CONTENT_COMMON_PAGE_MESSAGES_H_
#error "Failed to include content/common/page_messages.h"
#endif
#undef CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_
#include "content/common/platform_notification_messages.h"
#ifndef CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_
#error "Failed to include content/common/platform_notification_messages.h"
#undef CONTENT_COMMON_PLATFORM_NOTIFICATION_PARAM_TRAITS_H_
#include "content/common/platform_notification_param_traits.h"
#ifndef CONTENT_COMMON_PLATFORM_NOTIFICATION_PARAM_TRAITS_H_
#error "Failed to include content/common/platform_notification_param_traits.h"
#endif
#undef CONTENT_COMMON_RESOURCE_MESSAGES_H_
#include "content/common/resource_messages.h"

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_
#define CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_
#ifndef CONTENT_COMMON_PLATFORM_NOTIFICATION_PARAM_TRAITS_H_
#define CONTENT_COMMON_PLATFORM_NOTIFICATION_PARAM_TRAITS_H_
// Messages for platform-native notifications using the Web Notification API.
@ -17,13 +17,10 @@
#include "content/public/common/platform_notification_data.h"
#include "ipc/ipc_message_macros.h"
#define IPC_MESSAGE_START PlatformNotificationMsgStart
// TODO(https://crbug.com/841329): Delete this legacy IPC code, use a pure
// mojo struct instead from ServiceWorkerEventDispatcher mojo interface.
IPC_ENUM_TRAITS_MAX_VALUE(
content::PlatformNotificationData::Direction,
content::PlatformNotificationData::DIRECTION_LAST)
IPC_ENUM_TRAITS_MAX_VALUE(content::PlatformNotificationData::Direction,
content::PlatformNotificationData::DIRECTION_LAST)
IPC_ENUM_TRAITS_MAX_VALUE(content::PlatformNotificationActionType,
content::PLATFORM_NOTIFICATION_ACTION_TYPE_TEXT)
@ -54,4 +51,4 @@ IPC_STRUCT_TRAITS_BEGIN(content::PlatformNotificationData)
IPC_STRUCT_TRAITS_MEMBER(actions)
IPC_STRUCT_TRAITS_END()
#endif // CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_
#endif // CONTENT_COMMON_PLATFORM_NOTIFICATION_PARAM_TRAITS_H_

@ -11,7 +11,7 @@ public_headers = [
"//content/public/common/push_event_payload.h",
]
traits_headers = [
"//content/common/platform_notification_messages.h",
"//content/common/platform_notification_param_traits.h",
"//content/common/service_worker/service_worker_messages.h",
]
type_mappings = [

@ -24,12 +24,10 @@ enum IPCMessageStart {
MediaMsgStart,
PpapiMsgStart,
DOMStorageMsgStart,
SpeechRecognitionMsgStart,
P2PMsgStart,
ResourceMsgStart,
FileSystemMsgStart,
BlobMsgStart,
AudioMsgStart,
MidiMsgStart,
ChromeMsgStart,
DragMsgStart,
@ -58,7 +56,6 @@ enum IPCMessageStart {
ChromeUtilityPrintingMsgStart,
AecDumpMsgStart,
OzoneGpuMsgStart,
PlatformNotificationMsgStart,
LayoutTestMsgStart,
NetworkHintsMsgStart,
CastMediaMsgStart,