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

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

Issue 11359146: Revert "Linux: change protobuf default option to allow building" (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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
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 // This proto represents a machine learning model which is used to compute 5 // This proto represents a machine learning model which is used to compute
6 // the probability that a particular page visited by Chrome is phishing. 6 // the probability that a particular page visited by Chrome is phishing.
7 // 7 //
8 // Note: sine the machine learning model is trained on the server-side and then 8 // Note: sine the machine learning model is trained on the server-side and then
9 // downloaded onto the client it is important that this proto file stays in 9 // downloaded onto the client it is important that this proto file stays in
10 // sync with the server-side copy. Otherwise, the client may not be able to 10 // sync with the server-side copy. Otherwise, the client may not be able to
11 // parse the server generated model anymore. If you want to change this 11 // parse the server generated model anymore. If you want to change this
12 // protocol definition or you have questions regarding its format please contact 12 // protocol definition or you have questions regarding its format please contact
13 // chrome-anti-phishing@googlegroups.com. 13 // chrome-anti-phishing@googlegroups.com.
14 14
15 syntax = "proto2"; 15 syntax = "proto2";
16 16
17 option optimize_for = LITE_RUNTIME;
18
17 package safe_browsing; 19 package safe_browsing;
18 20
19 // This protocol buffer represents a machine learning model that is used in 21 // This protocol buffer represents a machine learning model that is used in
20 // client-side phishing detection (in Chrome). The client extracts a set 22 // client-side phishing detection (in Chrome). The client extracts a set
21 // of features from every website the user visits. Extracted features map 23 // of features from every website the user visits. Extracted features map
22 // feature names to floating point values (e.g., PageSecureLinksFreq -> 0.9). 24 // feature names to floating point values (e.g., PageSecureLinksFreq -> 0.9).
23 // 25 //
24 // To compute the phishing score (i.e., the probability that the website is 26 // To compute the phishing score (i.e., the probability that the website is
25 // phishing) a scorer will simply compute the sum of all rule scores for a 27 // phishing) a scorer will simply compute the sum of all rule scores for a
26 // given set of extracted features. The score of a particular rule corresponds 28 // given set of extracted features. The score of a particular rule corresponds
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 required bytes prefix = 1; 82 required bytes prefix = 1;
81 83
82 // Network prefix size in bits. Default is an exact-host match. 84 // Network prefix size in bits. Default is an exact-host match.
83 optional int32 size = 2 [default = 128]; 85 optional int32 size = 2 [default = 128];
84 }; 86 };
85 repeated IPSubnet bad_subnet = 7; 87 repeated IPSubnet bad_subnet = 7;
86 88
87 // Murmur hash seed that was used to hash the page words. 89 // Murmur hash seed that was used to hash the page words.
88 optional fixed32 murmur_hash_seed = 8; 90 optional fixed32 murmur_hash_seed = 8;
89 } 91 }
OLDNEW
« no previous file with comments | « chrome/common/metrics/proto/user_action_event.proto ('k') | chrome/common/safe_browsing/csd.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698