| 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 <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
| 11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
| 12 #include "url/ipc/url_param_traits.h" |
| 12 | 13 |
| 13 #define IPC_MESSAGE_START SafeBrowsingMsgStart | 14 #define IPC_MESSAGE_START SafeBrowsingMsgStart |
| 14 | 15 |
| 15 // A node is essentially a frame. | 16 // A node is essentially a frame. |
| 16 IPC_STRUCT_BEGIN(SafeBrowsingHostMsg_ThreatDOMDetails_Node) | 17 IPC_STRUCT_BEGIN(SafeBrowsingHostMsg_ThreatDOMDetails_Node) |
| 17 // URL of this resource. Can be empty. | 18 // URL of this resource. Can be empty. |
| 18 IPC_STRUCT_MEMBER(GURL, url) | 19 IPC_STRUCT_MEMBER(GURL, url) |
| 19 | 20 |
| 20 // If this resource was in the "src" attribute of a tag, this is the tagname | 21 // If this resource was in the "src" attribute of a tag, this is the tagname |
| 21 // (eg "IFRAME"). Can be empty. | 22 // (eg "IFRAME"). Can be empty. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // The string is an encoded safe_browsing::ClientSideModel protocol buffer, or | 57 // The string is an encoded safe_browsing::ClientSideModel protocol buffer, or |
| 57 // empty to disable client-side phishing detection for this renderer. | 58 // empty to disable client-side phishing detection for this renderer. |
| 58 IPC_MESSAGE_CONTROL1(SafeBrowsingMsg_SetPhishingModel, | 59 IPC_MESSAGE_CONTROL1(SafeBrowsingMsg_SetPhishingModel, |
| 59 std::string /* encoded ClientSideModel proto */) | 60 std::string /* encoded ClientSideModel proto */) |
| 60 | 61 |
| 61 // Tells the renderer to begin phishing detection for the given toplevel URL | 62 // Tells the renderer to begin phishing detection for the given toplevel URL |
| 62 // which it has started loading. | 63 // which it has started loading. |
| 63 IPC_MESSAGE_ROUTED1(SafeBrowsingMsg_StartPhishingDetection, | 64 IPC_MESSAGE_ROUTED1(SafeBrowsingMsg_StartPhishingDetection, |
| 64 GURL) | 65 GURL) |
| 65 #endif | 66 #endif |
| OLD | NEW |