| 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 #ifndef CHROMEOS_PROCESS_PROXY_PROCESS_OUTPUT_WATCHER_H_ | 5 #ifndef CHROMEOS_PROCESS_PROXY_PROCESS_OUTPUT_WATCHER_H_ |
| 6 #define CHROMEOS_PROCESS_PROXY_PROCESS_OUTPUT_WATCHER_H_ | 6 #define CHROMEOS_PROCESS_PROXY_PROCESS_OUTPUT_WATCHER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/callback.h" | 12 #include "base/callback.h" |
| 11 #include "base/files/file.h" | 13 #include "base/files/file.h" |
| 14 #include "base/macros.h" |
| 12 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 13 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 14 #include "chromeos/chromeos_export.h" | 17 #include "chromeos/chromeos_export.h" |
| 15 | 18 |
| 16 namespace chromeos { | 19 namespace chromeos { |
| 17 | 20 |
| 18 enum ProcessOutputType { | 21 enum ProcessOutputType { |
| 19 PROCESS_OUTPUT_TYPE_OUT, | 22 PROCESS_OUTPUT_TYPE_OUT, |
| 20 PROCESS_OUTPUT_TYPE_EXIT | 23 PROCESS_OUTPUT_TYPE_EXIT |
| 21 }; | 24 }; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 ProcessOutputCallback on_read_callback_; | 69 ProcessOutputCallback on_read_callback_; |
| 67 | 70 |
| 68 base::WeakPtrFactory<ProcessOutputWatcher> weak_factory_; | 71 base::WeakPtrFactory<ProcessOutputWatcher> weak_factory_; |
| 69 | 72 |
| 70 DISALLOW_COPY_AND_ASSIGN(ProcessOutputWatcher); | 73 DISALLOW_COPY_AND_ASSIGN(ProcessOutputWatcher); |
| 71 }; | 74 }; |
| 72 | 75 |
| 73 } // namespace chromeos | 76 } // namespace chromeos |
| 74 | 77 |
| 75 #endif // CHROMEOS_PROCESS_PROXY_PROCESS_OUTPUT_WATCHER_H_ | 78 #endif // CHROMEOS_PROCESS_PROXY_PROCESS_OUTPUT_WATCHER_H_ |
| OLD | NEW |