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

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

Issue 1314413005: [Presentation API] 1-UA presentation support + presenter APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Yuri's comments; rework of the OffscreenPresentationManager interface Created 5 years, 2 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // The custom controller path. This allows route provider to have custom route 66 // The custom controller path. This allows route provider to have custom route
67 // detail as well as its own route control features route control features in 67 // detail as well as its own route control features route control features in
68 // the media router dialog. 68 // the media router dialog.
69 const std::string& custom_controller_path() const { 69 const std::string& custom_controller_path() const {
70 return custom_controller_path_; 70 return custom_controller_path_;
71 } 71 }
72 72
73 bool for_display() const { return for_display_; } 73 bool for_display() const { return for_display_; }
74 74
75 bool is_offscreen_presentation() const { return is_offscreen_presentation_; }
76 void set_is_offscreen_presentation(bool is_offscreen_presentation) {
77 is_offscreen_presentation = is_offscreen_presentation_;
78 }
79
75 bool Equals(const MediaRoute& other) const; 80 bool Equals(const MediaRoute& other) const;
76 81
77 private: 82 private:
78 MediaRoute::Id media_route_id_; 83 MediaRoute::Id media_route_id_;
79 MediaSource media_source_; 84 MediaSource media_source_;
80 MediaSink::Id media_sink_id_; 85 MediaSink::Id media_sink_id_;
81 std::string description_; 86 std::string description_;
82 bool is_local_; 87 bool is_local_;
83 std::string custom_controller_path_; 88 std::string custom_controller_path_;
84 bool for_display_; 89 bool for_display_;
90 bool is_offscreen_presentation_;
85 }; 91 };
86 92
87 } // namespace media_router 93 } // namespace media_router
88 94
89 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ 95 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698