DevTools: Collect JS samples when recording timeline

BUG=363976

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179956 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: protocol: add "canEmulateNetworkConditions" method definition.

BUG=396086

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179957 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Changes DOMDataStore's map type from DOMWrapperMap<void> to DOMWrapperMap<ScriptWrappableBase>.

BUG=235436

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179958 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Cleanup namespace usage in Source/web/[A-V]*.h

This patch removes unnecessary blink:: prefixes.
Also it merges *namspace blink{}* blocks.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179959 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Blink-in-JS: Support private scripts in partial interfaces (PrivateScriptRunner part)

This CL is a split from https://codereview.chromium.org/457483002/.
This CL supports private scripts in partial interfaces.

Assume that XPartial-1 and XPartial-2 are partial interfaces of X.
Then we have XPartial-1.js, XPartial-2.js and X.js.
When a DOM attribute/method in any of the JS files is requested
at the first time, all of the JS files are compiled at the same time.

This is redundant because when a DOM attribute/method in XPartial-1.js
is requested, we just need to compile XPartial-1.js and X.js.
I'll address the issue in a follow-up CL.

BUG=341031
TEST=fast/dom/private-script-unittest.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179960 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: DataGrid: move unrelated CSS.

Drive-by: fix highlighting in CPU profiles.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179961 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix anonymous function names in CPU profile tree view.

BUG=402431

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179962 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of DevTools: Introduce module initializers (https://codereview.chromium.org/451713002/)

Reason for revert:
Breaks android_aosp bot and prevents Blink roll.

http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/4536/steps/compile/logs/stdio

make: *** No rule to make target `out/target/product/generic/obj/GYP/shared_intermediates/resources/inspector/documentation/DocumentationView.js', needed by `out/target/product/generic/obj/GYP/shared_intermediates/devtools/devtools_resources.grd'.  Stop.


Original issue's description:
> DevTools: Introduce module initializers
> 
> For all lazy-loaded modules and workers, _module.js files are introduced, which
> importScript() all scripts for a particular module.
> 
> This allows to:
> - get rid of importScript() calls intertwined with meaningful code,
> - simplify module loading, since Runtime does not need to read the
>   module descriptor to determine the resource names.
> 
> This approach is similar to how we implement
> the CSS loading in inspector.css.
> 
> R=pfeldman, vsevik
> BUG=391566
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179948

TBR=pfeldman@chromium.org,vsevik@chromium.org,lushnikov@chromium.org,eustas@chromium.org,apavlov@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=391566

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179963 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make console.timeline/timelineEnd work for Timeline based on trace events

BUG=398787

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179964 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Revert of DevTools: Introduce module initializers (https://codereview.chromium.org/458753003/)

Reason for revert:
Un-reverting at request of patch author.

Original issue's description:
> Revert of DevTools: Introduce module initializers (https://codereview.chromium.org/451713002/)
> 
> Reason for revert:
> Breaks android_aosp bot and prevents Blink roll.
> 
> http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/4536/steps/compile/logs/stdio
> 
> make: *** No rule to make target `out/target/product/generic/obj/GYP/shared_intermediates/resources/inspector/documentation/DocumentationView.js', needed by `out/target/product/generic/obj/GYP/shared_intermediates/devtools/devtools_resources.grd'.  Stop.
> 
> 
> Original issue's description:
> > DevTools: Introduce module initializers
> > 
> > For all lazy-loaded modules and workers, _module.js files are introduced, which
> > importScript() all scripts for a particular module.
> > 
> > This allows to:
> > - get rid of importScript() calls intertwined with meaningful code,
> > - simplify module loading, since Runtime does not need to read the
> >   module descriptor to determine the resource names.
> > 
> > This approach is similar to how we implement
> > the CSS loading in inspector.css.
> > 
> > R=pfeldman, vsevik
> > BUG=391566
> > 
> > Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179948
> 
> TBR=pfeldman@chromium.org,vsevik@chromium.org,lushnikov@chromium.org,eustas@chromium.org,apavlov@chromium.org
> NOTREECHECKS=true
> NOTRY=true
> BUG=391566
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179963

TBR=pfeldman@chromium.org,vsevik@chromium.org,lushnikov@chromium.org,eustas@chromium.org,apavlov@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=391566

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179965 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix bad devtools.gyp merge from r179948

TBR=jbroman

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

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