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

Unified Diff: chromecast/base/time_conversions.h

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test + android fixes Created 5 years, 5 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: chromecast/base/time_conversions.h
diff --git a/chromecast/base/time_conversions.h b/chromecast/base/time_conversions.h
new file mode 100644
index 0000000000000000000000000000000000000000..5625d6325c5d5918cc991a8613f4cd2eafc49736
--- /dev/null
+++ b/chromecast/base/time_conversions.h
@@ -0,0 +1,19 @@
+// Copyright (c) 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 CHROMECAST_BASE_TIME_CONVERSIONS_H_
+#define CHROMECAST_BASE_TIME_CONVERSIONS_H_
+
+#include "base/time/time.h"
+#include "chromecast/public/time_delta.h"
+
+namespace chromecast {
+
+// Convenience to convert between base::TimeDelta and chromecast::TimeDelta
+base::TimeDelta ToBaseTimeDelta(TimeDelta delta);
+TimeDelta FromBaseTimeDelta(base::TimeDelta delta);
+
+} // namespace chromecast
+
+#endif // CHROMECAST_BASE_TIME_CONVERSIONS_H_

Powered by Google App Engine
This is Rietveld 408576698