Index: chromeos/process_proxy/process_output_watcher.h |
diff --git a/chrome/browser/chromeos/process_proxy/process_output_watcher.h b/chromeos/process_proxy/process_output_watcher.h |
similarity index 84% |
rename from chrome/browser/chromeos/process_proxy/process_output_watcher.h |
rename to chromeos/process_proxy/process_output_watcher.h |
index 5afa8f3d243103cb41ac1bdcf079c726faa5cbe1..2a58f8a6538e53d20b1b93f51b8def4be751a983 100644 |
--- a/chrome/browser/chromeos/process_proxy/process_output_watcher.h |
+++ b/chromeos/process_proxy/process_output_watcher.h |
@@ -2,12 +2,13 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CHROME_BROWSER_CHROMEOS_PROCESS_PROXY_PROCESS_OUTPUT_WATCHER_H_ |
-#define CHROME_BROWSER_CHROMEOS_PROCESS_PROXY_PROCESS_OUTPUT_WATCHER_H_ |
+#ifndef CHROMEOS_PROCESS_PROXY_PROCESS_OUTPUT_WATCHER_H_ |
+#define CHROMEOS_PROCESS_PROXY_PROCESS_OUTPUT_WATCHER_H_ |
#include <string> |
#include "base/callback.h" |
+#include "chromeos/chromeos_export.h" |
namespace { |
@@ -15,6 +16,8 @@ const int kReadBufferSize = 256; |
} // namespace |
+namespace chromeos { |
+ |
enum ProcessOutputType { |
PROCESS_OUTPUT_TYPE_OUT, |
PROCESS_OUTPUT_TYPE_ERR, |
@@ -26,7 +29,7 @@ typedef base::Callback<void(ProcessOutputType, const std::string&)> |
// This class should live on its own thread because running class makes |
// underlying thread block. It deletes itself when watching is stopped. |
-class ProcessOutputWatcher { |
+class CHROMEOS_EXPORT ProcessOutputWatcher { |
public: |
ProcessOutputWatcher(int out_fd, int stop_fd, |
const ProcessOutputCallback& callback); |
@@ -64,4 +67,7 @@ class ProcessOutputWatcher { |
DISALLOW_COPY_AND_ASSIGN(ProcessOutputWatcher); |
}; |
-#endif // CHROME_BROWSER_CHROMEOS_PROCESS_PROXY_PROCESS_OUTPUT_WATCHER_H_ |
+ |
+} // namespace chromeos |
+ |
+#endif // CHROMEOS_PROCESS_PROXY_PROCESS_OUTPUT_WATCHER_H_ |