Introduce ResourceOwner to simplify ResoureClient implementation.

This change introduces ResourceOwner helper class and
deploys it to several ResourceClient implementations.
This automates removeClient() for such classes and also provides
some functions to get rid of boilerplates.

BUG=none
TEST=none
R=japhet@chromium.org, abarth, eseidel

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163844 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Moved console.profile/profileEnd implementation into InspectorProfilerAgent

This allowed to delete InspectorInstrumentation::profilerEnabled and InspectorInstrumentation::getUserInitiatedProfileName. It is now hanled inside the agent. The agent is available to the instrumentation when front-end is connected and Profiler domain was enabled.

drive-by: addProfile methods in the agent that had single call site

BUG=327298
R=pfeldman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163845 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of https://codereview.chromium.org/77623003/
Reason for revert: webkit_lint always fails.

TBR=ojan@chromium.org,peter@chromium.org,dpranke@chromium.org
NOTREECHECKS=true
NOTRY=true

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

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