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

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

Issue 1202963004: Gets presentation ID from route ID upon route creation, and overrides previous presentation ID with… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 private: 73 private:
74 MediaRoute::Id media_route_id_; 74 MediaRoute::Id media_route_id_;
75 MediaSource media_source_; 75 MediaSource media_source_;
76 MediaSink media_sink_; 76 MediaSink media_sink_;
77 std::string description_; 77 std::string description_;
78 bool is_local_; 78 bool is_local_;
79 MediaRouteState state_; 79 MediaRouteState state_;
80 }; 80 };
81 81
82 // Return a pair of Presentation ID and URL. If the input route ID is invalid,
83 // a pair of empty strings is returned.
Kevin M 2015/06/24 23:02:07 If a caller is going to use half the pair but disc
Kevin M 2015/06/24 23:02:07 Presentation API support functions should be in pr
Kevin M 2015/06/24 23:02:07 Document the parameters and return type
haibinlu 2015/06/24 23:25:12 Ack. Constructing presentation session message is
haibinlu 2015/06/24 23:25:13 They are obvious in method signature. Not sure abo
haibinlu 2015/06/24 23:25:13 yes, there are lot more fields in the route-id. I
84 std::pair<std::string, std::string> GetPresentationIdAndUrl(
85 const MediaRoute::Id& id);
86
82 } // namespace media_router 87 } // namespace media_router
83 88
84 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ 89 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698