| Index: components/framelet/common/framelet_messages.h
|
| diff --git a/components/framelet/common/framelet_messages.h b/components/framelet/common/framelet_messages.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..76c74e8d43863bae642aa8c48a88d05a01ac0610
|
| --- /dev/null
|
| +++ b/components/framelet/common/framelet_messages.h
|
| @@ -0,0 +1,22 @@
|
| +// 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.
|
| +
|
| +#include "components/framelet/browser/resource_usage_reporter.h"
|
| +#include "ipc/ipc_message_macros.h"
|
| +
|
| +#define IPC_MESSAGE_START ChromeGuestViewMsgStart
|
| +
|
| +IPC_ENUM_TRAITS_MAX_VALUE(framelet::ResourceUsageLevel,
|
| + framelet::ResourceUsageLevel::MAX_VALUE)
|
| +
|
| +// TODO(fsamuel): This is a hack. This ParamTrait should be defined somewhere
|
| +// that is accessible from both within and outside of content.
|
| +
|
| +// Request the JavaScript heap size from the guest.
|
| +IPC_MESSAGE_CONTROL1(ChromeGuestViewMsg_RequestHeapSize, int /* routing_id */)
|
| +
|
| +// The guest returns the heap size to the browser process.
|
| +IPC_MESSAGE_CONTROL2(ChromeGuestViewHostMsg_HeapSize,
|
| + int /* routing_id */,
|
| + int /* heap_size */)
|
|
|