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

Unified Diff: chrome/common/service_process_util.h

Issue 2438913003: Require FilePathWatcher destructor to be called in sequence with Watch(). (Closed)
Patch Set: CR thestig #36 (fix comment) Created 4 years, 1 month 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
Index: chrome/common/service_process_util.h
diff --git a/chrome/common/service_process_util.h b/chrome/common/service_process_util.h
index 2c20ec0c7d51624b2f45d017d389dcb178c56596..c264742c9c6c71565f5669027b61973d3f4a8e8a 100644
--- a/chrome/common/service_process_util.h
+++ b/chrome/common/service_process_util.h
@@ -9,8 +9,10 @@
#include <string>
#include "base/callback_forward.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/shared_memory.h"
#include "base/process/process.h"
+#include "base/single_thread_task_runner.h"
#include "build/build_config.h"
#include "mojo/edk/embedder/named_platform_handle.h"
#include "mojo/edk/embedder/scoped_platform_handle.h"
@@ -27,7 +29,6 @@ class NSString;
namespace base {
class CommandLine;
-class SingleThreadTaskRunner;
}
// Return the IPC channel to connect to the service process.
@@ -91,7 +92,7 @@ class ServiceProcessState {
// process (in the same thread that called SignalReady). It can be NULL.
// |task_runner| must be of type IO and is the loop that POSIX uses
// to monitor the service process.
- bool SignalReady(base::SingleThreadTaskRunner* task_runner,
+ bool SignalReady(scoped_refptr<base::SingleThreadTaskRunner> task_runner,
const base::Closure& terminate_task);
// Signal that the service process is stopped.
« no previous file with comments | « chrome/browser/media_galleries/fileapi/picasa_data_provider.cc ('k') | chrome/common/service_process_util_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698