mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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
29 lines
626 B
C++
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_
|