Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Unified Diff: content/common/manifest_manager_messages.h

Issue 537053002: Implement ManifestManager to handle manifest in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@manifest_fetcher
Patch Set: fix content_browsertests compile Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/manifest_manager_messages.h
diff --git a/content/common/manifest_manager_messages.h b/content/common/manifest_manager_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..380b8a47eb0581eb41425da38111ef288fb2273f
--- /dev/null
+++ b/content/common/manifest_manager_messages.h
@@ -0,0 +1,34 @@
+// Copyright 2014 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.
+
+// IPC messages for the web manifest manager.
+// Multiply-included message file, hence no include guard.
+
+#include "content/common/content_export.h"
+#include "content/public/common/manifest.h"
+#include "ipc/ipc_message_macros.h"
+
+#undef IPC_MESSAGE_EXPORT
+#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
+
+#define IPC_MESSAGE_START ManifestManagerMsgStart
+
+IPC_STRUCT_TRAITS_BEGIN(content::Manifest)
+ IPC_STRUCT_TRAITS_MEMBER(name)
+ IPC_STRUCT_TRAITS_MEMBER(short_name)
+IPC_STRUCT_TRAITS_END()
+
+// The browser process requests for the manifest linked with the associated
+// render frame. The renderer process will respond via a RequestManifestResponse
+// IPC message with a Manifest object attached to it and the associated
+// |request_id| that was initially given.
+IPC_MESSAGE_ROUTED1(ManifestManagerMsg_RequestManifest,
+ int /* request_id */)
+
+// The renderer process' response to a RequestManifest. The |request_id| will
+// match the one that was initially received. The |manifest| object will be an
+// empty manifest in case of any failure.
+IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_RequestManifestResponse,
+ int, /* request_id */
+ content::Manifest /* manifest */)
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698