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

Unified Diff: base/values.h

Issue 7745040: [Sync] Make P2PNotifier behave more like InvalidationNotifier (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « no previous file | base/values.cc » ('j') | chrome/browser/sync/notifier/invalidation_notifier_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/values.h
diff --git a/base/values.h b/base/values.h
index 185729d087de5052c3006ead38acb6a24b8fd530..ed68448674b811c79ea4d14a865ce9b90a2fe755 100644
--- a/base/values.h
+++ b/base/values.h
@@ -101,6 +101,8 @@ class BASE_EXPORT Value {
virtual bool GetAsString(string16* out_value) const;
virtual bool GetAsList(ListValue** out_value);
virtual bool GetAsList(const ListValue** out_value) const;
+ virtual bool GetAsDictionary(DictionaryValue** out_value);
+ virtual bool GetAsDictionary(const DictionaryValue** out_value) const;
Evan Martin 2011/08/26 18:46:33 I think we're trying to move to a different API, l
akalin 2011/08/26 18:56:43 Okay. It seems kinda weird to have a mixture of o
tfarina 2011/08/26 18:59:06 Don't need to add AsDictionary in this patch. The
// This creates a deep copy of the entire Value tree, and returns a pointer
// to the copy. The caller gets ownership of the copy, of course.
@@ -347,6 +349,9 @@ class BASE_EXPORT DictionaryValue : public Value {
key_iterator end_keys() const { return key_iterator(dictionary_.end()); }
// Overridden from Value:
+ virtual bool GetAsDictionary(DictionaryValue** out_value) OVERRIDE;
+ virtual bool GetAsDictionary(
+ const DictionaryValue** out_value) const OVERRIDE;
virtual DictionaryValue* DeepCopy() const OVERRIDE;
virtual bool Equals(const Value* other) const OVERRIDE;
« no previous file with comments | « no previous file | base/values.cc » ('j') | chrome/browser/sync/notifier/invalidation_notifier_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698