OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/media/android/router/media_router_dialog_controller_and
roid.h" | 5 #include "chrome/browser/media/android/router/media_router_dialog_controller_and
roid.h" |
6 | 6 |
| 7 #include "base/android/context_utils.h" |
7 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
9 #include "chrome/browser/media/android/router/media_router_android.h" | 10 #include "chrome/browser/media/android/router/media_router_android.h" |
10 #include "chrome/browser/media/router/media_router.h" | 11 #include "chrome/browser/media/router/media_router.h" |
11 #include "chrome/browser/media/router/media_router_factory.h" | 12 #include "chrome/browser/media/router/media_router_factory.h" |
12 #include "chrome/browser/media/router/media_source.h" | 13 #include "chrome/browser/media/router/media_source.h" |
13 #include "chrome/browser/media/router/presentation_request.h" | 14 #include "chrome/browser/media/router/presentation_request.h" |
14 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
16 #include "content/public/browser/web_contents_delegate.h" | 17 #include "content/public/browser/web_contents_delegate.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 if (single_existing_route_.get() && | 160 if (single_existing_route_.get() && |
160 single_existing_route_->media_route_id() == routes[0].media_route_id()) { | 161 single_existing_route_->media_route_id() == routes[0].media_route_id()) { |
161 return; | 162 return; |
162 } | 163 } |
163 | 164 |
164 single_existing_route_.reset(new MediaRoute(routes[0])); | 165 single_existing_route_.reset(new MediaRoute(routes[0])); |
165 } | 166 } |
166 | 167 |
167 } // namespace media_router | 168 } // namespace media_router |
168 | 169 |
OLD | NEW |