0
Commit Graph

8 Commits

Author SHA1 Message Date
Sunny Sachanandani
e3e58250e1 Propagate renderer client id in single process mode
Renderer client id is propagated via command line flags, so in single
process mode RenderThreadImpl gets initialized with the default client
id of 1, whereas the browser allocates a globally unique client id for
each renderer.

Viz frame sinks are embedded in a hierarchy which identifies embedders
by their client ids.  So requests made by the renderer to embed other
surfaces are rejected by EmbeddedFrameSinkProviderImpl because the
client ids don't match.

This CL fixes that by propagating the client id from the browser to
RenderThreadImpl in single process mode, and includes related minor code
cleanup.

Bug: 1015988
Change-Id: I758f19df05ad6dc083e01e8cfc760f76ca1831a2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1869376
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708319}
2019-10-22 20:10:38 +00:00
dcheng
cedca561f3 Convert //content/renderer from scoped_ptr to std::unique_ptr
BUG=554298
R=avi@chromium.org

Review URL: https://codereview.chromium.org/1873783003

Cr-Commit-Position: refs/heads/master@{#386267}
2016-04-09 01:41:19 +00:00
Daniel Cheng
556abd1195 Fix a bunch of IWYU violators that don't include scoped_ptr.h
This blocks the conversion of //base from scoped_ptr to std::unique_ptr.

BUG=554298
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
R=danakj@chromium.org

Review URL: https://codereview.chromium.org/1852953002 .

Cr-Commit-Position: refs/heads/master@{#384767}
2016-04-02 01:15:27 +00:00
avi
1023d01cf1 Switch to standard integer types in content/renderer/.
BUG=138542
TBR=jam@chromium.org

Review URL: https://codereview.chromium.org/1547073003

Cr-Commit-Position: refs/heads/master@{#366847}
2015-12-25 02:40:22 +00:00
morrita
c6238ab6b4 Get rid of ChannelInit::SetSingleProcessIOTaskRunner()
The globally-set TaskRunner doesn't work because some child
thread can run inside the browser process even when other
child threads run in their own processes.
For example, there is a configuration where GpuChildThread
being in-process while RenderThreadImpl isn't.

It is troublesome once non-renderer child processes adopt
ChannelMojo.

This CL eliminates the global in-process IO task runner
and instead, passes an IO runnner for each thread
if it is configured as an in-process mode.

Note that InProcessChildThreadParams object is introuced to
clarify that the parameter is for in-process mode.

This is a spin-off from https://codereview.chromium.org/960693003/.

R=jamesr@chromium.org, rockot@chromium.org, jam@chromium.org
BUG=377980

Review URL: https://codereview.chromium.org/987693005

Cr-Commit-Position: refs/heads/master@{#321047}
2015-03-18 01:49:26 +00:00
dcheng
6d18e40fc2 Standardize usage of virtual/override/final in content/renderer/
This patch was automatically generated by applying clang fixit hints
generated by the plugin to the source tree.

BUG=417463
TBR=jamesr@chromium.org

Review URL: https://codereview.chromium.org/670683003

Cr-Commit-Position: refs/heads/master@{#300473}
2014-10-21 12:33:10 +00:00
mohan.reddy
ee0b42adc4 Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer
This step is a giant search and replace for OVERRIDE and FINAL to
replace them with their lowercase versions.

BUG=417463

Review URL: https://codereview.chromium.org/633303002

Cr-Commit-Position: refs/heads/master@{#298655}
2014-10-08 04:53:33 +00:00
scottmg@chromium.org
8707caab1c Fix names of in-process threads, tidy gpu DEPS
Follow-up after http://crrev.com/217968 per comments on
https://chromiumcodereview.appspot.com/23235002/

R=jam@chromium.org
BUG=237249

Review URL: https://chromiumcodereview.appspot.com/23452016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221199 0039d316-1c4b-4281-b951-d872f2087c98
2013-09-04 16:41:30 +00:00