Stub out ServiceWorkerRegistration and Version classes

This stubs out the basic registration classes, spun out of http://crrev.com/62203007. Tests are included which make sure that shutdown is reliable. A single, simplistic ActivateInWaitingVersion() exists as a way to demonstrate the relationship between in-waiting and active versions.

BUG=
TBR=jam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235639 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 235639
[ash] Preferred size of ShelfView is not fixed when item is animating

Problem:
When an item is dragged in overflow bubble to left or right, item and bubble
are flickered. The reason for this is preferred shelf view size is based on
item's bounds which is not a fixed value when it is in animating.
Instead, ideal bounds is more better to get the shelf view's preferred size.

R=xiyuan@chromium.org, jamescook@chromium.org
BUG=316101
TEST=visual test

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235640 0039d316-1c4b-4281-b951-d872f2087c98
ash: Add GetItemIndexForType() function to ShelfModel.

Now that this function is generic enough, there is no reason to not
provide it directly from ShelfModel.

See previous CLs:
https://codereview.chromium.org/27369004
https://codereview.chromium.org/53513003
https://codereview.chromium.org/71653003

BUG=None
TEST=None, no functional changes
R=jamescook@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235641 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 235640
linux_aura: Set the UTF-8 version of the window title.

While setting the new UTF-8 version of the window title property fixes
the symptoms, qe're still setting the legacy property incorrectly. To
really fix that bad data, we'll need the equivalent of
UTF8ToCompoundText() and vice versa.

BUG=319071

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235642 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 235642