| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_BRIDGE_H_ | 6 #define CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "chrome/browser/media/router/media_route.h" | 12 #include "chrome/common/media_router/media_route.h" |
| 13 #include "chrome/browser/media/router/media_sink.h" | 13 #include "chrome/common/media_router/media_sink.h" |
| 14 #include "chrome/browser/media/router/media_source.h" | 14 #include "chrome/common/media_router/media_source.h" |
| 15 #include "url/origin.h" | 15 #include "url/origin.h" |
| 16 | 16 |
| 17 namespace media_router { | 17 namespace media_router { |
| 18 | 18 |
| 19 class MediaRouterAndroid; | 19 class MediaRouterAndroid; |
| 20 | 20 |
| 21 // Wraps the JNI layer between MediaRouterAndroid and ChromeMediaRouter. | 21 // Wraps the JNI layer between MediaRouterAndroid and ChromeMediaRouter. |
| 22 class MediaRouterAndroidBridge { | 22 class MediaRouterAndroidBridge { |
| 23 public: | 23 public: |
| 24 explicit MediaRouterAndroidBridge(MediaRouterAndroid* router); | 24 explicit MediaRouterAndroidBridge(MediaRouterAndroid* router); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 private: | 83 private: |
| 84 MediaRouterAndroid* native_media_router_; | 84 MediaRouterAndroid* native_media_router_; |
| 85 base::android::ScopedJavaGlobalRef<jobject> java_media_router_; | 85 base::android::ScopedJavaGlobalRef<jobject> java_media_router_; |
| 86 | 86 |
| 87 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroidBridge); | 87 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroidBridge); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace media_router | 90 } // namespace media_router |
| 91 | 91 |
| 92 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_BRIDGE_H_ | 92 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_BRIDGE_H_ |
| OLD | NEW |