| 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 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_BASE_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_BASE_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_BASE_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_BASE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class MediaRouterBase : public MediaRouter { | 22 class MediaRouterBase : public MediaRouter { |
| 23 public: | 23 public: |
| 24 ~MediaRouterBase() override; | 24 ~MediaRouterBase() override; |
| 25 | 25 |
| 26 std::unique_ptr<PresentationConnectionStateSubscription> | 26 std::unique_ptr<PresentationConnectionStateSubscription> |
| 27 AddPresentationConnectionStateChangedCallback( | 27 AddPresentationConnectionStateChangedCallback( |
| 28 const MediaRoute::Id& route_id, | 28 const MediaRoute::Id& route_id, |
| 29 const content::PresentationConnectionStateChangedCallback& callback) | 29 const content::PresentationConnectionStateChangedCallback& callback) |
| 30 override; | 30 override; |
| 31 | 31 |
| 32 // Called when the off the record (incognito) profile for this instance is | 32 // Called when the incognito profile for this instance is being shut down. |
| 33 // being shut down. This will terminate all off the record media routes. | 33 // This will terminate all incognito media routes. |
| 34 void OnOffTheRecordProfileShutdown() override; | 34 void OnIncognitoProfileShutdown() override; |
| 35 | 35 |
| 36 protected: | 36 protected: |
| 37 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, | 37 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, |
| 38 PresentationConnectionStateChangedCallback); | 38 PresentationConnectionStateChangedCallback); |
| 39 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, | 39 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, |
| 40 PresentationConnectionStateChangedCallbackRemoved); | 40 PresentationConnectionStateChangedCallbackRemoved); |
| 41 | 41 |
| 42 MediaRouterBase(); | 42 MediaRouterBase(); |
| 43 | 43 |
| 44 // Generates a unique presentation id. Shared between Android and desktop. | 44 // Generates a unique presentation id. Shared between Android and desktop. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 std::unique_ptr<InternalMediaRoutesObserver> internal_routes_observer_; | 86 std::unique_ptr<InternalMediaRoutesObserver> internal_routes_observer_; |
| 87 bool initialized_; | 87 bool initialized_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(MediaRouterBase); | 89 DISALLOW_COPY_AND_ASSIGN(MediaRouterBase); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace media_router | 92 } // namespace media_router |
| 93 | 93 |
| 94 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_BASE_H_ | 94 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_BASE_H_ |
| OLD | NEW |