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

Side by Side 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, 2 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 unified diff | Download patch
OLDNEW
(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 // Multiply-included message file, hence no include guard.
6
7 #include <string>
8 #include <vector>
9
10 #include "base/strings/string16.h"
11 #include "content/public/common/common_param_traits.h"
12 #include "content/public/common/common_param_traits_macros.h"
13 #include "ipc/ipc_message_macros.h"
14 #include "ipc/ipc_message_utils.h"
15
16 #define IPC_MESSAGE_START DistillerMsgStart
17
18 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.
19 IPC_STRUCT_MEMBER(bool, isOGArticle)
20 IPC_STRUCT_MEMBER(std::string, url)
21 IPC_STRUCT_MEMBER(int, numElements)
22 IPC_STRUCT_MEMBER(int, numAnchors)
23 IPC_STRUCT_MEMBER(int, numForms)
24 IPC_STRUCT_MEMBER(std::string, innerText)
25 IPC_STRUCT_MEMBER(std::string, textContent)
26 IPC_STRUCT_MEMBER(std::string, innerHTML)
27 IPC_STRUCT_END()
28
29 // Request for the renderer to extract features used in DOM distiller.
30 //
31 // The result is sent back to the browser using the message
32 // FrameHostMsg_ExtractFeatureResponse.
33 IPC_MESSAGE_ROUTED1(FrameMsg_ExtractFeatureRequest, int /* ID */)
34
35 // Response for FrameMsg_ExtractFeatureRequest
36 IPC_MESSAGE_ROUTED2(FrameHostMsg_ExtractFeatureResponse,
37 int /* ID */,
38 FrameHostMsg_ExtractFeatureResponse_Params)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698