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

Unified Diff: services/util/cpp/incident.h

Issue 2024953003: Motown: Move framework/util/incident* so other services can use it (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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
Index: services/util/cpp/incident.h
diff --git a/services/media/framework/util/incident.h b/services/util/cpp/incident.h
similarity index 95%
rename from services/media/framework/util/incident.h
rename to services/util/cpp/incident.h
index 378a58ffe47e7b63728796085caee09a9687644f..26f87e7e1c565b8efb99910a069e74fa10f28254 100644
--- a/services/media/framework/util/incident.h
+++ b/services/util/cpp/incident.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 MOJO_SERVICES_MEDIA_FRAMEWORK_UTIL_INCIDENT_H_
-#define MOJO_SERVICES_MEDIA_FRAMEWORK_UTIL_INCIDENT_H_
+#ifndef MOJO_SERVICES_UTIL_CPP_INCIDENT_H_
+#define MOJO_SERVICES_UTIL_CPP_INCIDENT_H_
#include <functional>
#include <vector>
@@ -11,7 +11,6 @@
#include "base/synchronization/lock.h"
namespace mojo {
-namespace media {
// The Incident class provides a facility for executing code as the consequence
// of some occurrence. This can be useful for building state machines and
@@ -145,7 +144,6 @@ class ThreadsafeIncident {
std::vector<std::function<void()>> consequences_;
};
-} // namespace media
} // namespace mojo
-#endif // MOJO_SERVICES_MEDIA_FRAMEWORK_UTIL_INCIDENT_H_
+#endif // MOJO_SERVICES_UTIL_CPP_INCIDENT_H_

Powered by Google App Engine
This is Rietveld 408576698