| 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 CHROME_BROWSER_UI_ASH_CAST_CONFIG_DELEGATE_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_CAST_CONFIG_DELEGATE_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_CAST_CONFIG_DELEGATE_CHROMEOS_H_ | 6 #define CHROME_BROWSER_UI_ASH_CAST_CONFIG_DELEGATE_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/cast_config_delegate.h" | 10 #include "ash/common/cast_config_delegate.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 // A class which allows the ash tray to communicate with the cast extension. | 17 // A class which allows the ash tray to communicate with the cast extension. |
| 18 class CastConfigDelegateChromeos : public ash::CastConfigDelegate { | 18 class CastConfigDelegateChromeos : public ash::CastConfigDelegate { |
| 19 public: | 19 public: |
| 20 CastConfigDelegateChromeos(); | 20 CastConfigDelegateChromeos(); |
| 21 ~CastConfigDelegateChromeos() override; | 21 ~CastConfigDelegateChromeos() override; |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 // CastConfigDelegate: | 24 // CastConfigDelegate: |
| 25 bool HasCastExtension() const override; | 25 bool HasCastExtension() const override; |
| 26 void RequestDeviceRefresh() override; | 26 void RequestDeviceRefresh() override; |
| 27 void CastToReceiver(const std::string& receiver_id) override; | 27 void CastToReceiver(const std::string& receiver_id) override; |
| 28 void StopCasting(const std::string& activity_id) override; | 28 void StopCasting(const std::string& activity_id) override; |
| 29 bool HasOptions() const override; | 29 bool HasOptions() const override; |
| 30 void LaunchCastOptions() override; | 30 void LaunchCastOptions() override; |
| 31 void AddObserver(ash::CastConfigDelegate::Observer* observer) override; | 31 void AddObserver(ash::CastConfigDelegate::Observer* observer) override; |
| 32 void RemoveObserver(ash::CastConfigDelegate::Observer* observer) override; | 32 void RemoveObserver(ash::CastConfigDelegate::Observer* observer) override; |
| 33 | 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(CastConfigDelegateChromeos); | 34 DISALLOW_COPY_AND_ASSIGN(CastConfigDelegateChromeos); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace chromeos | 37 } // namespace chromeos |
| 38 | 38 |
| 39 #endif // CHROME_BROWSER_UI_ASH_CAST_CONFIG_DELEGATE_CHROMEOS_H_ | 39 #endif // CHROME_BROWSER_UI_ASH_CAST_CONFIG_DELEGATE_CHROMEOS_H_ |
| OLD | NEW |