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

Unified Diff: base/mac/dispatch_source_mach.h

Issue 1136953012: Move DispatchSourceMach from //sandbox/mac to //base/mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « base/base.gypi ('k') | base/mac/dispatch_source_mach.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/dispatch_source_mach.h
diff --git a/sandbox/mac/dispatch_source_mach.h b/base/mac/dispatch_source_mach.h
similarity index 87%
rename from sandbox/mac/dispatch_source_mach.h
rename to base/mac/dispatch_source_mach.h
index e3a3aa0c7e6051542a7eec7ebde72676de107774..e7d5cb2fbb484da3616c6ab0b91b5eafe380869f 100644
--- a/sandbox/mac/dispatch_source_mach.h
+++ b/base/mac/dispatch_source_mach.h
@@ -2,21 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SANDBOX_MAC_DISPATCH_SOURCE_MACH_H_
-#define SANDBOX_MAC_DISPATCH_SOURCE_MACH_H_
+#ifndef BASE_MAC_DISPATCH_SOURCE_MACH_H_
+#define BASE_MAC_DISPATCH_SOURCE_MACH_H_
#include <dispatch/dispatch.h>
+#include "base/base_export.h"
#include "base/macros.h"
-#include "sandbox/sandbox_export.h"
-namespace sandbox {
+namespace base {
// This class encapsulates a MACH_RECV dispatch source. When this object is
// destroyed, the source will be cancelled and it will wait for the source
// to stop executing work. The source can run on either a user-supplied queue,
// or it can create its own for the source.
-class SANDBOX_EXPORT DispatchSourceMach {
+class BASE_EXPORT DispatchSourceMach {
public:
// Creates a new dispatch source for the |port| and schedules it on a new
// queue that will be created with |name|. When a Mach message is received,
@@ -56,6 +56,6 @@ class SANDBOX_EXPORT DispatchSourceMach {
DISALLOW_COPY_AND_ASSIGN(DispatchSourceMach);
};
-} // namespace sandbox
+} // namespace base
-#endif // SANDBOX_MAC_DISPATCH_SOURCE_MACH_H_
+#endif // BASE_MAC_DISPATCH_SOURCE_MACH_H_
« no previous file with comments | « base/base.gypi ('k') | base/mac/dispatch_source_mach.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698