1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_ASH_MEDIA_DELEGATE_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_ASH_MEDIA_DELEGATE_CHROMEOS_H_
8 #include "ash/media_delegate.h"
9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
12 class MediaDelegateChromeOS
: public ash::MediaDelegate
,
13 MediaCaptureDevicesDispatcher::Observer
{
15 MediaDelegateChromeOS();
16 ~MediaDelegateChromeOS() override
;
18 // ash::MediaDelegate:
19 void HandleMediaNextTrack() override
;
20 void HandleMediaPlayPause() override
;
21 void HandleMediaPrevTrack() override
;
22 ash::MediaCaptureState
GetMediaCaptureState(
23 content::BrowserContext
* context
) override
;
25 // MediaCaptureDevicesDispatcher::Observer:
26 void OnRequestUpdate(int render_process_id
,
28 content::MediaStreamType stream_type
,
29 const content::MediaRequestState state
) override
;
32 void NotifyMediaCaptureChange();
34 base::WeakPtrFactory
<MediaDelegateChromeOS
> weak_ptr_factory_
;
36 DISALLOW_COPY_AND_ASSIGN(MediaDelegateChromeOS
);
39 #endif // CHROME_BROWSER_UI_ASH_MEDIA_DELEGATE_CHROMEOS_H_