0
Commit Graph

9 Commits

Author SHA1 Message Date
Avi Drissman
adac219925 Update header includes for /base/functional in /content
bind.h, callback.h, callback_forward.h, and callback_helpers.h
moved into /base/functional/. Update the include paths to
directly include them in their new location.

Bug: 1364441
Change-Id: I32ec425b9c0e52ec4b50047bf3290fecc5c905ff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4148554
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1091567}
2023-01-11 23:46:39 +00:00
Avi Drissman
4e1b7bc33d Update copyright headers in content/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c34.

No-Try: true
No-Presubmit: true
Bug: 1098010
Change-Id: I8c0f009d16350271f07d8e5e561085822cc9dd27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3895935
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1047456}
2022-09-15 14:03:50 +00:00
Robbie McElrath
72958ea2af Reland "Remove ContentBrowserClient::GetStoragePartitionIdForSite"
This is a reland of 868f6b2621
The original CL didn't actually introduce the failures,
crrev.com/c/3088781 did. See crbug.com/1239355

Original change's description:
> Remove ContentBrowserClient::GetStoragePartitionIdForSite
>
> This removes ContentBrowserClient::GetStoragePartitionIdForSite, its
> overrides, and extensions::util::IsExtensionSiteWithIsolatedStorage,
> which was only used by
> ChromeContentBrowserClient::GetStoragePartitionIdForSite.
>
> Bug: 1229912
> Change-Id: I7ae73c78f8fa1071237b2f2b78b215b6bb48ac0c
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3087996
> Commit-Queue: Robbie McElrath <rmcelrath@chromium.org>
> Reviewed-by: Reilly Grant <reillyg@chromium.org>
> Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#911145}

Bug: 1229912
Change-Id: Ica9efabf9602afd609c52aa846223d04213927e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3091829
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Robbie McElrath <rmcelrath@chromium.org>
Cr-Commit-Position: refs/heads/master@{#911578}
2021-08-13 00:08:34 +00:00
Morten Stenshorne
bdae36e298 Revert "Remove ContentBrowserClient::GetStoragePartitionIdForSite"
This reverts commit 868f6b2621.

Reason for revert: Breaks DefaultKeyboardExtensionBrowserTest tests.
I bisected.
https://ci.chromium.org/ui/p/chromium/builders/ci/linux-chromeos-dbg/25027/overview

Original change's description:
> Remove ContentBrowserClient::GetStoragePartitionIdForSite
>
> This removes ContentBrowserClient::GetStoragePartitionIdForSite, its
> overrides, and extensions::util::IsExtensionSiteWithIsolatedStorage,
> which was only used by
> ChromeContentBrowserClient::GetStoragePartitionIdForSite.
>
> Bug: 1229912
> Change-Id: I7ae73c78f8fa1071237b2f2b78b215b6bb48ac0c
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3087996
> Commit-Queue: Robbie McElrath <rmcelrath@chromium.org>
> Reviewed-by: Reilly Grant <reillyg@chromium.org>
> Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#911145}

Bug: 1229912
Change-Id: I390b0ba5fa19d6fe1a5f9b621f0b3fe46e8d1297
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3090948
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Owners-Override: Morten Stenshorne <mstensho@chromium.org>
Auto-Submit: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Takumi Fujimoto <takumif@chromium.org>
Cr-Commit-Position: refs/heads/master@{#911337}
2021-08-12 16:12:34 +00:00
Robbie McElrath
868f6b2621 Remove ContentBrowserClient::GetStoragePartitionIdForSite
This removes ContentBrowserClient::GetStoragePartitionIdForSite, its
overrides, and extensions::util::IsExtensionSiteWithIsolatedStorage,
which was only used by
ChromeContentBrowserClient::GetStoragePartitionIdForSite.

Bug: 1229912
Change-Id: I7ae73c78f8fa1071237b2f2b78b215b6bb48ac0c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3087996
Commit-Queue: Robbie McElrath <rmcelrath@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#911145}
2021-08-12 04:35:02 +00:00
Robbie McElrath
6fd8d5cc52 [PWA] Verify that all SiteInstances in a BrowsingInstance use the same StoragePartitionConfig
This CL enforces that all SiteInstances in a BrowsingInstance use the
same StoragePartition, and makes all related sites inherit their
StoragePartition rather than always asking the embedder which to use.

More specifically, this CL makes the following changes:
 * Updates BrowsingInstance to CHECK that all member SiteInstances have
   the same StoragePartitionConfig (SPC).
 * Makes BrowsingInstance:: ComputeSiteInfoForURL propagate the existing
   SPC into the new SiteInfo. This function is used when creating
   related SiteInstances, and ensures that related sites inherit the SPC
   of their parent.
 * Refactor SiteInstanceImpl::IsNavigationSameSite to reuse some of its
   logic in RFHM::ShouldSwapBrowsingInstancesForNavigation's
   StoragePartition check to avoid breaking hosted apps.
   ShouldSwapBrowsingInstancesForNavigation will now force a
   BrowsingInstance swap when navigating a top-level frame to a URL that
   requires a different StoragePartition.

Bug: 1212266, 1229912
Change-Id: Id94c1ca09879eed09c20f7c23fec5f5ca2aa4677
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3025080
Commit-Queue: Robbie McElrath <rmcelrath@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908340}
2021-08-04 05:42:33 +00:00
Robbie McElrath
291fa5c3b6 [PWA] Add StoragePartitionConfig getter to StoragePartition
This CL adds a GetConfig() method to StoragePartition, which returns the
config used to create the StoragePartition. It also defines a new
StoragePartitionConfig::CreateForTesting helper to create
StoragePartitionConfig's without a BrowserContext.

Bug: 1212266, 1229912
Change-Id: I05cb1990121828a24c01d1956915b16559496e88
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3027490
Commit-Queue: Robbie McElrath <rmcelrath@chromium.org>
Reviewed-by: Charlie Reis <creis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#903702}
2021-07-20 23:39:08 +00:00
Lei Zhang
02a0ad7f4a Fix header guards in content/.
Generated mechanically as follows:

git ls-files '*.h' | grep -E '^content/' | \
    xargs parallel cpplint.py --filter=-,+build/header_guard -- 2>&1 | \
    grep build/header_guard | tools/apply_cpplint_header_guard.py

Bug: 1200694
Change-Id: Iaf6b1c84150d617c3eecc69fb0751ad76dd7fe3a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2839364
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#874577}
2021-04-21 05:26:08 +00:00
danakj
50243ff043 Drop web_test_support dependency from content_browsertests
This was included for a single method, which does not need web test
stuff at all. Move the method (and its companion) over to another file
in content/public/test/.

R=nasko@chromium.org

Bug: 866140
Change-Id: Iad7d324b4c2d839d406b09d4f1c2397c523c309b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2112902
Auto-Submit: danakj <danakj@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#752220}
2020-03-20 23:14:08 +00:00