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

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

Issue 12153002: Move chrome://media-internals to content. This allows us to hide implementation details from the pu… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
Index: content/browser/media/media_internals_handler.cc
===================================================================
--- content/browser/media/media_internals_handler.cc (revision 179909)
+++ content/browser/media/media_internals_handler.cc (working copy)
@@ -2,19 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/webui/media/media_internals_handler.h"
+#include "content/browser/media/media_internals_handler.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/values.h"
-#include "chrome/browser/browser_process.h"
-#include "chrome/browser/ui/webui/media/media_internals_proxy.h"
+#include "content/browser//media/media_internals_proxy.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
-using content::BrowserThread;
+namespace content {
MediaInternalsMessageHandler::MediaInternalsMessageHandler()
: proxy_(new MediaInternalsProxy()) {}
@@ -38,8 +37,9 @@
void MediaInternalsMessageHandler::OnUpdate(const string16& update) {
// Don't try to execute JavaScript in a RenderView that no longer exists.
- content::RenderViewHost* host =
- web_ui()->GetWebContents()->GetRenderViewHost();
+ RenderViewHost* host = web_ui()->GetWebContents()->GetRenderViewHost();
if (host)
host->ExecuteJavascriptInWebFrame(string16(), update);
}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698