Add some statistics to the monsoon profile run

Add some statistics to the monsoon profile run that are output on the command
line.  The statistics include the total power, the average power += variance, the
peak power and the amount of time that was measured.

BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256926 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 256926
Check the Service Worker status code in HandleFetchResponse

This more precisely handles the case where
SendMessageAndRegisterCallback failed to send an IPC message (which
seems conceivable, if the renderer process crashed), instead of just
hitting NOTREACHED.

No test is added, since I don't see how to force this condition.
I manually changed Send to fail and tested.

BUG=342301

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256927 0039d316-1c4b-4281-b951-d872f2087c98
Add tools/boilerplate.py that will generate files with copyright headers and guards.

TEST=tools/boilerplate.py chrome/browser/ui/cocoa/test.{h,mm}
R=thakis@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256928 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 256928
mac: History swiping doesn't work right with iframes.

In the previous behavior, it was possible for a user to start scrolling an
iframe with the touch pad, and then trigger history navigation. This happened
because the Cocoa view only received callbacks for whether an event in a
gesture wasn't handled. If any event in a gesture happened to not be handled by
blink, then that event could trigger history swiping, even though blink may
have handled earlier events in the same gesture!

My solution is to propagate the information for whether an event was handled to
the Cocoa view. History swiping is only enabled if no event is ever handled by
blink.

BUG=321437
TEST=Navigate to www.google.com. Then navigate to
http://codepen.io/anon/pen/ujsec. Place the cursor in the box that says "place
cursor here", and start a downwards 2-finger swipe. Half way through the swipe,
change directions and swipe to the left (or right, depending on your settings)
to navigate backwards in history. Prior to this change, the history swipe arrow
would appear. In this change, the history swipe arrow no longer appears.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256929 0039d316-1c4b-4281-b951-d872f2087c98
Add 9 patch scrollbar assets to native theme

9-patch scrollbar is a prettified version of overlay scrollbar that is
going to be used on aura. Add these assets with their ID to native theme
 aura. Add logic to use 9 patch scroll bar assets when overlay scrollbar
 is enabled. Also overlay scrollbar should only be painting thumbs, thus
 when overlay scrollbar is turned on native theme shouldn't need to
paint track and scrollbar corner.

This set of assets for 9 patch scrollbar intent to control stroke and
fill separately, while stroke does not provide asset for center of
9 patch. Different state is achieved by adjusting alpha of stroke and
fill separately.

BUG=307578

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

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