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

Unified Diff: dbus/string_util.h

Issue 10502011: Explicitly CHECK arguments in dbus::MessageWriter::AppendString/ObjectPath (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix wording Created 8 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 | « dbus/object_path.cc ('k') | dbus/string_util.cc » ('j') | dbus/string_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/string_util.h
diff --git a/dbus/string_util.h b/dbus/string_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..e3791ba92602e8df5f7884de504caf323299d176
--- /dev/null
+++ b/dbus/string_util.h
@@ -0,0 +1,18 @@
+// 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 DBUS_STRING_UTIL_H_
+#define DBUS_STRING_UTIL_H_
+#pragma once
+
+#include <string>
+
+namespace dbus {
+
+// Returns true if the specified string is a valid object path.
+bool IsStringValidObjectPath(const std::string& string);
satorux1 2012/06/04 23:29:19 IsValidObjectPath() should suffice. string -> val
hashimoto 2012/06/05 01:50:29 Done.
+
+} // namespace dbus
+
+#endif // DBUS_STRING_UTIL_H_
« no previous file with comments | « dbus/object_path.cc ('k') | dbus/string_util.cc » ('j') | dbus/string_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698