diff options
author | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-05 04:15:50 +0000 |
---|---|---|
committer | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-05 04:15:50 +0000 |
commit | 43fa5b848147d846761fecbea0317331510dd287 (patch) | |
tree | eae5721b0ae1bd1fb4be7d93e66266a0b2b2beca /dbus/object_path.h | |
parent | 44437a2af771d8302a128a38aa25953ce7eaa51f (diff) | |
download | chromium_src-43fa5b848147d846761fecbea0317331510dd287.zip chromium_src-43fa5b848147d846761fecbea0317331510dd287.tar.gz chromium_src-43fa5b848147d846761fecbea0317331510dd287.tar.bz2 |
Explicitly CHECK arguments in dbus::MessageWriter::AppendString/ObjectPath
Add dbus::IsStringValidObjectPath() and dbus::ObjectPath::IsValid()
BUG=129335
TEST=dbus_unittests
Review URL: https://chromiumcodereview.appspot.com/10502011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140489 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus/object_path.h')
-rw-r--r-- | dbus/object_path.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dbus/object_path.h b/dbus/object_path.h index 59071da..38e1fe2 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; |