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

Unified Diff: content/browser/media/webrtc/webrtc_internals_ui.cc

Issue 2193343002: Cleanup: move content/browser/media/webrtc/ to content/browser/webrtc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/webrtc/webrtc_internals_ui.cc
diff --git a/content/browser/media/webrtc/webrtc_internals_ui.cc b/content/browser/media/webrtc/webrtc_internals_ui.cc
deleted file mode 100644
index c08c9f2fdfa5c3c02a291258bb96bb91109fd65e..0000000000000000000000000000000000000000
--- a/content/browser/media/webrtc/webrtc_internals_ui.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/media/webrtc/webrtc_internals_ui.h"
-
-#include "content/browser/media/webrtc/webrtc_internals_message_handler.h"
-#include "content/grit/content_resources.h"
-#include "content/public/browser/web_contents.h"
-#include "content/public/browser/web_ui.h"
-#include "content/public/browser/web_ui_data_source.h"
-#include "content/public/common/url_constants.h"
-
-namespace content {
-namespace {
-
-WebUIDataSource* CreateWebRTCInternalsHTMLSource() {
- WebUIDataSource* source =
- WebUIDataSource::Create(kChromeUIWebRTCInternalsHost);
-
- source->SetJsonPath("strings.js");
- source->AddResourcePath("webrtc_internals.js", IDR_WEBRTC_INTERNALS_JS);
- source->SetDefaultResource(IDR_WEBRTC_INTERNALS_HTML);
- return source;
-}
-
-} // namespace
-
-////////////////////////////////////////////////////////////////////////////////
-//
-// WebRTCInternalsUI
-//
-////////////////////////////////////////////////////////////////////////////////
-
-WebRTCInternalsUI::WebRTCInternalsUI(WebUI* web_ui)
- : WebUIController(web_ui) {
- web_ui->AddMessageHandler(new WebRTCInternalsMessageHandler());
-
- BrowserContext* browser_context =
- web_ui->GetWebContents()->GetBrowserContext();
- WebUIDataSource::Add(browser_context, CreateWebRTCInternalsHTMLSource());
-}
-
-} // namespace content
« no previous file with comments | « content/browser/media/webrtc/webrtc_internals_ui.h ('k') | content/browser/media/webrtc/webrtc_internals_ui_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698