OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 // IPC messages for the web manifest manager. |
| 6 // Multiply-included message file, hence no include guard. |
| 7 |
| 8 #include "content/common/content_export.h" |
| 9 #include "content/public/common/manifest.h" |
| 10 #include "ipc/ipc_message_macros.h" |
| 11 |
| 12 #undef IPC_MESSAGE_EXPORT |
| 13 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 14 |
| 15 #define IPC_MESSAGE_START ManifestManagerMsgStart |
| 16 |
| 17 IPC_STRUCT_TRAITS_BEGIN(content::Manifest) |
| 18 IPC_STRUCT_TRAITS_MEMBER(name) |
| 19 IPC_STRUCT_TRAITS_MEMBER(short_name) |
| 20 IPC_STRUCT_TRAITS_END() |
| 21 |
| 22 // The browser process requests for the manifest linked with the associated |
| 23 // render frame. The renderer process will respond via a RequestManifestResponse |
| 24 // IPC message with a Manifest object attached to it and the associated |
| 25 // |request_id| that was initially given. |
| 26 IPC_MESSAGE_ROUTED1(ManifestManagerMsg_RequestManifest, |
| 27 int /* request_id */) |
| 28 |
| 29 // The renderer process' response to a RequestManifest. The |request_id| will |
| 30 // match the one that was initially received. The |manifest| object will be an |
| 31 // empty manifest in case of any failure. |
| 32 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_RequestManifestResponse, |
| 33 int, /* request_id */ |
| 34 content::Manifest /* manifest */) |
OLD | NEW |