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

Side by Side Diff: ash/common/cast_config_delegate.h

Issue 2424183002: Remove Chromecast extension support from cast system tray menu. (Closed)
Patch Set: Additional removals Created 4 years, 1 month 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 ASH_COMMON_CAST_CONFIG_DELEGATE_H_ 5 #ifndef ASH_COMMON_CAST_CONFIG_DELEGATE_H_
6 #define ASH_COMMON_CAST_CONFIG_DELEGATE_H_ 6 #define ASH_COMMON_CAST_CONFIG_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 protected: 79 protected:
80 virtual ~Observer() {} 80 virtual ~Observer() {}
81 81
82 private: 82 private:
83 DISALLOW_ASSIGN(Observer); 83 DISALLOW_ASSIGN(Observer);
84 }; 84 };
85 85
86 virtual ~CastConfigDelegate() {} 86 virtual ~CastConfigDelegate() {}
87 87
88 // Returns true if cast extension is installed.
89 // TODO(jdufault): Remove this function once the CastConfigDelegateChromeos is
90 // gone. See crbug.com/551132.
91 virtual bool HasCastExtension() const = 0;
92
93 // Request fresh data from the backend. When the data is available, all 88 // Request fresh data from the backend. When the data is available, all
94 // registered observers will get called. 89 // registered observers will get called.
95 virtual void RequestDeviceRefresh() = 0; 90 virtual void RequestDeviceRefresh() = 0;
96 91
97 // Cast to a receiver specified by |receiver_id|. 92 // Cast to a receiver specified by |receiver_id|.
98 virtual void CastToReceiver(const std::string& receiver_id) = 0; 93 virtual void CastToReceiver(const std::string& receiver_id) = 0;
99 94
100 // Stop an ongoing cast (this should be a user initiated stop). |activity_id| 95 // Stop an ongoing cast (this should be a user initiated stop). |activity_id|
101 // is the identifier of the activity/route that should be stopped. 96 // is the identifier of the activity/route that should be stopped.
102 virtual void StopCasting(const std::string& activity_id) = 0; 97 virtual void StopCasting(const std::string& activity_id) = 0;
103 98
104 // Does the device have a settings page?
105 // TODO(jdufault): Remove this function once the CastConfigDelegateChromeos is
106 // gone. See crbug.com/551132.
107 virtual bool HasOptions() const = 0;
108
109 // Opens Options page for cast.
110 // TODO(jdufault): Remove this function once the CastConfigDelegateChromeos is
111 // gone. See crbug.com/551132.
112 virtual void LaunchCastOptions() = 0;
113
114 // Add or remove an observer. 99 // Add or remove an observer.
115 virtual void AddObserver(Observer* observer) = 0; 100 virtual void AddObserver(Observer* observer) = 0;
116 virtual void RemoveObserver(Observer* observer) = 0; 101 virtual void RemoveObserver(Observer* observer) = 0;
117 102
118 private: 103 private:
119 DISALLOW_ASSIGN(CastConfigDelegate); 104 DISALLOW_ASSIGN(CastConfigDelegate);
120 }; 105 };
121 106
122 } // namespace ash 107 } // namespace ash
123 108
124 #endif // ASH_COMMON_CAST_CONFIG_DELEGATE_H_ 109 #endif // ASH_COMMON_CAST_CONFIG_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | ash/common/system/chromeos/cast/tray_cast.h » ('j') | chrome/common/extensions/api/_api_features.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698