| 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_ROUTE_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/containers/small_map.h" | 10 #include "base/containers/small_map.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 const content::PresentationSessionInfo* Get( | 93 const content::PresentationSessionInfo* Get( |
| 94 const MediaRoute::Id& route_id) const; | 94 const MediaRoute::Id& route_id) const; |
| 95 | 95 |
| 96 private: | 96 private: |
| 97 base::SmallMap<std::map<MediaRoute::Id, content::PresentationSessionInfo>> | 97 base::SmallMap<std::map<MediaRoute::Id, content::PresentationSessionInfo>> |
| 98 route_id_to_presentation_; | 98 route_id_to_presentation_; |
| 99 | 99 |
| 100 DISALLOW_COPY_AND_ASSIGN(MediaRouteIdToPresentationSessionMapping); | 100 DISALLOW_COPY_AND_ASSIGN(MediaRouteIdToPresentationSessionMapping); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 // Return a pair of Presentation ID and URL. If the input route ID is invalid, | |
| 104 // a pair of empty strings is returned. | |
| 105 std::pair<std::string, std::string> GetPresentationIdAndUrl( | |
| 106 const MediaRoute::Id& id); | |
| 107 | |
| 108 } // namespace media_router | 103 } // namespace media_router |
| 109 | 104 |
| 110 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ | 105 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ |
| OLD | NEW |