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