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

Side by Side Diff: chrome/browser/ui/ash/cast_config_delegate_chromeos.h

Issue 1145833003: Allow the cast tray to function as expected when the installed extension is missing API methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add bug to comment Created 5 years, 7 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
« no previous file with comments | « ash/system/cast/tray_cast.cc ('k') | chrome/browser/ui/ash/cast_config_delegate_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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/cast_config_delegate.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.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 21
22 private: 22 private:
23 ~CastConfigDelegateChromeos() override; 23 ~CastConfigDelegateChromeos() override;
24 24
25 // CastConfigDelegate: 25 // CastConfigDelegate:
26 bool HasCastExtension() const override; 26 bool HasCastExtension() const override;
27 void GetReceiversAndActivities( 27 void GetReceiversAndActivities(
28 const ReceiversAndActivitesCallback& callback) override; 28 const ReceiversAndActivitesCallback& callback) override;
29 void CastToReceiver(const std::string& receiver_id) override; 29 void CastToReceiver(const std::string& receiver_id) override;
30 void StopCasting(const std::string& activity_id) override; 30 void StopCasting() override;
31 void LaunchCastOptions() override; 31 void LaunchCastOptions() override;
32 32
33 DISALLOW_COPY_AND_ASSIGN(CastConfigDelegateChromeos); 33 DISALLOW_COPY_AND_ASSIGN(CastConfigDelegateChromeos);
34 }; 34 };
35 35
36 } // namespace chromeos 36 } // namespace chromeos
37 37
38 #endif // CHROME_BROWSER_UI_ASH_CAST_CONFIG_DELEGATE_CHROMEOS_H_ 38 #endif // CHROME_BROWSER_UI_ASH_CAST_CONFIG_DELEGATE_CHROMEOS_H_
OLDNEW
« no previous file with comments | « ash/system/cast/tray_cast.cc ('k') | chrome/browser/ui/ash/cast_config_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698