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

Unified Diff: third_party/mojo/src/mojo/public/cpp/environment/lib/scoped_task_tracking.h

Issue 1101303002: Update mojo sdk to rev e7270700d671fa8e458b4d8c9e47f7bcfb65da0b (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actualy provide a default TaskTracker impl Created 5 years, 8 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: third_party/mojo/src/mojo/public/cpp/environment/lib/scoped_task_tracking.h
diff --git a/third_party/mojo/src/mojo/public/cpp/environment/lib/scoped_task_tracking.h b/third_party/mojo/src/mojo/public/cpp/environment/lib/scoped_task_tracking.h
new file mode 100644
index 0000000000000000000000000000000000000000..1b0411e805fee9c78dea8d709f8a51ba3cdd713d
--- /dev/null
+++ b/third_party/mojo/src/mojo/public/cpp/environment/lib/scoped_task_tracking.h
@@ -0,0 +1,34 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MOJO_PUBLIC_CPP_ENVIRONMENT_LIB_SCOPED_TASK_TRACKING_H_
+#define MOJO_PUBLIC_CPP_ENVIRONMENT_LIB_SCOPED_TASK_TRACKING_H_
+
+#include "mojo/public/cpp/environment/task_tracker.h"
+#include "mojo/public/cpp/system/macros.h"
+
+namespace mojo {
+namespace internal {
+
+// An RAII wrapper for |TaskTrackingId|.
+class ScopedTaskTracking {
+ public:
+ ScopedTaskTracking(const char* function_name,
+ const char* file_name,
+ int line,
+ const void* program_counter);
+ ScopedTaskTracking(const char* function_name,
+ const char* file_name,
+ int line);
+ ~ScopedTaskTracking();
+
+ private:
+ TaskTrackingId id_;
+ MOJO_DISALLOW_COPY_AND_ASSIGN(ScopedTaskTracking);
+};
+
+} // namespace internal
+} // namespace mojo
+
+#endif // MOJO_PUBLIC_CPP_ENVIRONMENT_SCOPED_TASK_TRACKING_H_

Powered by Google App Engine
This is Rietveld 408576698