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

Unified Diff: components/dom_distiller/content/common/distiller_messages.h

Issue 1248643004: Test distillability without JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@early
Patch Set: move tests, remove dbg msg Created 5 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
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)

Powered by Google App Engine
This is Rietveld 408576698