mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This CL plumbs the data pipe from the network stack all the way to the parser thread. We now drain the data pipe on the parser thread, which means network bytes don't need to transit the main thread to reach the parser. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/664573004
28 lines
510 B
C++
28 lines
510 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 MojoLoader_h
|
|
#define MojoLoader_h
|
|
|
|
#include "mojo/public/cpp/system/data_pipe.h"
|
|
#include "platform/weborigin/KURL.h"
|
|
|
|
namespace blink {
|
|
|
|
class LocalFrame;
|
|
|
|
class MojoLoader {
|
|
public:
|
|
explicit MojoLoader(LocalFrame&);
|
|
|
|
void load(const KURL&, mojo::ScopedDataPipeConsumerHandle);
|
|
|
|
private:
|
|
LocalFrame& m_frame;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|