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

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

Issue 940703002: Make it possible to load a WebFrame from a URL (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Indent Created 5 years, 10 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') | sky/engine/public/web/WebFrame.h » ('j') | 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 d5939881127f84c3744235804302fc4d020e969e..307b34090c577859ae64d707bcfe3717b4a45bd4 100644
--- a/sky/engine/core/loader/MojoLoader.cpp
+++ b/sky/engine/core/loader/MojoLoader.cpp
@@ -17,15 +17,12 @@
namespace blink {
-using namespace mojo;
-
MojoLoader::MojoLoader(LocalFrame& frame)
: m_frame(frame)
{
}
-void MojoLoader::load(const KURL& url, ScopedDataPipeConsumerHandle responseStream)
-{
+void MojoLoader::init(const KURL& url) {
DocumentInit init(url, &m_frame);
// FIXME(sky): Poorly named method for creating the FrameView:
@@ -40,8 +37,11 @@ void MojoLoader::load(const KURL& url, ScopedDataPipeConsumerHandle responseStre
document->setReadyState(Document::Loading);
// FIXME: This should read the Content-Language out of the
// response headers and set them on Document::contentLanguage.
+}
- document->startParsing()->parse(responseStream.Pass(), base::Bind(base::DoNothing));
+void MojoLoader::parse(mojo::ScopedDataPipeConsumerHandle responseStream) {
+ m_frame.document()->startParsing()->parse(responseStream.Pass(),
+ base::Bind(base::DoNothing));
}
}
« no previous file with comments | « sky/engine/core/loader/MojoLoader.h ('k') | sky/engine/public/web/WebFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698