#ifndef REMOTING_HOST_NATIVE_MESSAGING_NATIVE_MESSAGING_WRITER_H_
#define REMOTING_HOST_NATIVE_MESSAGING_NATIVE_MESSAGING_WRITER_H_
#include "base/platform_file.h"
#include "net/base/file_stream.h"
namespace base {
class Value;
}
namespace remoting {
class NativeMessagingWriter {
public:
explicit NativeMessagingWriter(base::PlatformFile handle);
~NativeMessagingWriter();
bool WriteMessage(const base::Value& message);
private:
net::FileStream write_stream_;
bool fail_;
DISALLOW_COPY_AND_ASSIGN(NativeMessagingWriter);
};
}
#endif