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 | 12 |
13 #if !defined(SAFE_BROWSING_SERVICE) | |
14 #error "Safe browsing should be enabled" | |
15 #endif | |
16 | |
17 #define IPC_MESSAGE_START SafeBrowsingMsgStart | 13 #define IPC_MESSAGE_START SafeBrowsingMsgStart |
18 | 14 |
19 // A node is essentially a frame. | 15 // A node is essentially a frame. |
20 IPC_STRUCT_BEGIN(SafeBrowsingHostMsg_MalwareDOMDetails_Node) | 16 IPC_STRUCT_BEGIN(SafeBrowsingHostMsg_MalwareDOMDetails_Node) |
21 // URL of this resource. Can be empty. | 17 // URL of this resource. Can be empty. |
22 IPC_STRUCT_MEMBER(GURL, url) | 18 IPC_STRUCT_MEMBER(GURL, url) |
23 | 19 |
24 // If this resource was in the "src" attribute of a tag, this is the tagname | 20 // If this resource was in the "src" attribute of a tag, this is the tagname |
25 // (eg "IFRAME"). Can be empty. | 21 // (eg "IFRAME"). Can be empty. |
26 IPC_STRUCT_MEMBER(std::string, tag_name) | 22 IPC_STRUCT_MEMBER(std::string, tag_name) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // The string is an encoded safe_browsing::ClientSideModel protocol buffer, or | 56 // The string is an encoded safe_browsing::ClientSideModel protocol buffer, or |
61 // empty to disable client-side phishing detection for this renderer. | 57 // empty to disable client-side phishing detection for this renderer. |
62 IPC_MESSAGE_CONTROL1(SafeBrowsingMsg_SetPhishingModel, | 58 IPC_MESSAGE_CONTROL1(SafeBrowsingMsg_SetPhishingModel, |
63 std::string /* encoded ClientSideModel proto */) | 59 std::string /* encoded ClientSideModel proto */) |
64 | 60 |
65 // Tells the renderer to begin phishing detection for the given toplevel URL | 61 // Tells the renderer to begin phishing detection for the given toplevel URL |
66 // which it has started loading. | 62 // which it has started loading. |
67 IPC_MESSAGE_ROUTED1(SafeBrowsingMsg_StartPhishingDetection, | 63 IPC_MESSAGE_ROUTED1(SafeBrowsingMsg_StartPhishingDetection, |
68 GURL) | 64 GURL) |
69 #endif | 65 #endif |
OLD | NEW |