diff options
author | noelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-11 21:53:16 +0000 |
---|---|---|
committer | noelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-11 21:53:16 +0000 |
commit | bd1b1d69cb9ac5f7cb03aef7746808a0f0d480c9 (patch) | |
tree | beabf815d613827f78014ab479258ca61fdbd73a /chrome/chrome_browser.gypi | |
parent | e221eeb710a2b463402d4550688bb9e0d9cdd496 (diff) | |
download | chromium_src-bd1b1d69cb9ac5f7cb03aef7746808a0f0d480c9.zip chromium_src-bd1b1d69cb9ac5f7cb03aef7746808a0f0d480c9.tar.gz chromium_src-bd1b1d69cb9ac5f7cb03aef7746808a0f0d480c9.tar.bz2 |
Add a client-side phishing detection service class.
This class is responsible for talking to the client-side detection
servers and to fetch the machine learning model.
BUG=none
TEST=ClientSideDetectionServiceTest
Review URL: http://codereview.chromium.org/3815014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65860 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_browser.gypi')
-rw-r--r-- | chrome/chrome_browser.gypi | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi index e0610c9..e17ae8c9 100644 --- a/chrome/chrome_browser.gypi +++ b/chrome/chrome_browser.gypi @@ -20,6 +20,7 @@ 'profile_import', 'browser/sync/protocol/sync_proto.gyp:sync_proto_cpp', 'browser/policy/proto/device_management_proto.gyp:device_management_proto_cpp', + 'safe_browsing_csd_proto', 'syncapi', 'theme_resources', 'userfeedback_proto', @@ -2609,6 +2610,10 @@ 'browser/safe_browsing/bloom_filter.h', 'browser/safe_browsing/chunk_range.cc', 'browser/safe_browsing/chunk_range.h', + 'browser/safe_browsing/client_side_detection_service.cc', + 'browser/safe_browsing/client_side_detection_service.h', + '<(protoc_out_dir)/chrome/browser/safe_browsing/csd.pb.cc', + '<(protoc_out_dir)/chrome/browser/safe_browsing/csd.pb.h', 'browser/safe_browsing/protocol_manager.cc', 'browser/safe_browsing/protocol_manager.h', 'browser/safe_browsing/protocol_parser.cc', @@ -4237,6 +4242,52 @@ '../third_party/protobuf/protobuf.gyp:protobuf_lite', ], }, + { + # Protobuf compiler / generator for the safebrowsing client-side detection + # (csd) request protocol buffer. + 'target_name': 'safe_browsing_csd_proto', + 'type': 'none', + 'sources': [ 'browser/safe_browsing/csd.proto' ], + 'rules': [ + { + 'rule_name': 'genproto', + 'extension': 'proto', + 'inputs': [ + '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', + ], + 'variables': { + # The protoc compiler requires a proto_path argument with the + # directory containing the .proto file. + # There's no generator variable that corresponds to this, so fake + # it. + 'rule_input_relpath': 'browser/safe_browsing', + }, + 'outputs': [ + '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.h', + '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.cc', + ], + 'action': [ + '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', + '--proto_path=./<(rule_input_relpath)', + './<(rule_input_relpath)/<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)', + '--cpp_out=<(protoc_out_dir)/chrome/<(rule_input_relpath)', + ], + 'message': 'Generating C++ code from <(RULE_INPUT_PATH)', + }, + ], + 'dependencies': [ + '../third_party/protobuf/protobuf.gyp:protobuf_lite', + '../third_party/protobuf/protobuf.gyp:protoc#host', + ], + 'direct_dependent_settings': { + 'include_dirs': [ + '<(protoc_out_dir)', + ] + }, + 'export_dependent_settings': [ + '../third_party/protobuf/protobuf.gyp:protobuf_lite', + ], + }, ], } |