| OLD | NEW |
| 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_CAST_CONFIG_DELEGATE_H_ | 5 #ifndef ASH_CAST_CONFIG_DELEGATE_H_ |
| 6 #define ASH_CAST_CONFIG_DELEGATE_H_ | 6 #define ASH_CAST_CONFIG_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // Fetches the current set of receivers and their possible activities. This | 76 // Fetches the current set of receivers and their possible activities. This |
| 77 // method will lookup the current chromecast extension and query its current | 77 // method will lookup the current chromecast extension and query its current |
| 78 // state. The |callback| will be invoked when the receiver/activity data is | 78 // state. The |callback| will be invoked when the receiver/activity data is |
| 79 // available. | 79 // available. |
| 80 virtual void GetReceiversAndActivities( | 80 virtual void GetReceiversAndActivities( |
| 81 const ReceiversAndActivitesCallback& callback) = 0; | 81 const ReceiversAndActivitesCallback& callback) = 0; |
| 82 | 82 |
| 83 // Cast to a receiver specified by |receiver_id|. | 83 // Cast to a receiver specified by |receiver_id|. |
| 84 virtual void CastToReceiver(const std::string& receiver_id) = 0; | 84 virtual void CastToReceiver(const std::string& receiver_id) = 0; |
| 85 | 85 |
| 86 // Stop ongoing cast. The |activity_id| is the unique identifier associated | 86 // Stop an ongoing cast. |
| 87 // with the ongoing cast. Each receiver has only one possible activity | 87 virtual void StopCasting() = 0; |
| 88 // associated with it. The |activity_id| is available by invoking | |
| 89 // GetReceiversAndActivities(); if the receiver is currently casting, then the | |
| 90 // associated activity data will have an id. This id can be used to stop the | |
| 91 // cast in this method. | |
| 92 virtual void StopCasting(const std::string& activity_id) = 0; | |
| 93 | 88 |
| 94 // Opens Options page for cast. | 89 // Opens Options page for cast. |
| 95 virtual void LaunchCastOptions() = 0; | 90 virtual void LaunchCastOptions() = 0; |
| 96 | 91 |
| 97 private: | 92 private: |
| 98 DISALLOW_ASSIGN(CastConfigDelegate); | 93 DISALLOW_ASSIGN(CastConfigDelegate); |
| 99 }; | 94 }; |
| 100 | 95 |
| 101 } // namespace ash | 96 } // namespace ash |
| 102 | 97 |
| 103 #endif // ASH_CAST_CONFIG_DELEGATE_H_ | 98 #endif // ASH_CAST_CONFIG_DELEGATE_H_ |
| OLD | NEW |