Skip to content

Commit

Permalink
Add content analysis SDK to chromium third_party.
Browse files Browse the repository at this point in the history
Bug: b/222741674
Change-Id: I38f2eeee261421da6cc5745b96fcac0ab79578c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3623681
Reviewed-by: Dominique Fauteux-Chapleau <domfc@chromium.org>
Commit-Queue: Roger Tawa <rogerta@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1002371}
  • Loading branch information
Roger Tawa authored and Chromium LUCI CQ committed May 11, 2022
1 parent 92400a3 commit 19f3020
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,9 @@ deps = {
'src/third_party/angle':
Var('chromium_git') + '/angle/angle.git' + '@' + Var('angle_revision'),

'src/third_party/content_analysis_sdk/src':
Var('chromium_git') + '/external/github.com/chromium/content_analysis_sdk.git' + '@' + 'ffaa2941d25f9321b4ab4f7beacd729494ae144c',

'src/third_party/dav1d/libdav1d':
Var('chromium_git') + '/external/github.com/videolan/dav1d.git' + '@' + '87f9a81cd770e49394a45deca7a3df41243de00b',

Expand Down
1 change: 1 addition & 0 deletions third_party/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
/cld_2/src
/cld_3/src
/colorama/src
/content_analysis_sdk/src
/cpuinfo/src
/crc32c/src
/cros
Expand Down
54 changes: 54 additions & 0 deletions third_party/content_analysis_sdk/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Copyright 2022 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//third_party/protobuf/proto_library.gni")

# Local content analysis SDK.
source_set("liblcasdk") {
public = [ "src/browser/include/content_analysis/sdk/analysis_client.h" ]

sources = [
"src/browser/src/client_base.cc",
"src/browser/src/client_base.h",
]

if (is_win) {
sources += [
"src/browser/src/client_win.cc",
"src/browser/src/client_win.h",
"src/common/utils_win.cc",
"src/common/utils_win.h",
]
}

if (is_linux) {
sources += [
"src/browser/src/client_posix.cc",
"src/browser/src/client_posix.h",
]
}

if (is_mac) {
sources += [
"src/browser/src/client_mac.cc",
"src/browser/src/client_mac.h",
]
}

include_dirs = [
"src",
"src/browser/include",
"gen/third_party/content_analysis_sdk/src/proto",
]

public_deps = [
":proto",
"//third_party/protobuf:protobuf_lite",
]
}

proto_library("proto") {
proto_in_dir = "src/proto"
sources = [ "src/proto/content_analysis/sdk/analysis.proto" ]
}
28 changes: 28 additions & 0 deletions third_party/content_analysis_sdk/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright 2022 The Chromium Authors.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google LLC nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

4 changes: 4 additions & 0 deletions third_party/content_analysis_sdk/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
domfc@chromium.org
nancylanxiao@google.com
rogerta@chromium.org
waldman@google.com
21 changes: 21 additions & 0 deletions third_party/content_analysis_sdk/README.chromium
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Name: Google Chrome Content Analysis Connector Agent SDK
Short Name: content_analysis_sdk
URL: https://github.com/chromium/content_analysis_sdk
Version: 0
License: BSD
License File: ./LICENSE
Security Critical: yes
CPEPrefix: unknown

Description:
The Google Chrome Content Analysis Connector provides an official mechanism
allowing Data Loss Prevention (DLP) agents to more deeply integrate their
services with Google Chrome.

DLP agents are background processes on managed computers that allow enterprises
to monitor locally running applications for data exfiltration events. They can
allow/block these activities based on customer defined DLP policies.

Local Modifications:
none

0 comments on commit 19f3020

Please sign in to comment.