-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add content analysis SDK to chromium third_party.
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
Showing
6 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,7 @@ | |
/cld_2/src | ||
/cld_3/src | ||
/colorama/src | ||
/content_analysis_sdk/src | ||
/cpuinfo/src | ||
/crc32c/src | ||
/cros | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|