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

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: 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
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 // Unlike "url", this is sent for all users. 25 // (www prefix is removed and everything past the last '/' is stripped).
Brian Ryner 2011/08/30 00:35:10 Keep the comment about this being sent for all use
noelutz 2011/08/30 00:39:52 Done.
26 optional bytes suffix_prefix_hash = 10; 26 optional bytes hash_prefix = 10;
27 27
28 // Score that was computed on the client. Value is between 0.0 and 1.0. 28 // 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. 29 // The larger the value the more likely the url is phishing.
30 required float client_score = 2; 30 required float client_score = 2;
31 31
32 // Note: we're skipping tag 3 because it was previously used. 32 // Note: we're skipping tag 3 because it was previously used.
33 33
34 // Is true if the features for this URL were classified as phishing. 34 // Is true if the features for this URL were classified as phishing.
35 // Currently, this will always be true for all client-phishing requests 35 // Currently, this will always be true for all client-phishing requests
36 // that are sent to the server. 36 // that are sent to the server.
(...skipping 24 matching lines...) Expand all
61 61
62 // The referrer URL. This field might not be set, for example, in the case 62 // The referrer URL. This field might not be set, for example, in the case
63 // where the referrer uses HTTPs. 63 // where the referrer uses HTTPs.
64 // OBSOLETE: Use feature 'Referrer=<referrer>' instead. 64 // OBSOLETE: Use feature 'Referrer=<referrer>' instead.
65 optional string OBSOLETE_referrer_url = 9; 65 optional string OBSOLETE_referrer_url = 9;
66 } 66 }
67 67
68 message ClientPhishingResponse { 68 message ClientPhishingResponse {
69 required bool phishy = 1; 69 required bool phishy = 1;
70 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698