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

Unified Diff: chrome/browser/media/media_internals.h

Issue 7602021: Make MediaInternals handle MediaLogEvents. (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 | chrome/browser/media/media_internals.cc » ('j') | chrome/browser/media/media_internals.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/media_internals.h
diff --git a/chrome/browser/media/media_internals.h b/chrome/browser/media/media_internals.h
index a5b62e108438b5f6b777d5dc1519f34a7bc8ce45..22552579ae4ba5affe3e9301c5686494b036e3c9 100644
--- a/chrome/browser/media/media_internals.h
+++ b/chrome/browser/media/media_internals.h
@@ -57,8 +57,13 @@ class MediaInternals : public MediaObserver, public base::NonThreadSafe {
// Sets data_.id.property = value and notifies attached UIs using update_fn.
// id may be any depth, e.g. "video.decoders.1.2.3"
- void UpdateItem(const std::string& update_fn, const std::string& id,
- const std::string& property, Value* value);
+ void SetItemProperty(const std::string& update_fn, const std::string& id,
+ const std::string& property, Value* value);
+
+ // Merges |properties| into data_.id and notifies attached UIs using
+ // update_fn. Takes ownership of |properties|.
+ void SetItemProperties(const std::string& update_fn, const std::string& id,
+ DictionaryValue* properties);
// Calls javascript |function|(|value|) on each attached UI.
void SendUpdate(const std::string& function, Value* value);
« no previous file with comments | « no previous file | chrome/browser/media/media_internals.cc » ('j') | chrome/browser/media/media_internals.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698