OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Multiply-included message file, so no include guard. | 5 // Multiply-included message file, so no include guard. |
6 | 6 |
7 #include "googleurl/src/gurl.h" | 7 #include "googleurl/src/gurl.h" |
8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
9 | 9 |
10 #define IPC_MESSAGE_START SafeBrowsingMsgStart | 10 #define IPC_MESSAGE_START SafeBrowsingMsgStart |
(...skipping 10 matching lines...) Expand all Loading... |
21 // URL of the parent node. Can be empty. | 21 // URL of the parent node. Can be empty. |
22 IPC_STRUCT_MEMBER(GURL, parent) | 22 IPC_STRUCT_MEMBER(GURL, parent) |
23 | 23 |
24 // children of this node. Can be emtpy. | 24 // children of this node. Can be emtpy. |
25 IPC_STRUCT_MEMBER(std::vector<GURL>, children) | 25 IPC_STRUCT_MEMBER(std::vector<GURL>, children) |
26 IPC_STRUCT_END() | 26 IPC_STRUCT_END() |
27 | 27 |
28 // SafeBrowsing client-side detection messages sent from the renderer to the | 28 // SafeBrowsing client-side detection messages sent from the renderer to the |
29 // browser. | 29 // browser. |
30 | 30 |
31 // Inform the browser that the URL in the given ClientPhishingRequest proto is | 31 // Inform the browser that the client-side phishing detector running in the |
32 // phishing according to the client-side phishing detector. | 32 // renderer is done classifying the current URL. If the URL is phishing |
| 33 // the request proto will have |is_phishing()| set to true. |
33 // TODO(noelutz): we may want to create custom ParamTraits for MessageLite to | 34 // TODO(noelutz): we may want to create custom ParamTraits for MessageLite to |
34 // have a generic way to send protocol messages over IPC. | 35 // have a generic way to send protocol messages over IPC. |
35 IPC_MESSAGE_ROUTED1(SafeBrowsingHostMsg_DetectedPhishingSite, | 36 IPC_MESSAGE_ROUTED1(SafeBrowsingHostMsg_PhishingDetectionDone, |
36 std::string /* encoded ClientPhishingRequest proto */) | 37 std::string /* encoded ClientPhishingRequest proto */) |
37 | 38 |
38 // Send part of the DOM to the browser, to be used in a malware report. | 39 // Send part of the DOM to the browser, to be used in a malware report. |
39 IPC_MESSAGE_ROUTED1(SafeBrowsingHostMsg_MalwareDOMDetails, | 40 IPC_MESSAGE_ROUTED1(SafeBrowsingHostMsg_MalwareDOMDetails, |
40 std::vector<SafeBrowsingHostMsg_MalwareDOMDetails_Node>) | 41 std::vector<SafeBrowsingHostMsg_MalwareDOMDetails_Node>) |
41 | 42 |
42 // SafeBrowsing client-side detection messages sent from the browser to the | 43 // SafeBrowsing client-side detection messages sent from the browser to the |
43 // renderer. | 44 // renderer. |
44 | 45 |
45 // A classification model for client-side phishing detection. | 46 // A classification model for client-side phishing detection. |
46 // The string is an encoded safe_browsing::ClientSideModel protocol buffer. | 47 // The string is an encoded safe_browsing::ClientSideModel protocol buffer. |
47 IPC_MESSAGE_CONTROL1(SafeBrowsingMsg_SetPhishingModel, | 48 IPC_MESSAGE_CONTROL1(SafeBrowsingMsg_SetPhishingModel, |
48 std::string /* encoded ClientSideModel proto */) | 49 std::string /* encoded ClientSideModel proto */) |
49 | 50 |
50 // Request a DOM tree when a malware interstitial is shown. | 51 // Request a DOM tree when a malware interstitial is shown. |
51 IPC_MESSAGE_ROUTED0(SafeBrowsingMsg_GetMalwareDOMDetails) | 52 IPC_MESSAGE_ROUTED0(SafeBrowsingMsg_GetMalwareDOMDetails) |
52 | 53 |
53 // Tells the renderer to begin phishing detection for the given toplevel URL | 54 // Tells the renderer to begin phishing detection for the given toplevel URL |
54 // which it has started loading. | 55 // which it has started loading. |
55 IPC_MESSAGE_ROUTED1(SafeBrowsingMsg_StartPhishingDetection, | 56 IPC_MESSAGE_ROUTED1(SafeBrowsingMsg_StartPhishingDetection, |
56 GURL) | 57 GURL) |
OLD | NEW |