| 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 26 matching lines...) Expand all Loading... |
| 37 std::string /* encoded ClientPhishingRequest proto */) | 37 std::string /* encoded ClientPhishingRequest proto */) |
| 38 | 38 |
| 39 // 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. |
| 40 IPC_MESSAGE_ROUTED1(SafeBrowsingHostMsg_MalwareDOMDetails, | 40 IPC_MESSAGE_ROUTED1(SafeBrowsingHostMsg_MalwareDOMDetails, |
| 41 std::vector<SafeBrowsingHostMsg_MalwareDOMDetails_Node>) | 41 std::vector<SafeBrowsingHostMsg_MalwareDOMDetails_Node>) |
| 42 | 42 |
| 43 // SafeBrowsing client-side detection messages sent from the browser to the | 43 // SafeBrowsing client-side detection messages sent from the browser to the |
| 44 // renderer. | 44 // renderer. |
| 45 | 45 |
| 46 // A classification model for client-side phishing detection. | 46 // A classification model for client-side phishing detection. |
| 47 // The string is an encoded safe_browsing::ClientSideModel protocol buffer. | 47 // The string is an encoded safe_browsing::ClientSideModel protocol buffer, or |
| 48 // empty to disable client-side phishing detection for this renderer. |
| 48 IPC_MESSAGE_CONTROL1(SafeBrowsingMsg_SetPhishingModel, | 49 IPC_MESSAGE_CONTROL1(SafeBrowsingMsg_SetPhishingModel, |
| 49 std::string /* encoded ClientSideModel proto */) | 50 std::string /* encoded ClientSideModel proto */) |
| 50 | 51 |
| 51 // Request a DOM tree when a malware interstitial is shown. | 52 // Request a DOM tree when a malware interstitial is shown. |
| 52 IPC_MESSAGE_ROUTED0(SafeBrowsingMsg_GetMalwareDOMDetails) | 53 IPC_MESSAGE_ROUTED0(SafeBrowsingMsg_GetMalwareDOMDetails) |
| 53 | 54 |
| 54 // Tells the renderer to begin phishing detection for the given toplevel URL | 55 // Tells the renderer to begin phishing detection for the given toplevel URL |
| 55 // which it has started loading. | 56 // which it has started loading. |
| 56 IPC_MESSAGE_ROUTED1(SafeBrowsingMsg_StartPhishingDetection, | 57 IPC_MESSAGE_ROUTED1(SafeBrowsingMsg_StartPhishingDetection, |
| 57 GURL) | 58 GURL) |
| OLD | NEW |