summaryrefslogtreecommitdiffstats
path: root/chromium/sync/util/get_session_name_mac.h
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-08-15 21:46:11 +0200
committerZeno Albisser <zeno.albisser@digia.com>2013-08-15 21:46:11 +0200
commit679147eead574d186ebf3069647b4c23e8ccace6 (patch)
treefc247a0ac8ff119f7c8550879ebb6d3dd8d1ff69 /chromium/sync/util/get_session_name_mac.h
Initial import.
Diffstat (limited to 'chromium/sync/util/get_session_name_mac.h')
-rw-r--r--chromium/sync/util/get_session_name_mac.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/chromium/sync/util/get_session_name_mac.h b/chromium/sync/util/get_session_name_mac.h
new file mode 100644
index 00000000000..e0a81ed1940
--- /dev/null
+++ b/chromium/sync/util/get_session_name_mac.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2012 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 SYNC_UTIL_GET_SESSION_NAME_MAC_H_
+#define SYNC_UTIL_GET_SESSION_NAME_MAC_H_
+
+#include <string>
+
+namespace syncer {
+namespace internal {
+
+// Returns the Hardware model name, without trailing numbers, if
+// possible. See http://www.cocoadev.com/index.pl?MacintoshModels for
+// an example list of models. If an error occurs trying to read the
+// model, this simply returns "Unknown".
+std::string GetHardwareModelName();
+
+} // namespace internal
+} // namespace syncer
+
+#endif // SYNC_UTIL_GET_SESSION_NAME_MAC_H_