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

Side by Side Diff: chrome/browser/media/router/media_route.h

Issue 1259073004: [Presentation API] Change ListenForSessionMessages API to client-style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698