Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(856)

Unified Diff: sky/engine/core/loader/MojoLoader.cpp

Issue 664573004: Live the dream (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: DEPS Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/loader/MojoLoader.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/loader/MojoLoader.cpp
diff --git a/sky/engine/core/loader/MojoLoader.cpp b/sky/engine/core/loader/MojoLoader.cpp
index 7b958e6a4ce2b219b564a452eed2ae7787fa1d45..9abe1387ee740eedce0e724a000769428fe3f3a0 100644
--- a/sky/engine/core/loader/MojoLoader.cpp
+++ b/sky/engine/core/loader/MojoLoader.cpp
@@ -5,7 +5,6 @@
#include "config.h"
#include "core/loader/MojoLoader.h"
-#include "base/bind.h"
#include "core/dom/Document.h"
#include "core/dom/DocumentInit.h"
#include "core/frame/LocalDOMWindow.h"
@@ -43,18 +42,7 @@ void MojoLoader::load(const KURL& url, ScopedDataPipeConsumerHandle responseStre
// response headers and set them on Document::contentLanguage.
document->startParsing();
-
- m_drainJob = adoptPtr(new DataPipeDrainer(this, responseStream.Pass()));
-}
-
-void MojoLoader::OnDataAvailable(const void* data, size_t numberOfBytes)
-{
- m_frame.document()->parser()->appendBytes(static_cast<const char*>(data), numberOfBytes);
-}
-
-void MojoLoader::OnDataComplete()
-{
- m_frame.document()->parser()->finish();
+ document->parser()->parse(responseStream.Pass());
}
}
« no previous file with comments | « sky/engine/core/loader/MojoLoader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698