CSP: Move parsing a document's CSP to DocumentLoader::responseReceived.

This patch moves CSP generation out of FrameLoader and into
DocumentLoader in order to ensure that the 'frame-ancestors' directive
can properly block loading a document. The current implementation checks
too late in the loading process.

The new implementation works, with the caveat that it breaks both
console messages and violation reports. Since we have no
ExecutionContext, we have nothing to dump console messages into. This
work will be covered in https://crbug.com/412725

BUG=411889,411600,357462

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181814 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Extending supported sample rate from 3.0KHz to 192.0KHz for OfflineAudioContext.

Currently, AudioBuffer is supported 3.0KHz to 192.0 KHz.
However, offlineAudioContext is not supported lower sample rate than 44.0KHz.

http://webaudio.github.io/web-audio-api/#the-audiobuffersourcenode-interface

“Describes the sample-rate of the linear PCM audio data
in the buffer in sample-frames per second.
An implementation must support sample-rates
in at least the range 22050 to 96000”

Changed supported sampleRate range 3KHz to 192KHz and fftsize for convolution.

BUG=394009

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181816 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mixed Content: Migrate ResourceFetcher to the static mixed content checker.

This patch begins using the static version of the mixed content checker
which was introduced in https://codereview.chromium.org/537983002/. It
also takes the opportunity to rework the error message to use the new
type information we've now passed into the checker.

This patch only touches the ResourceFetcher usage; future patches will
clean up the other points in the code where we grab a MixedContentChecker
from the loader, and eventually remove the object creation entirely.
This will make the site isolation folks happy.

BUG=411184

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181817 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Adds the concept of Policies to the Blink Scheduler

In Normal mode (the default), there's virtually no 
prioritization of compositor events, and
shouldYieldForHighPriorityWork always returns false. In 
CompositorPriority mode, there *is* prioritization of 
compositor tasks and shouldYieldForHighPriorityWork will 
return false if there are pending high priority events.

Currently there is no way for client code to set the policy
but that will be introduced in a follow up CL.

Also adds some disabled by default tracing in
"blink.scheduler" to track the number of pending high
priority tasks and which policy mode the scheduler is in.

BUG=391005,411520

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181818 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Add "never show" link to emulation warning.

BUG=394734

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181819 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: log worker thread ids on the main thread when Timeline recording is enabled

DevTools uses TracingStartedInWorker trace event to figure out which worker threads correspond to the inspected page. The events were written on the worker thread which is racy. Current implementation always writes the event on the main thread. Since Tracing.start/end commands are handled on the main thread this eliminates racy behavior.

BUG=401895,405429

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181820 bbb929c8-8fbe-4397-9dbb-9b2b20218538