0
Go to file
K. Moon 071f48d4e9 Drop RefCounted from chrome_pdf::UrlLoader
Replaces all instances of scoped_refptr<UrlLoader> with
std::unique_ptr<UrlLoader>. It turns out there's no need for multiple
ownership of UrlLoader.

Drops OutOfProcessInstance's embed_loader_ and embed_preview_loader_
fields in favor of binding to the result callback. This may cause
behavioral changes in two cases:

1. The field is overwritten before the callback runs.
2. The field is not cleared after the callback runs.

(1) would cause other problems, as the current code assumes only one
load occurs at a time (as tracked by document_load_state_ and
preview_document_load_state_). The extra fields are needed only to
simulate bound parameters in the old pp::CompletionCallback
implementation.

(2) is the case currently, but this change simply ensures that the
loader is cleaned up as soon as it's no longer needed, rather than
"leaking" a lingering reference.

Retains the form_loader_ field, rather than also binding to the result
callback, as this loader is not handed off to PDFiumEngine. In general,
we don't handle form submission correctly, but fixing this is more a
matter for crbug.com/719344.

Bug: 1099022
Change-Id: I012be0e65583940f08275d7ce3469e01fbf72dda
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2402122
Reviewed-by: Daniel Hosseinian <dhoss@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: K. Moon <kmoon@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805807}
2020-09-10 17:07:18 +00:00
2020-09-09 19:08:34 +00:00
2020-09-09 20:52:09 +00:00
2020-07-30 17:51:54 +00:00
2020-09-10 16:41:20 +00:00
2020-08-01 03:34:38 +00:00
2020-09-07 04:03:43 +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.

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.

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%