| Index: sky/engine/core/loader/MojoLoader.cpp
|
| diff --git a/sky/engine/core/loader/MojoLoader.cpp b/sky/engine/core/loader/MojoLoader.cpp
|
| deleted file mode 100644
|
| index a9c400c09dd8c55ff1b02c4a5a47873b6c92c2b3..0000000000000000000000000000000000000000
|
| --- a/sky/engine/core/loader/MojoLoader.cpp
|
| +++ /dev/null
|
| @@ -1,46 +0,0 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "sky/engine/core/loader/MojoLoader.h"
|
| -
|
| -#include "base/bind.h"
|
| -#include "mojo/public/cpp/system/data_pipe.h"
|
| -#include "sky/engine/core/dom/Document.h"
|
| -#include "sky/engine/core/dom/DocumentInit.h"
|
| -#include "sky/engine/core/dom/DocumentParser.h"
|
| -#include "sky/engine/core/frame/LocalDOMWindow.h"
|
| -#include "sky/engine/core/frame/LocalFrame.h"
|
| -#include "sky/engine/core/loader/FrameLoaderClient.h"
|
| -#include "sky/engine/core/page/Page.h"
|
| -
|
| -namespace blink {
|
| -
|
| -MojoLoader::MojoLoader(LocalFrame& frame)
|
| - : m_frame(frame)
|
| -{
|
| -}
|
| -
|
| -void MojoLoader::init(const KURL& url) {
|
| - DocumentInit init(url, &m_frame);
|
| -
|
| - // FIXME(sky): Poorly named method for creating the FrameView:
|
| - m_frame.loaderClient()->transitionToCommittedForNewPage();
|
| - // Only needed for UseCounter, and thus probably can be removed:
|
| - m_frame.page()->didCommitLoad(&m_frame);
|
| -
|
| - m_frame.setDOMWindow(LocalDOMWindow::create(m_frame));
|
| - RefPtr<Document> document = m_frame.domWindow()->installNewDocument(init);
|
| - // Unclear if we care about DocumentLoadTiming in Sky.
|
| - document->timing()->markNavigationStart();
|
| - document->setReadyState(Document::Loading);
|
| - // FIXME: This should read the Content-Language out of the
|
| - // response headers and set them on Document::contentLanguage.
|
| -}
|
| -
|
| -void MojoLoader::parse(mojo::ScopedDataPipeConsumerHandle responseStream) {
|
| - m_frame.document()->startParsing()->parse(responseStream.Pass(),
|
| - base::Bind(base::DoNothing));
|
| -}
|
| -
|
| -}
|
|
|