Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: chromeos/process_proxy/process_output_watcher.h

Issue 12433023: Move chrome/browser/chromeos/process_proxy to chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/process_proxy/OWNERS ('k') | chromeos/process_proxy/process_output_watcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chromeos/process_proxy/OWNERS ('k') | chromeos/process_proxy/process_output_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698