Adam Barth 3d8ffb7f52 Make it possible to load a WebFrame from a URL
Previously, the WebFrame need to be created with a data pipe consumer handle.
This CL makes it possible to create a WebFrame with a URL and have the engine
issue the network request.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/940703002
2015-02-18 12:57:51 -08:00

29 lines
626 B
C++

// 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.
#ifndef SKY_ENGINE_CORE_LOADER_MOJOLOADER_H_
#define SKY_ENGINE_CORE_LOADER_MOJOLOADER_H_
#include "mojo/public/cpp/system/data_pipe.h"
#include "sky/engine/platform/weborigin/KURL.h"
namespace blink {
class LocalFrame;
class MojoLoader {
public:
explicit MojoLoader(LocalFrame&);
void init(const KURL&);
void parse(mojo::ScopedDataPipeConsumerHandle);
private:
LocalFrame& m_frame;
};
}
#endif // SKY_ENGINE_CORE_LOADER_MOJOLOADER_H_