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

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

Issue 8310014: Only send the client-side phishing model to a renderer if its profile has SafeBrowsing enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a comment as Noe suggested Created 9 years, 2 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 | Annotate | Revision Log
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 "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
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)
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.cc ('k') | chrome/renderer/safe_browsing/phishing_classifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698