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 |
+ |