0
Go to file
Daniel Brinkers 9dacf9e173 dlp: Pass file access callback to file stream reader
The callback is passed through the calls from the mojo interface to the file stream reader. Where it is used to gain a ScopedFileAccess token to read files.

The callback is not yet created for the calls depending on the destination URL. That will happen with a CL for b/262203074.

There are different cases for default behavior, where we do not need to query the daemon with a specific URL. Only files explicitly known/downloaded to the user can be protected. That excludes e.g. caches. The daemon would not deny those accesses, so we do not have to ask for permission. The other default are cases, where we want to allow access regardless of the rules. Here we have to query the daemon with a request for the system component (e.g. by the callback returned by ScopedFileAccessDelegate::GetCallbackForSystemIO).

Design doc: go/access-to-dlp-restricted-files-upload

BUG=b:262199707

Change-Id: Id71ac3463aae4c0d0b02bb3a264c2a8d05798f22
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4197601
Reviewed-by: Sergey Poromov <poromov@chromium.org>
Reviewed-by: Austin Sullivan <asully@chromium.org>
Commit-Queue: Daniel Brinkers <brinky@google.com>
Reviewed-by: Marcello Salomao <msalomao@google.com>
Reviewed-by: Marijn Kruisselbrink <mek@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1114995}
2023-03-09 07:39:05 +00:00
2023-03-09 06:36:31 +00:00
2023-03-08 20:44:51 +00:00
2023-03-08 21:56:27 +00:00
2023-03-08 23:53:32 +00:00
2023-03-08 02:02:31 +00:00
2023-03-08 19:31:49 +00:00
2023-03-07 17:07:30 +00:00
2023-03-09 07:33:21 +00:00
2023-03-09 07:33:21 +00:00
2023-03-08 21:45:51 +00:00

Logo Chromium

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.

The project's web site is https://www.chromium.org.

To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.

Documentation in the source is rooted in docs/README.md.

Learn how to Get Around the Chromium Source Code Directory Structure .

For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.

If you found a bug, please file it at https://crbug.com/new.

Description
Chromium是一个开源浏览器项目,提供了一种安全、快速、稳定的方法来体验Web。该浏览器可以在多个平台上下载,包括Mac、Windows、Linux和ChromiumOS。项目原始地址: https://chromium.googlesource.com/chromium/src.git
https://www.mobibrw.com/gitea-mirrors/chromium/src.git
Readme BSD-3-Clause 89 GiB
Languages
C++ 74.4%
Java 8.2%
Objective-C++ 4.6%
TypeScript 4%
Python 2.5%
Other 6.1%