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

Side by Side 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: Typo in a chrome/test/BUILD.gn 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/media/android/router/media_router_dialog_controller_and roid.h"
6
7 #include "content/public/browser/browser_thread.h"
8 #include "content/public/browser/web_contents.h"
9 #include "content/public/browser/web_contents_delegate.h"
10
11 DEFINE_WEB_CONTENTS_USER_DATA_KEY(
12 media_router::MediaRouterDialogControllerAndroid);
13
14 using content::WebContents;
15
16 namespace media_router {
17
18 // static
19 MediaRouterDialogController*
20 MediaRouterDialogController::GetOrCreateForWebContents(
21 WebContents* web_contents) {
22 return MediaRouterDialogControllerAndroid::GetOrCreateForWebContents(
23 web_contents);
24 }
25
26 // static
27 MediaRouterDialogControllerAndroid*
28 MediaRouterDialogControllerAndroid::GetOrCreateForWebContents(
29 WebContents* web_contents) {
30 DCHECK(web_contents);
31 // This call does nothing if the controller already exists.
32 MediaRouterDialogControllerAndroid::CreateForWebContents(web_contents);
33 return MediaRouterDialogControllerAndroid::FromWebContents(web_contents);
34 }
35
36 MediaRouterDialogControllerAndroid::MediaRouterDialogControllerAndroid(
37 WebContents* web_contents) {
38 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
39 }
40
41 MediaRouterDialogControllerAndroid::~MediaRouterDialogControllerAndroid() {
42 DCHECK(thread_checker_.CalledOnValidThread());
43 }
44
45 bool MediaRouterDialogControllerAndroid::ShowMediaRouterDialogForPresentation(
46 scoped_ptr<CreateSessionRequest> request) {
47 DCHECK(thread_checker_.CalledOnValidThread());
48 return false;
49 }
50
51 } // namespace media_router
52
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698