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

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

Issue 2112673002: Removing references to Off the Record from MediaRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More refactoring on rebased code Created 4 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/containers/small_map.h" 10 #include "base/containers/small_map.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // The custom controller path. This allows route provider to have custom route 68 // The custom controller path. This allows route provider to have custom route
69 // detail as well as its own route control features route control features in 69 // detail as well as its own route control features route control features in
70 // the media router dialog. 70 // the media router dialog.
71 const std::string& custom_controller_path() const { 71 const std::string& custom_controller_path() const {
72 return custom_controller_path_; 72 return custom_controller_path_;
73 } 73 }
74 74
75 bool for_display() const { return for_display_; } 75 bool for_display() const { return for_display_; }
76 76
77 // Sets off_the_record. Set this to true when the route was created by an off 77 // Set this to true when the route was created by an incognito profile.
78 // the record (incognito) profile. 78 void set_incognito(bool incognito) { incognito_ = incognito; }
79 void set_off_the_record(bool off_the_record) {
80 off_the_record_ = off_the_record;
81 }
82 79
83 bool off_the_record() const { return off_the_record_; } 80 bool incognito() const { return incognito_; }
84 81
85 bool Equals(const MediaRoute& other) const; 82 bool Equals(const MediaRoute& other) const;
86 83
87 private: 84 private:
88 MediaRoute::Id media_route_id_; 85 MediaRoute::Id media_route_id_;
89 MediaSource media_source_; 86 MediaSource media_source_;
90 MediaSink::Id media_sink_id_; 87 MediaSink::Id media_sink_id_;
91 std::string description_; 88 std::string description_;
92 bool is_local_; 89 bool is_local_;
93 std::string custom_controller_path_; 90 std::string custom_controller_path_;
94 bool for_display_; 91 bool for_display_;
95 bool off_the_record_; 92 bool incognito_;
96 }; 93 };
97 94
98 } // namespace media_router 95 } // namespace media_router
99 96
100 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_ 97 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTE_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/android/router/media_router_android.cc ('k') | chrome/browser/media/router/media_route.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698