DevTools: Send cookies when loading resources through backend.

BUG=264673

Review URL: https://chromiumcodereview.appspot.com/23532007

git-svn-id: svn://svn.chromium.org/blink/trunk@156907 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Don't call Chrome::focusedNodeChanged() for detached document

This patch changes Document::setFocusedElement() not to call Chrome:focusedNodeChanged() when Document::page() returns null.

This situation can be happened when event handler removes document during focus related events, blur, focus, and so on, dispatched in Document::setFocusedElement().

BUG=249164
TEST=LayoutTests/fast/events/blur-remove-parent-crash.html
R=tkent@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156908 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Replace responseType mismatch handling code in XMLHttpRequest::responseJSONSource() with ASSERT

Like responseBlob() and responseArrayBuffer() method, this method is called
from V8XMLHttpRequestCustom where it's responseType is guaranteed to be
ResponseTypeJSON. So, just ASSERT it.

BUG=

Review URL: https://chromiumcodereview.appspot.com/23533007

git-svn-id: svn://svn.chromium.org/blink/trunk@156909 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Introduce a WebSocketChannel class for the new WebSocket implementation.

We are implementing the new WebSocket implementation. 
This CL introduces a WebSocketChannel derived class for the new WebSocket
implementation.
NewWebSocketChannelImpl implements WebSocketHandleClient and uses
WebSocketHandle to communicate with chrome side implementation.
NewWebSocketChannelImpl does not support many features such as logging,
blob and so on yet. They will be supported in the future.

This class will be tested when content and chrome implementation is done. 
Currently this cl doesn't change any behavior because nobody uses the classes yet. 

BUG=275459
R=abarth, tyoshino

Review URL: https://chromiumcodereview.appspot.com/23606006

git-svn-id: svn://svn.chromium.org/blink/trunk@156910 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Refactoring: Add toHTMLFrameSetElement, and use it.

We'd like to avoid bare static_cast.

BUG=none
TEST=none; no behavior changes.

Review URL: https://chromiumcodereview.appspot.com/23702009

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