0
Commit Graph

10 Commits

Author SHA1 Message Date
Avi Drissman
821ca309ed Update header includes for /base/functional in /p*
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: I36784c7cc322001d0b0ec2590c3847f4298033ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4157596
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1091526}
2023-01-11 22:42:15 +00:00
Avi Drissman
db497b3200 Update copyright headers in pdf/, ppapi/, printing/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c95.

No-Try: true
Bug: 1098010
Change-Id: I6ae92e5d7ccbf73b176588124b2f8b4067f805b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3900575
Reviewed-by: Mark Mentovai <mark@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1047628}
2022-09-15 19:47:28 +00:00
Anand K Mistry
9182c2a7da Update ppapi::proxy::PluginResource to work with OnceCallback
Update users of PluginResource to use base::BindOnce() instead of
base::Bind()

Bug: 1007816

Change-Id: Iecb9a3a2771849bf74b26f61b08bfe176ece5fb5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2764085
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Commit-Queue: Anand K Mistry <amistry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#863634}
2021-03-17 04:40:08 +00:00
Matthew Cary
d490a5ac84 Pepper: Upgrade VpnProvider* to new shared memory api.
Upgrades content::PepperVpnProviderMessageFilter (chromeos only)
and the ppapi:: side VpnProviderSharedBuffer and
VpnProviderResource to the new shared memory api.

In the current implementation, both send and receive buffers are
mapped writable, so uses of SharedMemory are replaced with
UnsafeSharedMemoryRegions. There is no functional change.

Bug: 795291
Change-Id: I19153a6d59d0ad6385423a495d736a92b4642c78
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1649325
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Reviewed-by: Alex Ilin <alexilin@chromium.org>
Commit-Queue: Matthew Cary (CET) <mattcary@chromium.org>
Cr-Commit-Position: refs/heads/master@{#668333}
2019-06-12 09:08:25 +00:00
Gyuyoung Kim
b480abab56 Replace base::MakeUnique with std::make_unique in chromecast/, extensions/, net/, ppapi/, printing/
If updated files don't use base::WrapUnique, base/memory/ptr_util.h includes are changed to
<memory>.

Bug: 755727
Change-Id: Ifb9ad8d3ee41130ac5c159cf084c979a304b80ed
Reviewed-on: https://chromium-review.googlesource.com/885383
Commit-Queue: Gyuyoung Kim <gyuyoung.kim@lge.com>
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532173}
2018-01-27 07:00:04 +00:00
ricea
04dff7f22b Re-write many calls to WrapUnique() with MakeUnique()
A mostly-automated change to convert instances of WrapUnique(new Foo(...)) to
MakeUnique<Foo>(...). See the thread at
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/iQgMedVA8-k
for background.

To avoid requiring too many manual fixups, the change skips some cases that are
frequently problematic. In particular, in methods named Foo::Method() it will
not try to change WrapUnique(new Foo()) to MakeUnique<Foo>(). This is because
Foo::Method() may be accessing an internal constructor of Foo.

Cases where MakeUnique<NestedClass>(...) is called within a method of
OuterClass are common but hard to detect automatically, so have been fixed-up
manually.

The only types of manual fix ups applied are:
1) Revert MakeUnique back to WrapUnique
2) Change NULL to nullptr in argument list (MakeUnique cannot forward NULL
   correctly)
3) Add base:: namespace qualifier where missing.

WrapUnique(new Foo) has not been converted to MakeUnique<Foo>() as this might
change behaviour if Foo does not have a user-defined constructor. For example,
WrapUnique(new int) creates an unitialised integer, but MakeUnique<int>()
creates an integer initialised to 0.

git cl format has been been run over the CL. Spot-checking has uncovered no
cases of mis-formatting.

  BUG=637812

Review-Url: https://codereview.chromium.org/2254973004
Cr-Commit-Position: refs/heads/master@{#413394}
2016-08-22 03:06:55 +00:00
brucedawson
cd71d45907 Reland of ppapi: PPB_VpnProvider: Implement Resource Host (patchset id:1 of https://codereview.chromium.org/2129653002/ )
Reason for revert:
Relanding because the speculative revert did not help the Android tests, the original CL is fine.

Original issue's description:
> Revert of ppapi: PPB_VpnProvider: Implement Resource Host (patchset  id:620001 of https://codereview.chromium.org/1735473002/ )
>
> Reason for revert:
> Speculative revert to try to fix failing Android tests.
>
> https://build.chromium.org/p/chromium.linux/builders/Android%20Tests/builds/28629
>
> android_webview_test_apk on Android android_webview_test_apk on Android failed 22
> failures:
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllDouble with {--webview-sandboxed-renderer}
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextForward with {--webview-sandboxed-renderer}
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testClearMatches with {--webview-sandboxed-renderer}
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllFinds
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testClearFindNext
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllEmptyNext
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllDoubleNext with {--webview-sandboxed-renderer}
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextForward
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextBig
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextBig with {--webview-sandboxed-renderer}
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllDouble
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextBackward
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testClearFindNext with {--webview-sandboxed-renderer}
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllDoubleNext
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllEmptyNext with {--webview-sandboxed-renderer}
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextFirst
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindEmptyNext
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextFirst with {--webview-sandboxed-renderer}
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextBackward with {--webview-sandboxed-renderer}
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindEmptyNext with {--webview-sandboxed-renderer}
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllFinds with {--webview-sandboxed-renderer}
> org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testClearMatches
>
> Original issue's description:
> > ppapi: PPB_VpnProvider: Implement Resource Host
> >
> > BUG=506490
> >
> > Committed: https://crrev.com/8a1558d86fa478c65aba0b268129a9d8f2d3a7af
> > Cr-Commit-Position: refs/heads/master@{#403909}
>
> TBR=dcheng@chromium.org,bartfab@chromium.org,bbudge@chromium.org,dskaram@chromium.org,robert.bradford@intel.com,cernekee@chromium.org,emaxx@chromium.org,adrian.belgun@intel.com
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=506490
>
> Committed: https://crrev.com/c2b444e09ff58537c4b5a61ac03d897b0c8be066
> Cr-Commit-Position: refs/heads/master@{#403931}

TBR=dcheng@chromium.org,bartfab@chromium.org,bbudge@chromium.org,dskaram@chromium.org,robert.bradford@intel.com,cernekee@chromium.org,emaxx@chromium.org,adrian.belgun@intel.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=506490

Review-Url: https://codereview.chromium.org/2128743002
Cr-Commit-Position: refs/heads/master@{#403999}
2016-07-07 00:15:13 +00:00
brucedawson
c2b444e09f Revert of ppapi: PPB_VpnProvider: Implement Resource Host (patchset id:620001 of https://codereview.chromium.org/1735473002/ )
Reason for revert:
Speculative revert to try to fix failing Android tests.

https://build.chromium.org/p/chromium.linux/builders/Android%20Tests/builds/28629

android_webview_test_apk on Android android_webview_test_apk on Android failed 22
failures:
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllDouble with {--webview-sandboxed-renderer}
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextForward with {--webview-sandboxed-renderer}
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testClearMatches with {--webview-sandboxed-renderer}
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllFinds
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testClearFindNext
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllEmptyNext
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllDoubleNext with {--webview-sandboxed-renderer}
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextForward
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextBig
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextBig with {--webview-sandboxed-renderer}
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllDouble
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextBackward
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testClearFindNext with {--webview-sandboxed-renderer}
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllDoubleNext
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllEmptyNext with {--webview-sandboxed-renderer}
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextFirst
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindEmptyNext
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextFirst with {--webview-sandboxed-renderer}
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindNextBackward with {--webview-sandboxed-renderer}
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindEmptyNext with {--webview-sandboxed-renderer}
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testFindAllFinds with {--webview-sandboxed-renderer}
org.chromium.android_webview.test.WebViewAsynchronousFindApisTest#testClearMatches

Original issue's description:
> ppapi: PPB_VpnProvider: Implement Resource Host
>
> BUG=506490
>
> Committed: https://crrev.com/8a1558d86fa478c65aba0b268129a9d8f2d3a7af
> Cr-Commit-Position: refs/heads/master@{#403909}

TBR=dcheng@chromium.org,bartfab@chromium.org,bbudge@chromium.org,dskaram@chromium.org,robert.bradford@intel.com,cernekee@chromium.org,emaxx@chromium.org,adrian.belgun@intel.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=506490

Review-Url: https://codereview.chromium.org/2129653002
Cr-Commit-Position: refs/heads/master@{#403931}
2016-07-06 17:50:57 +00:00
adrian.belgun
8a1558d86f ppapi: PPB_VpnProvider: Implement Resource Host
BUG=506490

Review-Url: https://codereview.chromium.org/1735473002
Cr-Commit-Position: refs/heads/master@{#403909}
2016-07-06 15:21:13 +00:00
adrian.belgun
0873bcb27e ppapi: PPB_VpnProvider: Implement Resource Stub
BUG=506490

Review-Url: https://codereview.chromium.org/1931513002
Cr-Commit-Position: refs/heads/master@{#398513}
2016-06-08 10:02:00 +00:00