From bd1b1d69cb9ac5f7cb03aef7746808a0f0d480c9 Mon Sep 17 00:00:00 2001 From: "noelutz@google.com" Date: Thu, 11 Nov 2010 21:53:16 +0000 Subject: 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 --- chrome/chrome_browser.gypi | 51 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'chrome/chrome_browser.gypi') 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', + ], + }, ], } -- cgit v1.1