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

Unified Diff: chrome/browser/media/android/router/media_router_dialog_controller_android.cc

Issue 1228863005: [MediaRouter] The minimal change to make everything build on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the include for MediaRouterDialogControllerImpl Created 5 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: chrome/browser/media/android/router/media_router_dialog_controller_android.cc
diff --git a/chrome/browser/media/android/router/media_router_dialog_controller_android.cc b/chrome/browser/media/android/router/media_router_dialog_controller_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..74943e480f8b0f31df3d94c235fd685691407e02
--- /dev/null
+++ b/chrome/browser/media/android/router/media_router_dialog_controller_android.cc
@@ -0,0 +1,44 @@
+// Copyright 2015 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 "chrome/browser/media/android/router/media_router_dialog_controller_android.h"
+
+#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/web_contents.h"
+#include "content/public/browser/web_contents_delegate.h"
+
+DEFINE_WEB_CONTENTS_USER_DATA_KEY(
+ media_router::MediaRouterDialogControllerAndroid);
+
+using content::WebContents;
+
+namespace media_router {
+
+// static
+MediaRouterDialogControllerAndroid*
+MediaRouterDialogControllerAndroid::GetOrCreateForWebContents(
+ WebContents* web_contents) {
+ DCHECK(web_contents);
+ // This call does nothing if the controller already exists.
+ MediaRouterDialogControllerAndroid::CreateForWebContents(web_contents);
+ return MediaRouterDialogControllerAndroid::FromWebContents(web_contents);
+}
+
+MediaRouterDialogControllerAndroid::MediaRouterDialogControllerAndroid(
+ WebContents* web_contents) {
+ DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+}
+
+MediaRouterDialogControllerAndroid::~MediaRouterDialogControllerAndroid() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+}
+
+bool MediaRouterDialogControllerAndroid::ShowMediaRouterDialogForPresentation(
+ scoped_ptr<CreatePresentationSessionRequest> request) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ return false;
+}
+
+} // namespace media_router
+

Powered by Google App Engine
This is Rietveld 408576698