Adam Barth 61a2a00c78 Live the dream
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
2014-10-24 16:51:56 -07:00

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