Index: components/dom_distiller/content/common/distiller_messages.h |
diff --git a/components/dom_distiller/content/common/distiller_messages.h b/components/dom_distiller/content/common/distiller_messages.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..39bb92c4dc7baef8d369a23de8ac934b30eb9f33 |
--- /dev/null |
+++ b/components/dom_distiller/content/common/distiller_messages.h |
@@ -0,0 +1,38 @@ |
+// 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. |
+ |
+// Multiply-included message file, hence no include guard. |
+ |
+#include <string> |
+#include <vector> |
+ |
+#include "base/strings/string16.h" |
+#include "content/public/common/common_param_traits.h" |
+#include "content/public/common/common_param_traits_macros.h" |
+#include "ipc/ipc_message_macros.h" |
+#include "ipc/ipc_message_utils.h" |
+ |
+#define IPC_MESSAGE_START DistillerMsgStart |
+ |
+IPC_STRUCT_BEGIN(FrameHostMsg_ExtractFeatureResponse_Params) |
mdjones
2015/09/29 17:31:42
In the future, this would be a good candidate for
wychen
2015/09/29 21:46:57
Totally agree.
|
+ IPC_STRUCT_MEMBER(bool, isOGArticle) |
+ IPC_STRUCT_MEMBER(std::string, url) |
+ IPC_STRUCT_MEMBER(int, numElements) |
+ IPC_STRUCT_MEMBER(int, numAnchors) |
+ IPC_STRUCT_MEMBER(int, numForms) |
+ IPC_STRUCT_MEMBER(std::string, innerText) |
+ IPC_STRUCT_MEMBER(std::string, textContent) |
+ IPC_STRUCT_MEMBER(std::string, innerHTML) |
+IPC_STRUCT_END() |
+ |
+// Request for the renderer to extract features used in DOM distiller. |
+// |
+// The result is sent back to the browser using the message |
+// FrameHostMsg_ExtractFeatureResponse. |
+IPC_MESSAGE_ROUTED1(FrameMsg_ExtractFeatureRequest, int /* ID */) |
+ |
+// Response for FrameMsg_ExtractFeatureRequest |
+IPC_MESSAGE_ROUTED2(FrameHostMsg_ExtractFeatureResponse, |
+ int /* ID */, |
+ FrameHostMsg_ExtractFeatureResponse_Params) |