0
Commit Graph

24 Commits

Author SHA1 Message Date
John Palmer
046f987e02 [COIL] Change chromium code search type links to use main rather than master for docs
See this doc: go/chromium-coil-change for more info
    BUG=1210385

Change-Id: I6cd8548301e360bae8e71384dbd8ef11aa6c985f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2902904
Reviewed-by: My Nguyen <myy@chromium.org>
Commit-Queue: My Nguyen <myy@chromium.org>
Auto-Submit: John Palmer <jopalmer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#885851}
2021-05-24 01:24:56 +00:00
Alex Gough
ea32df5c92 Set enable_cet_shadow_stack for Windows x64
This enables the CETCOMPAT linker flag for Windows marking binaries
as CET compatible. On supporting hardware this will cause Chrome to
run with Hardware Enforced Stack Protection for compatible modules.

CET will still be disabled for the renderer process as the feature
CetForRenderer is default-disabled.

x86 is not supported: build/config/compiler/BUILD.gn:2519

Tests: mini_installer on supporting hardware
Bug: 1131225
Change-Id: Ic5db6eca0acf4cdfb0eff0f624e4d4f4e5a7da50
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2602845
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Will Harris <wfh@chromium.org>
Commit-Queue: Alex Gough <ajgo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845041}
2021-01-20 06:06:39 +00:00
Vitaly Buka
5987fd43a7 Add option to enable CET Shadow Stack
This experimental build option to mark binaries as compatible with Shadow
Stack of Control-flow Enforcement Technology (CET).
THe option is not any close to enable in official builds, it's here
for convenice of evaluation.

As it passes base_unittests and components_unittests.

Bug: 1136224
Change-Id: I6fcd61c2e76066b444cc37c88228273838300243
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2454988
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Alex Gough <ajgo@chromium.org>
Commit-Queue: Vitaly Buka <vitalybuka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#819145}
2020-10-20 22:58:05 +00:00
Edward Lesmes
afa2f4f7a9 Add DIR_METADATA files to //docs
Add Generate DIR_METADATA files and remove metadata from OWNERS
files for //docs.

Bug: 1113033
Change-Id: Ibd798892dcc522ce2363f85e53860259194eaa7c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2454498
Commit-Queue: Dirk Pranke <dpranke@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org>
Cr-Commit-Position: refs/heads/master@{#815366}
2020-10-08 22:56:59 +00:00
Alex Gough
9e88d86650 Adds diagnostic section to sandbox docs.
Bug: 1085213
Change-Id: Ic597db07aba2790bfa176a88e6e14ac8b5895562
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2231441
Auto-Submit: Alex Gough <ajgo@chromium.org>
Reviewed-by: Will Harris <wfh@chromium.org>
Commit-Queue: Will Harris <wfh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#775665}
2020-06-05 18:20:39 +00:00
Tom Anderson
93e49e49ba Update relative links to Linux docs
This is a followup to [1].

[1] https://chromium-review.googlesource.com/c/chromium/src/+/1974901

TBR=sky

Change-Id: I442ffe121378607bdc5e1b16c081b8d66b138955
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1980900
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#727226}
2019-12-23 19:55:37 +00:00
Will Harris
0dbe1dc706 Update CIG documentation on sandbox.
Bug: 750886
Change-Id: I45015006a8664045d8a1ea87599b5e4c252dff84
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1767086
Reviewed-by: James Forshaw <forshaw@chromium.org>
Commit-Queue: Will Harris <wfh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#689785}
2019-08-23 02:25:48 +00:00
Eric Foo
31267c4dc8 OWNERS files updated with latest COMPONENT and TEAMS.
This is CL is generated by a script. Data is pulled from
review conducted in Q2 2019. See https://tinyurl.com/yxau5sc4
for context.

Please review and LGTM before July 16th or the CL will be
submitted as-is.

NOTRY=true

Bug: 977050
Change-Id: I1770239e09a71381d80f3893ce27096b81513056
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1700822
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@chromium.org>
Auto-Submit: Eric Foo <efoo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#677831}
2019-07-16 17:02:33 +00:00
Alex Gough
fec822f2e5 Minor tidying of sandbox.md for Windows
- Regularised capitalisation of Windows.
 - Removed some hemming and hawing about out of support Windows versions.
 - Tidied a couple of broken links and references.

Change-Id: I2e84b9ee6ec83ad77a31f4998273989c9dd1852b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1649299
Reviewed-by: Will Harris <wfh@chromium.org>
Commit-Queue: Alex Gough <ajgo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#669858}
2019-06-17 22:06:29 +00:00
Scott Violet
703b824e51 viz: moves mojoms/code from services/ws to services/viz
These really should have always been in viz.

BUG=958240
TEST=none

Change-Id: I523fdcb13761b39f61091503ad3a56cfc9c9874f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1647083
Commit-Queue: Scott Violet <sky@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: kylechar <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#668095}
2019-06-11 19:34:36 +00:00
Scott Violet
7e33efce8b window_service: converts all code to be in ws namespace
This is the last step after moving all the code.
Sorry for the ginormous review. It would have been tedious to split
up.

BUG=876924
TEST=covered by tests
TBR=tsepez@chromium.org

Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I237c4377115ad12fefb95a1bcf2eabe1cbef3414
Reviewed-on: https://chromium-review.googlesource.com/1195809
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#587338}
2018-08-29 22:30:15 +00:00
Scott Violet
9f984257df window-services: moves services/ui into services/ws
Here's the list of changes:
git mv services/ui/common services/ws
(update build files, rename services/ui/common:mus_common to common)
git mv services/ui/public/cpp services/ws/public
git mv services/ui/gpu_host services/ws
git mv services/ui/ime services/ws
git mv services/ui/test_ws services/ws
git mv services/ui/input_devices services/ws/
git mv services/ui/ws2/* services/ws

BUG=876924
TEST=covered by tests
TBR=jamescook@chromium.org

Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_chromium_dbg_ng;luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: Ia93dc557a45dc75bcf8a2b3bf80f2e393d4362ed
Reviewed-on: https://chromium-review.googlesource.com/1188961
Commit-Queue: Scott Violet <sky@chromium.org>
Reviewed-by: James Cook <jamescook@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#586354}
2018-08-27 19:02:13 +00:00
Klaus Weidner
f11c1775df gpu_synchronization.md: fix formatting of quoted code
The nested code section was not rendering correctly on the live
Markdown server, and didn't match the tools/md_browser preview.
Simplify the layout to avoid inconsistencies.

Bug: 801929
Change-Id: Id8f84f24407d39dd2d125d8f349d214fccbe254a
Reviewed-on: https://chromium-review.googlesource.com/892478
Reviewed-by: David Dorwin <ddorwin@chromium.org>
Commit-Queue: Klaus Weidner <klausw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#533106}
2018-01-31 00:17:19 +00:00
Xu Xing
c5b1b95841 [docs] Correct the url in gpu sync docs
Also file a bug about the markdown display incorrectly:
https://bugs.chromium.org/p/chromium/issues/detail?id=801929

BUG=None

Change-Id: I0213c4263dec0caf9e3aa3ed1d88b372fd4c1824
Reviewed-on: https://chromium-review.googlesource.com/865966
Reviewed-by: Klaus Weidner <klausw@chromium.org>
Commit-Queue: Xing Xu <xing.xu@intel.com>
Cr-Commit-Position: refs/heads/master@{#529201}
2018-01-15 04:52:05 +00:00
Sunny Sachanandani
c94b8de937 gpu: Simplify CHROMIUM_sync_point API.
Simplify GenSyncTokenCHROMIUM and GenUnverifiedSyncTokenCHROMIUM to
implicitly insert the fence and issue ordering barrier or flush. Change
all call sites and update the documentation to reflect this.

R=piman
BUG=NONE

Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: I8551f8d0ccf3b7f6027f3e54443ae06cfa0d074b
Reviewed-on: https://chromium-review.googlesource.com/826007
Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: David Reveman <reveman@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Antoine Labour <piman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#524576}
2017-12-16 03:30:30 +00:00
Klaus Weidner
e66cc7d91e GpuFence implementation
Implement a command buffer interface for native file descriptor backed
cross-context GpuFence objects. See CHROMIUM_gpu_fence.txt for the GLES
API description and docs/design/gpu_synchronization.md for background
information including usage examples.

gl::GLFenceAndroidNativeSyncPoint - low-level wrapper for underlying GL
calls.

gfx::GpuFenceHandle - IPC-transportable wrapper for the sync file
descriptor.

gfx::GpuFence aka ClientGpuFence - owning container for a GpuFenceHandle,
and convertible to/from a ClientGpuFence for use with GL calls.

gpu::gles2::GpuFenceManager tracks GpuFenceEntry objects by client-assigned
ID number. Each entry stores a gl::GLFence as currently implemented
by the gl::GLFenceAndroidNativeSyncPoint subclass.

BUG=761432

Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Ibae5c377528db9a9382b64a2648ac56a5a0f53f6
Reviewed-on: https://chromium-review.googlesource.com/680135
Commit-Queue: Klaus Weidner <klausw@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: David Reveman <reveman@chromium.org>
Reviewed-by: Antoine Labour <piman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#523001}
2017-12-09 17:26:30 +00:00
Gabriel Charette
e9748f27c3 Uncontroversial and easy to carve out bits of deprecated BrowserThreads cleanup.
Overall reland is at https://chromium-review.googlesource.com/c/chromium/src/+/705775,
these are the easy bits that can land first (and wrap up contributions to issues
365909 and 752144 as well as to the ios/ side of 689520).

NOPRESUBMIT=TRUE (for BrowserThread presubmit triggered by touching related code)
TBR=jam@chromium.org, jsbell@chromium.org, sdefresne@chromium.org, asvitkine@chromium.org

Bug: 689520, 365909, 752144
Change-Id: I9b2b5326a12de5f7ffa22f8ac3332c8e57a6e14f
Reviewed-on: https://chromium-review.googlesource.com/738469
Commit-Queue: Gabriel Charette <gab@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#511551}
2017-10-25 19:31:15 +00:00
kylechar
da69d8843d base: Change make_scoped_refptr to WrapRefCounted.
The helper function make_scoped_refptr() doesn't match the base/std
naming convention for make to construct the object. Now there is
MakeRefCounted() to make a new scoped_refptr and WrapRefCounted() to
wrap something in scoped_refptr, similar to MakeUnique() and
WrapUnique(). This is a purely mechanical regex search and replace.

Bug: 765333
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: I5057e51282e519693f6fca504bd54deb638b712f
Reviewed-on: https://chromium-review.googlesource.com/667726
Commit-Queue: kylechar <kylechar@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#506316}
2017-10-04 05:49:52 +00:00
Matt Falkenhagen
82a076e04a Revert "Remove all remaining deprecated Web/BrowserThreads!!"
This reverts commit 6127a86f3a.

Reason for revert: Suspect this caused spike in ThreadWatcher hang reports: crbug.com/768886

Original change's description:
> Remove all remaining deprecated Web/BrowserThreads!!
> 
> (except BrowserThread::FILE which has a handful use cases left still and
> will follow suit shortly)
> 
> (BrowserThread::PROCESS_LAUNCHER migration was put on hold because of
> Android specific requirements around process launching)
> 
> Remaining usage of TestBrowserThreadBundle::REAL_DB_THREAD could simply
> be removed as all of the product code was already migrated to TaskScheduler
> which always uses real threads in unit tests.
> 
> Bug: 689520, 365909, 752144
> Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester
> Change-Id: Id70b722aa35e8568795d5aac16947392ac1597be
> 
> NOPRESUBMIT=True (for content/browser/browser_thread_impl.cc:211)
> 
> Change-Id: Id70b722aa35e8568795d5aac16947392ac1597be
> Reviewed-on: https://chromium-review.googlesource.com/610880
> Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
> Reviewed-by: John Abd-El-Malek <jam@chromium.org>
> Reviewed-by: Dirk Pranke <dpranke@chromium.org>
> Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
> Commit-Queue: Gabriel Charette <gab@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#503732}

TBR=gab@chromium.org,jam@chromium.org,dpranke@chromium.org,asvitkine@chromium.org,sdefresne@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

NOPRESUBMIT=True (for restoring the deprecated browser threads)

Bug: 689520, 365909, 752144, 768886
Change-Id: I53d93572118303743e1dde71b2a473350717b215
Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester
Reviewed-on: https://chromium-review.googlesource.com/689254
Commit-Queue: Matt Falkenhagen <falken@chromium.org>
Reviewed-by: Matt Falkenhagen <falken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504939}
2017-09-28 08:08:19 +00:00
Gabriel Charette
6127a86f3a Remove all remaining deprecated Web/BrowserThreads!!
(except BrowserThread::FILE which has a handful use cases left still and
will follow suit shortly)

(BrowserThread::PROCESS_LAUNCHER migration was put on hold because of
Android specific requirements around process launching)

Remaining usage of TestBrowserThreadBundle::REAL_DB_THREAD could simply
be removed as all of the product code was already migrated to TaskScheduler
which always uses real threads in unit tests.

Bug: 689520, 365909, 752144
Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester
Change-Id: Id70b722aa35e8568795d5aac16947392ac1597be

NOPRESUBMIT=True (for content/browser/browser_thread_impl.cc:211)

Change-Id: Id70b722aa35e8568795d5aac16947392ac1597be
Reviewed-on: https://chromium-review.googlesource.com/610880
Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#503732}
2017-09-22 14:33:59 +00:00
Brett Wilson
1c99002ae1 Replace tracked_objects::Location with base::Location.
Part 3/4 to replace these namespace qualifications.

TBR=dcheng@chromium.org

Bug: 763556
Change-Id: I052b146dd2ce9f5e3997ab5ae1e362b2422fb03e
Reviewed-on: https://chromium-review.googlesource.com/662140
Reviewed-by: Brett Wilson <brettw@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Brett Wilson <brettw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#501376}
2017-09-12 20:11:15 +00:00
karandeepb
09f8883243 Correct threading documentation example.
Calling a callback with a raw pointer argument while binding a scoped_refptr to
it requires using base::RetainedRef. Correct the same in threading
documentation. Also, introduce std::move in the example to demonstrate
preventing an extra AddRef/Release pair.

BUG=None

Review-Url: https://codereview.chromium.org/2944313004
Cr-Commit-Position: refs/heads/master@{#482065}
2017-06-23 23:15:27 +00:00
justincarlson
b4730a0c27 Port sandbox, sandbox faq, and startup design docs to markdown.
This is mostly a straight port; minimal editing was applied to the
converted text to make some styles consistent.

The original locations of these docs were:

https://www.chromium.org/developers/design-documents/sandbox
https://www.chromium.org/developers/design-documents/sandbox/Sandbox-FAQ
https://www.chromium.org/developers/design-documents/startup

BUG=

Review-Url: https://codereview.chromium.org/2827383002
Cr-Commit-Position: refs/heads/master@{#466105}
2017-04-20 20:22:13 +00:00
justincarlson
ad589ceb60 Port threading design doc to in-tree docs, start a README for design docs in the tree.
This is a straight up port of https://www.chromium.org/developers/design-documents/threading, with minimal editing only for style consistency and some grammar errors.

Review-Url: https://codereview.chromium.org/2822353002
Cr-Commit-Position: refs/heads/master@{#466049}
2017-04-20 17:26:07 +00:00