OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_CHROMEOS_PIPE_READER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PIPE_READER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_PIPE_READER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PIPE_READER_H_ |
7 | 7 |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <stdio.h> |
9 #include <string> | 10 #include <string> |
10 #include <sys/stat.h> | 11 #include <sys/stat.h> |
11 #include <sys/types.h> | 12 #include <sys/types.h> |
12 #include <unistd.h> | 13 #include <unistd.h> |
13 | 14 |
14 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
15 | 16 |
16 // Given a named pipe, this class reads data from it and returns it as a string. | 17 // Given a named pipe, this class reads data from it and returns it as a string. |
17 // Currently, we are sending login cookies from the Chrome OS login manager to | 18 // Currently, we are sending login cookies from the Chrome OS login manager to |
18 // Chrome over a named Unix pipe. We want to replace this with DBus, but | 19 // Chrome over a named Unix pipe. We want to replace this with DBus, but |
(...skipping 22 matching lines...) Expand all Loading... |
41 PipeReader() : pipe_(NULL) {} | 42 PipeReader() : pipe_(NULL) {} |
42 | 43 |
43 private: | 44 private: |
44 FILE *pipe_; | 45 FILE *pipe_; |
45 std::string pipe_name_; | 46 std::string pipe_name_; |
46 | 47 |
47 DISALLOW_COPY_AND_ASSIGN(PipeReader); | 48 DISALLOW_COPY_AND_ASSIGN(PipeReader); |
48 }; | 49 }; |
49 | 50 |
50 #endif // CHROME_BROWSER_CHROMEOS_PIPE_READER_H_ | 51 #endif // CHROME_BROWSER_CHROMEOS_PIPE_READER_H_ |
OLD | NEW |