OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/framelet/browser/resource_usage_reporter.h" |
| 6 #include "ipc/ipc_message_macros.h" |
| 7 |
| 8 #define IPC_MESSAGE_START ChromeGuestViewMsgStart |
| 9 |
| 10 IPC_ENUM_TRAITS_MAX_VALUE(framelet::ResourceUsageLevel, |
| 11 framelet::ResourceUsageLevel::MAX_VALUE) |
| 12 |
| 13 // TODO(fsamuel): This is a hack. This ParamTrait should be defined somewhere |
| 14 // that is accessible from both within and outside of content. |
| 15 |
| 16 // Request the JavaScript heap size from the guest. |
| 17 IPC_MESSAGE_CONTROL1(ChromeGuestViewMsg_RequestHeapSize, int /* routing_id */) |
| 18 |
| 19 // The guest returns the heap size to the browser process. |
| 20 IPC_MESSAGE_CONTROL2(ChromeGuestViewHostMsg_HeapSize, |
| 21 int /* routing_id */, |
| 22 int /* heap_size */) |
OLD | NEW |