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

Unified Diff: chromeos/process_proxy/process_proxy.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/process_output_watcher_unittest.cc ('k') | chromeos/process_proxy/process_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/process_proxy/process_proxy.h
diff --git a/chrome/browser/chromeos/process_proxy/process_proxy.h b/chromeos/process_proxy/process_proxy.h
similarity index 85%
rename from chrome/browser/chromeos/process_proxy/process_proxy.h
rename to chromeos/process_proxy/process_proxy.h
index eaa2758dddf6e7c997586f7c556ab841b911f8ff..65f3d341e12e6ea124109130457a7cec4f11500a 100644
--- a/chrome/browser/chromeos/process_proxy/process_proxy.h
+++ b/chromeos/process_proxy/process_proxy.h
@@ -2,8 +2,8 @@
// 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_PROXY_H_
-#define CHROME_BROWSER_CHROMEOS_PROCESS_PROXY_PROCESS_PROXY_H_
+#ifndef CHROMEOS_PROCESS_PROXY_PROCESS_PROXY_H_
+#define CHROMEOS_PROCESS_PROXY_PROCESS_PROXY_H_
#include <fcntl.h>
#include <signal.h>
@@ -12,12 +12,14 @@
#include <string>
#include "base/memory/ref_counted.h"
-#include "chrome/browser/chromeos/process_proxy/process_output_watcher.h"
+#include "chromeos/process_proxy/process_output_watcher.h"
namespace base {
+class TaskRunner;
class Thread;
} // namespace base
+namespace chromeos {
// Proxy to a single ChromeOS process.
// This is refcounted. Note that output watcher, when it gets triggered owns a
@@ -62,6 +64,8 @@ class ProcessProxy : public base::RefCountedThreadSafe<ProcessProxy> {
// Gets called by output watcher when the process writes something to its
// output streams.
void OnProcessOutput(ProcessOutputType type, const std::string& output);
+ void CallOnProcessOutputCallback(ProcessOutputType type,
+ const std::string& output);
bool StopWatching();
@@ -80,6 +84,7 @@ class ProcessProxy : public base::RefCountedThreadSafe<ProcessProxy> {
bool callback_set_;
ProcessOutputCallback callback_;
+ scoped_refptr<base::TaskRunner> callback_runner_;
bool watcher_started_;
@@ -89,4 +94,6 @@ class ProcessProxy : public base::RefCountedThreadSafe<ProcessProxy> {
DISALLOW_COPY_AND_ASSIGN(ProcessProxy);
};
-#endif // CHROME_BROWSER_CHROMEOS_PROCESS_PROXY_PROCESS_PROXY_H_
+} // namespace chromeos
+
+#endif // CHROMEOS_PROCESS_PROXY_PROCESS_PROXY_H_
« no previous file with comments | « chromeos/process_proxy/process_output_watcher_unittest.cc ('k') | chromeos/process_proxy/process_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698