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

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

Issue 2264153002: [Presentation API] Add support for multiple URLs in PresentationRequest on Media Router UI side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modify MediaRouterDialogControllerAndroid, format Created 4 years, 3 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_SINK_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SINK_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SINK_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SINK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace media_router { 10 namespace media_router {
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 const std::string& description() const { return description_; } 38 const std::string& description() const { return description_; }
39 void set_domain(const std::string& domain) { 39 void set_domain(const std::string& domain) {
40 domain_ = domain; 40 domain_ = domain;
41 } 41 }
42 const std::string& domain() const { return domain_; } 42 const std::string& domain() const { return domain_; }
43 IconType icon_type() const { return icon_type_; } 43 IconType icon_type() const { return icon_type_; }
44 44
45 bool Equals(const MediaSink& other) const; 45 bool Equals(const MediaSink& other) const;
46 46
47 // For storing in sets and in maps as keys.
48 struct Compare {
49 bool operator()(const MediaSink& sink1, const MediaSink& sink2) const {
50 return sink1.id() < sink2.id();
51 }
52 };
53
47 private: 54 private:
48 // Unique identifier for the MediaSink. 55 // Unique identifier for the MediaSink.
49 MediaSink::Id sink_id_; 56 MediaSink::Id sink_id_;
50 57
51 // Descriptive name of the MediaSink. 58 // Descriptive name of the MediaSink.
52 std::string name_; 59 std::string name_;
53 60
54 // Optional description of the MediaSink. 61 // Optional description of the MediaSink.
55 std::string description_; 62 std::string description_;
56 63
57 // Optional domain of the MediaSink. 64 // Optional domain of the MediaSink.
58 std::string domain_; 65 std::string domain_;
59 66
60 // The type of icon that corresponds with the MediaSink. 67 // The type of icon that corresponds with the MediaSink.
61 IconType icon_type_; 68 IconType icon_type_;
62 }; 69 };
63 70
64 } // namespace media_router 71 } // namespace media_router
65 72
66 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SINK_H_ 73 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698