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

Side by Side Diff: chrome/common/safe_browsing/csd.proto

Issue 7793012: Change the client-side phishing detection hashing function to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Brian's comments Created 9 years, 3 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
« no previous file with comments | « chrome/browser/safe_browsing/client_side_detection_service_unittest.cc ('k') | no next file » | 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 // Client side phishing and malware detection request and response 5 // Client side phishing and malware detection request and response
6 // protocol buffers. Those protocol messages should be kept in sync 6 // protocol buffers. Those protocol messages should be kept in sync
7 // with the server implementation. 7 // with the server implementation.
8 // 8 //
9 // If you want to change this protocol definition or you have questions 9 // If you want to change this protocol definition or you have questions
10 // regarding its format please contact chrome-anti-phishing@googlegroups.com. 10 // regarding its format please contact chrome-anti-phishing@googlegroups.com.
11 11
12 syntax = "proto2"; 12 syntax = "proto2";
13 13
14 option optimize_for = LITE_RUNTIME; 14 option optimize_for = LITE_RUNTIME;
15 15
16 package safe_browsing; 16 package safe_browsing;
17 17
18 message ClientPhishingRequest { 18 message ClientPhishingRequest {
19 // URL that the client visited. The CGI parameters are stripped by the 19 // URL that the client visited. The CGI parameters are stripped by the
20 // client. This field is ONLY set for UMA-enabled users. 20 // client. This field is ONLY set for UMA-enabled users.
21 optional string url = 1; 21 optional string url = 1;
22 22
23 // A 5-byte SHA-256 hash prefix of the URL, in SafeBrowsing host sufffix/path 23 // A 5-byte SHA-256 hash prefix of the URL. Before hashing the URL is
24 // prefix form with query parameters stripped (i.e. "www.example.com/1/2/"). 24 // canonicalized, converted to a suffix-prefix expression and broadened
25 // (www prefix is removed and everything past the last '/' is stripped).
25 // Unlike "url", this is sent for all users. 26 // Unlike "url", this is sent for all users.
26 optional bytes suffix_prefix_hash = 10; 27 optional bytes hash_prefix = 10;
27 28
28 // Score that was computed on the client. Value is between 0.0 and 1.0. 29 // Score that was computed on the client. Value is between 0.0 and 1.0.
29 // The larger the value the more likely the url is phishing. 30 // The larger the value the more likely the url is phishing.
30 required float client_score = 2; 31 required float client_score = 2;
31 32
32 // Note: we're skipping tag 3 because it was previously used. 33 // Note: we're skipping tag 3 because it was previously used.
33 34
34 // Is true if the features for this URL were classified as phishing. 35 // Is true if the features for this URL were classified as phishing.
35 // Currently, this will always be true for all client-phishing requests 36 // Currently, this will always be true for all client-phishing requests
36 // that are sent to the server. 37 // that are sent to the server.
(...skipping 24 matching lines...) Expand all
61 62
62 // The referrer URL. This field might not be set, for example, in the case 63 // The referrer URL. This field might not be set, for example, in the case
63 // where the referrer uses HTTPs. 64 // where the referrer uses HTTPs.
64 // OBSOLETE: Use feature 'Referrer=<referrer>' instead. 65 // OBSOLETE: Use feature 'Referrer=<referrer>' instead.
65 optional string OBSOLETE_referrer_url = 9; 66 optional string OBSOLETE_referrer_url = 9;
66 } 67 }
67 68
68 message ClientPhishingResponse { 69 message ClientPhishingResponse {
69 required bool phishy = 1; 70 required bool phishy = 1;
70 } 71 }
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/client_side_detection_service_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698