Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / remoting / host / native_messaging / native_messaging_writer.h
index 6208f91..41f60bf 100644 (file)
@@ -5,8 +5,7 @@
 #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"
+#include "base/files/file.h"
 
 namespace base {
 class Value;
@@ -18,7 +17,7 @@ namespace remoting {
 // webapp.
 class NativeMessagingWriter {
  public:
-  explicit NativeMessagingWriter(base::PlatformFile handle);
+  explicit NativeMessagingWriter(base::File file);
   ~NativeMessagingWriter();
 
   // Sends a message to the Native Messaging client, returning true if
@@ -26,7 +25,7 @@ class NativeMessagingWriter {
   bool WriteMessage(const base::Value& message);
 
  private:
-  net::FileStream write_stream_;
+  base::File write_stream_;
   bool fail_;
 
   DISALLOW_COPY_AND_ASSIGN(NativeMessagingWriter);