Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: chrome/common/safe_browsing/safebrowsing_messages.h

Issue 1081403002: Refactor safe-browsing build-config definitions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again to fix collision Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/common_message_generator.h ('k') | chrome/renderer/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/common/common_message_generator.h ('k') | chrome/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698