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

Unified Diff: content/browser/media/media_internals_handler.h

Issue 68173025: Introduce new interface for MediaInternals updates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add JavaScript. Created 7 years, 1 month 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
Index: content/browser/media/media_internals_handler.h
diff --git a/content/browser/media/media_internals_handler.h b/content/browser/media/media_internals_handler.h
index 4833aee285f3083c7acb0e13a75a3ee278b54560..8ea6f88a46471ceda85078b6ca947b90ece93189 100644
--- a/content/browser/media/media_internals_handler.h
+++ b/content/browser/media/media_internals_handler.h
@@ -35,6 +35,10 @@ class MediaInternalsMessageHandler : public WebUIMessageHandler {
private:
scoped_refptr<MediaInternalsProxy> proxy_;
+ // Reflects whether the chrome://media-internals HTML+JS has finished loading.
+ // If not, it's not safe to send JavaScript calls targeting the page yet.
+ bool page_load_complete_;
+
DISALLOW_COPY_AND_ASSIGN(MediaInternalsMessageHandler);
};

Powered by Google App Engine
This is Rietveld 408576698