OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/extensions/api/messaging/native_message_process_host.h" | 5 #include "chrome/browser/extensions/api/messaging/native_message_process_host.h" |
6 | 6 |
7 #include <unistd.h> | 7 #include <unistd.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 return file_util::WriteFileDescriptor(file, data, bytes_to_write); | 62 return file_util::WriteFileDescriptor(file, data, bytes_to_write); |
63 } | 63 } |
64 | 64 |
65 bool NativeMessageProcessHost::ReadData(FileHandle file, | 65 bool NativeMessageProcessHost::ReadData(FileHandle file, |
66 char* data, | 66 char* data, |
67 size_t bytes_to_read) { | 67 size_t bytes_to_read) { |
68 return file_util::ReadFromFD(file, data, bytes_to_read); | 68 return file_util::ReadFromFD(file, data, bytes_to_read); |
69 } | 69 } |
70 | 70 |
71 } // namespace extensions | 71 } // namespace extensions |
OLD | NEW |