Move LayoutTestSupport functions into a LayoutTestSupport class

Rather than calling free functions, we should call static functions in a
LayoutTestSupport class so that it's clearer from the call sites where these
functions are defined.

R=eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178211 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Pass named argument 'default_parameters' to fix test_with_parameters in_file_unittest.py

This test case is failing as default_parameters is defaulted to 'None' due to its position
after valid_values. Passing it as named argument fixes the failing case.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178212 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove lighttpd support from run-webkit-tests.

We now use apache2 everywhere. Also remove a couple of stray files from
LayoutTests/http/conf that are no longer needed.

R=eseidel@chromium.org
BUG=30536

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178213 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[Blink] XMLTreeViewer should load resources from blink_resources.grd instead of relying upon xxd.py (Part-1)

Blink should make use of blink_resources.grd for the inline resources for displaying XML tree view.
This removes the dependency upon using xxd.py which embeds the resources as strings.

BUG=312586

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178214 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move WebCore::shutdown into the CoreInitializer class

Before this CL, this function oddly dangled outside the class that manages the
state it manipulates.

R=eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178215 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Implement Promises for MediaKeys.create(), MediaKeys.createSession(),
MediaKeySession.update() and MediaKeySession.release().

Promises are implemented by asynchronously passing a
WebContentDecryptionModuleResult object to Chromium, similar to the
way WebCrypto does it. When Chromium has completed the operation,
the promise will be resolved or rejected appropriately.
public/platform changes have already been submitted.

Due to the current way callbacks are implemented (passing a client
interface in on a call), the promise result for createSession() is
actually created at call time rather than when the promise is resolved.
This requires a special promise resolver, as otherwise gc() could
reclaim the object as no other object has a reference to the newly
created object.

All the unprefixed EME content browser tests are updated. Since all
the tests need to be async, I've had to split some tests into separate
files. I've also added a new test to verify that gc() doesn't affect
MediaKeys.create() or MediaKeys.createSession() (while waiting for the
result it was possible for gc() to determine nobody had references to
the object and attempt to free it).

BUG=358271

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178216 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename WebSocket to DOMWebSocket

We have a naming conflict between blink::WebSocket and WebCore::WebSocket. Both
classes #define WebSocket_h, which would cause a problem if a file tried to
include both headers. This naming conflict will also cause a link error if we
end up merging the blink and WebCore namespaces.

This CL renames WebSocket to DOMWebSocket to clarify that this class is the
implementation of the DOM WebSocket interface. We use this convention in other
places to distinguish DOM objects from underlying platform concepts with the
same name (e.g., DOMWindow, DOMURL).

R=eseidel@chromium.org,tyoshino@chromium.org,yhirano@chromium.org

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

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