0
Commit Graph

31303 Commits

Author SHA1 Message Date
brettw
8a800901b7 Replace base::str[n]casecmp with helper functions.
Adds CompareCaseInsensitiveASCII and EqualsCaseInsensitiveASCII helper functions and removes base::strcasecmp and base::strncasecmp. This avoids the dangerous locale-sensitive behavior.

ClientIsAdvertisingSdchEncoding in sdch_browsertest had the condition inverted, but because it returned true any time the given line wasn't found, the test didn't notice.

cups_helper changed most significantly. I redid the loop to use StringPieces which saves a lot of copies. On line 82 cups_helper used to do a prefix match which I'm pretty sure it wanted a regular compare. I changed this.

render_text_harfbuzz set "<" operator was also doing a prefix comparison only, when it looks like it really just wanted to compare the strings.

file_path passed string pieces into strcasecmp which could then read off the end if they're not null terminated. This patch fixes the bug and calls the native strcasecmp which is probably the best we can do for Posix file names.

Removed additional version of the same function in net.

Adds a backwards-compat hack for crashpad which improperly uses base from a DEPS-ed in repo.

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

Cr-Commit-Position: refs/heads/master@{#338324}
2015-07-10 18:29:16 +00:00
dfalcantara
e6b7b46750 Track whether a created WebContents has a resume pending.
On Android, it's possible that a WebContents is created and
cannot be loaded immediately, which occurs when Chrome needs
to start an Activity asynchronously.  There's currently no
good way to know when the WebContents is in this state, though.

* Start storing whether the WebContents has needs to resume loading
  in the WebContentsImpl, which can then be checked when the
  WebContentsImpl may begin accepting requests from the renderer.

* Clean up Android code that heuristically tracks whether the
  WebContents could be in this state.

* Existing Java and Chromium tests catch regressions.

BUG=508186

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

Cr-Commit-Position: refs/heads/master@{#338323}
2015-07-10 18:14:50 +00:00
davidben
7f59ee1477 Remove incorrect DCHECK in ~BrowserCdmManager.
https://codereview.chromium.org/1225083002 fixed the core issue but left an
incorrect DCHECK in the code. It is not the case that only a single
BrowserCdmManager per RPH ID may be alive at a time, only that a single one
corresponds to a given live process. (A reference-counted type can never be
assumed to have bounded lifetime for the same reason garbage-collected types
can never be assumed to have bounded lifetime.)

This fixes ChildProcessLauncherBrowserTest.ChildSpawnFail's flakiness on
cast_shell_linux when use_openssl is switched.

BUG=506188,462040

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

Cr-Commit-Position: refs/heads/master@{#338312}
2015-07-10 17:22:38 +00:00
zhenw
782e6b76a7 [Startup Tracing][Telemetry] Move tracing_options and tracing_category_filter
This CL moves tracing_options and tracing_category_filter to timeline/.

BUG=317481, 482098
CQ_EXTRA_TRYBOTS=tryserver.chromium.perf:linux_perf_bisect;tryserver.chromium.perf:mac_perf_bisect;tryserver.chromium.perf:win_perf_bisect;tryserver.chromium.perf:android_nexus5_perf_bisect

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

Cr-Commit-Position: refs/heads/master@{#338302}
2015-07-10 16:36:12 +00:00
horo
149f2315e7 Initialize render_frame_host_ in the constuctor of ServiceWorkerHandler.
The crash (crbug.com/508775) in ServiceWorkerHandler::UpdateHosts() seems to be caused by wrong state of render_frame_host_.

After ServiceWorkerHandler is created in the constructor of RenderFrameDevToolsAgentHost, ServiceWorkerHandler::SetRenderFrameHost() must be called before UpdateHosts() is called.
So render_frame_host_ must be set correctly before UpdateHosts() is called even if we are not initializing render_frame_host_ now.
So I think this change doesn't fix the crash.
But to make the code safe, we should initialize render_frame_host_ in the constructor.

BUG=508775

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

Cr-Commit-Position: refs/heads/master@{#338290}
2015-07-10 15:03:22 +00:00
hajimehoshi
d428898189 Add support for V8PerContextData to the leak detector (Chromium side)
BUG=506466

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

Cr-Commit-Position: refs/heads/master@{#338279}
2015-07-10 12:01:22 +00:00
mlamouri
3b02fa855d Presentation API: remove stall PresentationDispatcher::startSession().
This is part of a suite of three CLs:
1. https://codereview.chromium.org/1208083004
2. https://codereview.chromium.org/1225523002
3. <this>

BUG=502047

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

Cr-Commit-Position: refs/heads/master@{#338271}
2015-07-10 11:01:11 +00:00
s.singapati
09f3699d4c [PresentationAPI] on-session-message handler for ArrayBuffer and Blob messages.
Depends on the Blink CL: https://codereview.chromium.org/1206513004/

BUG=459008

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

Cr-Commit-Position: refs/heads/master@{#338263}
2015-07-10 09:07:09 +00:00
toyoshim
6b76d8fce6 WebWaitableEvent: deprecate old API implementation
BUG=507224

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

Cr-Commit-Position: refs/heads/master@{#338251}
2015-07-10 07:43:23 +00:00
lgarron
145aaa8a77 Route 'Select All' OS method through RenderWidgetHostDelegate.
This allows Cmd-A / "Select All" to be used on SSL interstitials on OSX.

BUG=507416

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

Cr-Commit-Position: refs/heads/master@{#338248}
2015-07-10 07:41:48 +00:00
sandersd
ea47d81412 Remove |cgl_context| from VTVideoDecodeAccelerator.
Instead of explicitly passing |cgl_context|, get it from
GLContext::GetCurrent().

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

Cr-Commit-Position: refs/heads/master@{#338219}
2015-07-10 02:42:29 +00:00
falken
adacabbf29 Add net logging for ServiceWorkerURLRequestJob.
This patch adds net log types for each ServiceWorkerURLRequestJob result type
(already used for UMA), and logs the result as a net event. This may help
debugging user issues when something goes wrong with Service Worker.

It also folds DESTROYED and KILLED UMAs into just KILLED,
as it turned out we got no DESTROYED UMAs.

BUG=499143

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

Cr-Commit-Position: refs/heads/master@{#338207}
2015-07-10 02:33:39 +00:00
michaeln
657a077542 Expire appcaches that fail to update for "too long".
BUG=413706

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

Cr-Commit-Position: refs/heads/master@{#338196}
2015-07-10 00:27:26 +00:00
simonb
908ec61cdc Refactor chromium's Linker class.
Preparation for creating an alternative non-crazy linker based
chromium Linker:

- Convert Linker from pure static into a singleton class.
- Split into an abstract base class containing (expected) common code,
and (for now) a single concrete subclass that implements the current
crazy linker based loading of libchrome.so.
- Update client code to handle the singleton getInstance() requirement
and class name changes.
- Modernize logging.

Later changes will introduce a second concrete Linker subclass that is
free of crazy linker code, for Android platform system linkers that
handle packed relocations, load from apk, and shared relro natively.

BUG=385553

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

Cr-Commit-Position: refs/heads/master@{#338182}
2015-07-09 23:25:03 +00:00
fsamuel
09c726e468 Mandoline: Move ContentHandlerConnection into separate file
ContentHandlerConnection will serve as the equivalent of SiteInstance in Chromium.

In the future, ContentHandlerConnection will represent an Application instance for a particular origin/site.

As the complexity of this object will grow soon, it makes sense to move it out as a first step.

ContentHandlerConnection now also uses the same lifetime management idiom used in ApplicationConnection and elsewhere to help guard against reentrant calls during destruction and double deletes. This also makes it easier to unit test this class in the future as more functionality is added.

BUG=496937

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

Cr-Commit-Position: refs/heads/master@{#338173}
2015-07-09 22:41:20 +00:00
kbr
2ba7d980f4 Revert of Flush pending writes on Skia scratch textures used in Chromium (patchset id:60001 of https://codereview.chromium.org/1225583003/)
Reason for revert:
Broke three video-related WebGL conformance tests on Nexus 5; see https://code.google.com/p/chromium/issues/detail?id=504773#c3 .

Original issue's description:
> Flush pending writes on Skia scratch textures used in Chromium
>
> Chromium uses textures allocated by Skia's internal resource manager for
> video rendering. In case the textures are recycled, they might have
> pending write operations on them. Most commonly they have a pending
> framebuffer discard that gets inserted when a texture is chosen for
> recycling. These pending operations need to be flushed before the texture
> is accessed outside of Skia. Otherwise it's possible that the pending
> operations get deferred until after Chromium uses the texture.
>
> In other words, we need to guarantee that the order of operations is:
>
> 1. Pending writes from Skia are flushed
> 2. Chromium writes to the texture without involving Skia
> 3. Chromium requests a readback of the texture using Skia
> 4. Skia reads back the texture
>
> instead of
>
> 1. Chromium writes to the texture without involving Skia
> 2. Chromium requests a readback of the texture using Skia
> 3. Pending writes from Skia are flushed
> 4. Skia reads back the texture
>
> BUG=504773, 499555
> TEST=WebGL conformance tests
>
> Committed: https://crrev.com/140faf7e1dbc0f41a57242b4d3114bad6b9552fd
> Cr-Commit-Position: refs/heads/master@{#338089}

TBR=dalecurtis@chromium.org,qinmin@chromium.org,bsalomon@google.com,xhwang@chromium.org,oetuaho@nvidia.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=504773, 499555

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

Cr-Commit-Position: refs/heads/master@{#338165}
2015-07-09 22:27:25 +00:00
toyoshim
eb09fc1316 Web MIDI: add a new UMA entry for the final result code
This change adds a new UMA entry for the final MidiManager
result code on browser shutdown.

To report the result correctly, I assigned new numbers for
the result code. As a side effect, this patch can fix an
existing problem that the result code for NOT_INITIALIZED
was not propagated to renderer side correctly.

BUG=465661

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

Cr-Commit-Position: refs/heads/master@{#338148}
2015-07-09 21:15:39 +00:00
xhwang
ff9a7da8b4 media: Add BrowserCdmManagerProcessWatcher.
Based on nick@chromium.org's CL: http://crrev.com/1214073015#ps1

Instead of having RenderProcessHostImpl hosts BrowserCdmManager, add
BrowserCdmManagerProcessWatcher, a RenderProcessHostObserver, to keep a
reference to BrowserCdmManager, and manage the entries in
g_browser_cdm_manager_map.

BUG=506188
TEST=Test reenabled.

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

Cr-Commit-Position: refs/heads/master@{#338146}
2015-07-09 21:12:36 +00:00
Daniel Cheng
3403bc5413 Clean up some detach logic in RenderFrameImpl.
There's no reason to gate RenderWidget frame unregistration
on the kSitePerProcess flag; it should be gated using the
same policy as the creation of the RenderWidget.

Moving the RenderWidget cleanup out of the is_subframe
block also paves the way for when the main frame also has a
RenderWidget.

BUG=419087
R=creis@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#338145}
2015-07-09 21:12:35 +00:00
dalecurtis
5c7572e5f5 Fix mipsel compile error due to missing header.
BUG=507771
TEST=compiled content_unittests w/ mips
TBR=zork

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

Cr-Commit-Position: refs/heads/master@{#338143}
2015-07-09 21:11:07 +00:00
ccameron
cf9b1d9389 Mac: Don't draw a cc::Surface while suspended
It is possible that, when closing a tab on Mac, the RWHVMac that
is being closed will have requested that the ui::Compositor draw, and
that draw will have not happened yet. The draw will happen after
the RWHVMac and its renderer have been destroyed which is wasteful
in that the draw is unwanted and buggy in that the resources needed
by the draw are destroyed.

To avoid this, ensure that the cc::Surface does not draw if the output
surface is suspended.

BUG=508287
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

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

Cr-Commit-Position: refs/heads/master@{#338131}
2015-07-09 20:43:38 +00:00
amineer
e735fb0c4b Revert of Change the video color space default. (patchset id:60001 of https://codereview.chromium.org/1221903003/)
Reason for revert:
Causing official continuous builds to fail with the following:

../../media/cast/sender/h264_vt_encoder_unittest.cc:308:22: error: no matching constructor for initialization of 'media::VideoDecoderConfig'
  VideoDecoderConfig config(kCodecH264, H264PROFILE_MAIN, frame_->format(),
                     ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../media/base/video_decoder_config.h:78:3: note: candidate constructor not viable: requires 10 arguments, but 9 were provided
  VideoDecoderConfig(VideoCodec codec,
  ^
../../media/base/video_decoder_config.h:70:20: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 9 were provided
class MEDIA_EXPORT VideoDecoderConfig {
                   ^
../../media/base/video_decoder_config.h:74:3: note: candidate constructor not viable: requires 0 arguments, but 9 were provided
  VideoDecoderConfig();
  ^
1 error generated.

Original issue's description:
> Change the video color space default.
>
> Previously video without color space metadata was assumed to be in
> Rec601. Now the default depends on the kind of playback. Normal src=
> defaults to Rec601 for SD sized video (<720 pixels high), and Rec709 for
> HD. MSE will always default to Rec709. Using a size based heuristic
> doesn't make sense for MSE where it is common for the resolution to
> change mid playback.
>
> This CL doesn't change the meaning of COLOR_SPACE_UNSPECIFIED. Instead,
> it adds a color space field to VideoDecoderConfig, and updates the video
> decoders to use this as the default if they don't find a more
> authoritative value in the bitstream.
>
> This also fixes a (year old!) bug causing the blackwhite
> tests to always succeed, renames the rec709 blackwhite test
> file to match the name in blackwhite.html, and re-encodes it
> to contain the color space metadata (previously it had none).
>
> BUG=333619
>
> Committed: https://crrev.com/4dc6c2ad0e595a5e0b543e8e1b8961ee0d742a32
> Cr-Commit-Position: refs/heads/master@{#338110}

TBR=dalecurtis@chromium.org,bbudge@chromium.org,codebythepound@gmail.com,gunsch@chromium.org,lcwu@chromium.org,watk@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=333619

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

Cr-Commit-Position: refs/heads/master@{#338124}
2015-07-09 20:20:59 +00:00
benwells
ef1895a8c1 Remove -Wno-unused-private-field clang warning suppression.
BUG=505317

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

Cr-Commit-Position: refs/heads/master@{#338115}
2015-07-09 19:35:14 +00:00
jdduke
dcebeec14c [Android] Expose native ViewConfiguration constants as DIPs
Touch-related constants in Android's ViewConfiguration are exposed in
device pixels. However, all native code that uses these values need
DIPs. Rather than relying on the caller to do the scaling, which may be
incorrect for external displays with different densities, expose the
constants as DIPs directly.

Longer term, we should instead use a context-specific lookup for
ViewConfiguration values.

BUG=310763

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

Cr-Commit-Position: refs/heads/master@{#338114}
2015-07-09 19:33:48 +00:00
nektar
b4b6c7c6a5 Cleanup of accessibility_tree_formatter_win.cc.
Switched to using ScopedBstr and removed memory leaks with BSTRs.
Switched to using SUCCESS macro instead of comparing to S_OK because there are methods which might return other success codes such as S_FALSE, the results of which  we would want to capture in tests.
Switched to using "auto" in some instances.
Renamed some variables to more descriptive or more concise names.
R=dmazzoni@chromium.org,aboxhall@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#338112}
2015-07-09 19:27:45 +00:00
watk
4dc6c2ad0e Change the video color space default.
Previously video without color space metadata was assumed to be in
Rec601. Now the default depends on the kind of playback. Normal src=
defaults to Rec601 for SD sized video (<720 pixels high), and Rec709 for
HD. MSE will always default to Rec709. Using a size based heuristic
doesn't make sense for MSE where it is common for the resolution to
change mid playback.

This CL doesn't change the meaning of COLOR_SPACE_UNSPECIFIED. Instead,
it adds a color space field to VideoDecoderConfig, and updates the video
decoders to use this as the default if they don't find a more
authoritative value in the bitstream.

This also fixes a (year old!) bug causing the blackwhite
tests to always succeed, renames the rec709 blackwhite test
file to match the name in blackwhite.html, and re-encodes it
to contain the color space metadata (previously it had none).

BUG=333619

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

Cr-Commit-Position: refs/heads/master@{#338110}
2015-07-09 19:17:00 +00:00
avi
27f3df6a40 Move protocol registration from WebViewClient to WebFrameClient, part 3/3.
BUG=304341
TEST=protocol registration still works

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

Cr-Commit-Position: refs/heads/master@{#338109}
2015-07-09 19:07:51 +00:00
emircan
aeea60ad95 Enable passing a texture backed media::VideoFrame through WebRTC wrappers in Renderer process. It is a refactor of https://codereview.chromium.org/1128213005/ as a lot of refactor in media::VideoFrame happened and I decided to create a new CL.
- VideoFrameWrapper points to the underlying media::VideoFrame via native_handle()
- WebRtcVideoCapturerAdapter uses VideoFrameWrapper to pass Native Texture backed VideoFrame
- RTCVideoEncoder accesses the media::VideoFrame via native_handle() and passes

BUG=440843,503835

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

Cr-Commit-Position: refs/heads/master@{#338092}
2015-07-09 18:31:12 +00:00
oetuaho
140faf7e1d Flush pending writes on Skia scratch textures used in Chromium
Chromium uses textures allocated by Skia's internal resource manager for
video rendering. In case the textures are recycled, they might have
pending write operations on them. Most commonly they have a pending
framebuffer discard that gets inserted when a texture is chosen for
recycling. These pending operations need to be flushed before the texture
is accessed outside of Skia. Otherwise it's possible that the pending
operations get deferred until after Chromium uses the texture.

In other words, we need to guarantee that the order of operations is:

1. Pending writes from Skia are flushed
2. Chromium writes to the texture without involving Skia
3. Chromium requests a readback of the texture using Skia
4. Skia reads back the texture

instead of

1. Chromium writes to the texture without involving Skia
2. Chromium requests a readback of the texture using Skia
3. Pending writes from Skia are flushed
4. Skia reads back the texture

BUG=504773, 499555
TEST=WebGL conformance tests

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

Cr-Commit-Position: refs/heads/master@{#338089}
2015-07-09 18:14:54 +00:00
rdevlin.cronin
c3d6ba1b13 [Extensions OOPI] Update app window bindings for OOPI
Update the app window custom bindings to use render frame logic
instead of render view logic.  This involves changes to the custom
bindings themselves, as well as app window creation logic. And, for fun,
a few small cleanups while I was in the area.

BUG=455776
TBR=dbeam@chromium.org (webui)

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

Cr-Commit-Position: refs/heads/master@{#338076}
2015-07-09 17:37:20 +00:00
tdresser
8fe1dd9f7b Revert of Cleanup viewport scrolling for future scroll customization work. (patchset id:20001 of https://codereview.chromium.org/1223713004/)
Reason for revert:
See crbug.com/508509.

We need to fix this case before relanding.

Original issue's description:
> Cleanup viewport scrolling for future scroll customization work.
>
> Viewport scrolling previously returned a struct of information about
> what scrolled. This complicated scroll customization. This patch makes
> |Viewport::ScrollBy| return a single |Vector2dF|, as well as performing
> some other cleanup that will simplify scroll customization.
>
> BUG=505851
> TEST=LayerTreeHostImplTest, WebContentsViewAuraTest.VerticalOverscroll
> CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
>
> Committed: https://crrev.com/3e773d7aeba1eb0077a7907d0f5ff2e72e1c6753
> Cr-Commit-Position: refs/heads/master@{#337694}

TBR=vollick@chromium.org,enne@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=505851

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

Cr-Commit-Position: refs/heads/master@{#338071}
2015-07-09 17:21:44 +00:00
ricea
1ce1e09b37 Ensure ResourceScheduler starts requests even if the tab is closed.
Async revalidation requests are low priority, but they must be started
eventually even if the tab is closed.

Add unit tests to ensure that ResourceScheduler starts all requests
eventually, even if the client is deleted.

Also, modify ResourceScheduler to start any pending requests when the
client is deleted. This satisfies the requirement in the simplest way.

BUG=501805
TEST=content_unittests

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

Cr-Commit-Position: refs/heads/master@{#338058}
2015-07-09 16:28:56 +00:00
Georges Khalil
96dadf968e Disable DumpAccessibilityTreeTest.AccessibilityTransition due to flakiness (Win/Mac)
BUG=508532
R=mnissler@chromium.org
TBR=dmazzoni@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#338046}
2015-07-09 15:25:20 +00:00
toyoshim
bffe514b23 WebWaitableEvent: implement new API with ResetPolicy and InitialState arguments
To support manual reset event in blink, implement new blink API
to create WebWaitableEvent with two new arguments.

BUG=507224

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

Cr-Commit-Position: refs/heads/master@{#338045}
2015-07-09 15:23:07 +00:00
timvolodine
0cfb09586f [Android] Fix VibrationProvider crash.
Make sure the java class is in the apk.

BUG=507220

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

Cr-Commit-Position: refs/heads/master@{#338042}
2015-07-09 15:10:12 +00:00
avi
a23e16b248 Move protocol registration from WebViewClient to WebFrameClient, part 1/3.
BUG=304341
TEST=protocol registration still works

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

Cr-Commit-Position: refs/heads/master@{#338036}
2015-07-09 14:20:20 +00:00
hugo.holgersson
93f9419bc3 Recover from timing problem at exit of video-fullscreen
Background:
When exiting video fullscreen, UI thread sends two
IPC-messages the player's (renderer) thread.

1. MediaPlayerMsg_DidExitFullscreen is sent to tell
player to EstablishSurfaceTexturePeer() for inline
video. needs_establish_peer_ gets true.

2. SynchronousCompositorFactoryImpl posts a
callback to player's ResetStreamTextureProxy().

In *almost* all cases (1) happens before (2).

Problem:
When (2) happens before (1), (2) does not create a
new proxy because needs_establish_peer_ has not yet
been set. (1)'s EstablishSurfaceTexturePeer() fails
because there is no proxy.

Solution:
Let (1) do TryCreateStreamTextureProxyIfNeeded()
before EstablishSurfaceTexturePeer().

BUG=504800
TEST=See bug

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

Cr-Commit-Position: refs/heads/master@{#338027}
2015-07-09 13:17:52 +00:00
henrika
fd4c2189c5 Fixes issue where Web Speech API drops a frame every 5.1 seconds
TBR=tommi

BUG=506051
TEST=content_unittests --gtest_filter=Speech* and manual testing using https://www.google.com/intl/en/chrome/demos/speech.html

Verified 8000, 11025, 16000, 22050, 32000, 44100, 48000, 96000 and 192000 as native input sample rate.

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

Cr-Commit-Position: refs/heads/master@{#338013}
2015-07-09 11:10:10 +00:00
mnissler
a6caa4b3bd Revert of Re-enable ScreenOrientationBrowserTests on Chrome OS (patchset id:1 of https://codereview.chromium.org/1225093002/)
Reason for revert:
Unfortunately, the tests still flake a lot:

http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Ozone%20Tests%20%281%29/builds/17013/steps/content_browsertests/logs/ScreenOrientationBrowserTest.WindowOrientationChange
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Ozone%20Tests%20%281%29/builds/17014/steps/content_browsertests/logs/ScreenOrientationBrowserTest.ScreenOrientationChange

Original issue's description:
> Re-enable ScreenOrientationBrowserTests on Chrome OS
> Two tests were flaking on Chrome OS builds.
>
> Re-enabling to confirm that fixes to Screen Orientation API also fixed these tests.
>
> TEST=ScreenOrientationBrowserTest.ScreenOrientationChange,
> ScreenOrientationBrowserTest.WindowOrientationChange
> BUG=468259
>
> Committed: https://crrev.com/4fa07d46cbdea4b263ad07beca29f90b42757c67
> Cr-Commit-Position: refs/heads/master@{#337950}

TBR=mlamouri@chromium.org,jonross@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=468259

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

Cr-Commit-Position: refs/heads/master@{#338008}
2015-07-09 10:04:32 +00:00
alexmos
5ac402d1ed Move browser-to-renderer opener plumbing to frame routing IDs.
This CL allows a new RenderView to set its main frame's opener to any
frame, rather than a top-level frame.  I.e., it is now possible to use
window.opener to refer to a cross-process subframe.

Summary of changes:

* The ViewMsg_New IPC now passes the opener's frame ID rather than
  view ID.  RenderView::Initialize resolves this into the opener's
  WebFrame.

* The flow of opener routing IDs from RFHM::InitRenderView to
  RenderViewHostImpl::CreateRenderView (which sends the IPC) is moved
  from view to frame IDs.

* The passing of opener routing IDs from CreateOpenerProxies, etc.,
  into RFHM::InitRenderView is removed.  Instead, InitRenderView now
  looks up the proper opener frame routing ID itself.  This is because
  (1) the previous flow would complicate implementing opener updates,
  which would allow subframes to have openers and FrameTrees to have
  more than one opener to traverse, and (2) previous plumbing missed
  some cases (e.g., creating swapped-out RVs via
  CreateRenderFrameProxy or CreateProxiesForSiteInstance), and fixing
  this would add more complexity.

* There are paths where the opener chain is intentionally suppressed
  from a new RenderView, for example for <webview>: see
  WCI::CreateSwappedOutRenderView and EnsureOpenerProxiesExist.  This
  is now supported via an explicit flag which is passed into
  InitRenderView rather than passing around MSG_ROUTING_NONE for the
  opener's routing ID.

BUG=225940, 304341

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

Cr-Commit-Position: refs/heads/master@{#337995}
2015-07-09 07:51:43 +00:00
henryhsu
840b38edfd MJPEG acceleration for V4L2
cpu governor: performance
jpeg clock: 200 MHz
software decode: latency 10.42ms, cpu 18.85%
hardware decode: latency 5.67ms, cpu 13.98%
hardware decode with output memcpy: latency 12.57ms, cpu 20.62%
We are fixing driver to support IOMMU to avoid memcpy overhead.

BUG=426383
TEST=run unittest on peach_pi, apprtc website over night.

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

Cr-Commit-Position: refs/heads/master@{#337990}
2015-07-09 05:30:15 +00:00
dglazkov
bdaac789c0 Remove dom_utils.
1) These types of operations shouldn't be done in the content API.

2) The last call site no longer needs it in Blink after
https://codereview.chromium.org/1208423015 landed.

R=jochen,jam
BUG=508151

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

Cr-Commit-Position: refs/heads/master@{#337988}
2015-07-09 05:13:45 +00:00
haibinlu
76a6990391 [PresentationAPI] Ensures only one pending message callback at a time if a frame created multiple sessions.
Starts listening message on default session started event.

BUG=506338, 507467

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

Cr-Commit-Position: refs/heads/master@{#337967}
2015-07-09 02:13:03 +00:00
xhwang
7be3bba3cb FrameMojoShell provides services to mojo apps.
BUG=479935
TEST=Manually tested by connecting PlatformVerification service from
MojoCdmService.

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

Cr-Commit-Position: refs/heads/master@{#337953}
2015-07-09 00:34:57 +00:00
jonross
4fa07d46cb Re-enable ScreenOrientationBrowserTests on Chrome OS
Two tests were flaking on Chrome OS builds.

Re-enabling to confirm that fixes to Screen Orientation API also fixed these tests.

TEST=ScreenOrientationBrowserTest.ScreenOrientationChange,
ScreenOrientationBrowserTest.WindowOrientationChange
BUG=468259

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

Cr-Commit-Position: refs/heads/master@{#337950}
2015-07-09 00:24:07 +00:00
davidben
5b8de7cab2 Only initialize NSS in PpapiPluginMain on !USE_OPENSSL builds.
This dates to https://chromiumcodereview.appspot.com/11411013 which was added
to resolve the ClearKey CDM. ClearKey uses routines from //crypto which may use
NSS. But it doesn't need NSS in the chimera build, so we should limit this to
!USE_OPENSSL builds.

(The tests in question have also since moved to browser_tests and out of
//content.)

BUG=506323

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

Cr-Commit-Position: refs/heads/master@{#337935}
2015-07-08 23:03:14 +00:00
jaekyun
3752b44fbb Delay cleanup of moderate bindings when the app goes to background
For now, in the document mode switching tabs always releases all the
moderate bindings because the app goes into the background when launching
the Recents to select a tab.

To relieve this problem, this CL delays cleanup of moderate bindings by 10s.

BUG=485867

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

Cr-Commit-Position: refs/heads/master@{#337928}
2015-07-08 22:42:59 +00:00
ortuno
af85f60db9 bluetooth: browser-side implementation of writeValue.
Chrome spec repo update: https://github.com/WebBluetoothChrome/web-bluetooth/pull/12

This is the second of three patches to implement writeValue():
 [1] http://crrev.com/1212943006 (Blink-side interface)
 [2] This patch.
 [3] http://crrev.com/1218803008 (Blink-side implementation)

BUG=507415

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

Cr-Commit-Position: refs/heads/master@{#337912}
2015-07-08 21:35:50 +00:00
rdsmith
1f43a06a1e Fix recording of "Time to error histograms".
Changes use of URLRequest::request_time() to URLRequest::creation_time(),
which is much closer to the information actually desired (how long the
consumer of the request waited for an error).

BUG=487663
R=mmenke@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#337899}
2015-07-08 20:34:50 +00:00
avi
e0d9018857 Clean up the interface to DeserializeSecurityInfo, fix uninitialized memory use.
BUG=507018
TEST=clusterfuzz is happy

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

Cr-Commit-Position: refs/heads/master@{#337883}
2015-07-08 19:35:51 +00:00