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

Unified Diff: dbus/object_path.h

Issue 10502011: Explicitly CHECK arguments in dbus::MessageWriter::AppendString/ObjectPath (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix Created 8 years, 6 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/message.cc ('k') | dbus/object_path.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/object_path.h
diff --git a/dbus/object_path.h b/dbus/object_path.h
index 59071daa6e5540d33c36659f0ae98a45f785ff9a..38e1fe2cca536434b92acfaa0fb83ffe729e8a6c 100644
--- a/dbus/object_path.h
+++ b/dbus/object_path.h
@@ -29,6 +29,9 @@ class ObjectPath {
// Retrieves value as a std::string.
const std::string& value() const { return value_; }
+ // Returns true if the value is a valid object path.
+ bool IsValid() const;
+
// Permit sufficient comparison to allow an ObjectPath to be used as a
// key in a std::map.
bool operator<(const ObjectPath&) const;
« no previous file with comments | « dbus/message.cc ('k') | dbus/object_path.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698