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

Unified Diff: chrome/browser/ui/ash/media_delegate_chromeos.h

Issue 253183003: Media indicator for background recording task (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/media_delegate_chromeos.h
diff --git a/chrome/browser/ui/ash/media_delegate_chromeos.h b/chrome/browser/ui/ash/media_delegate_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..73704320a37b3562f190c21b3e4a15dace49f533
--- /dev/null
+++ b/chrome/browser/ui/ash/media_delegate_chromeos.h
@@ -0,0 +1,39 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_ASH_MEDIA_DELEGATE_CHROMEOS_H_
+#define CHROME_BROWSER_UI_ASH_MEDIA_DELEGATE_CHROMEOS_H_
+
+#include "ash/media_delegate.h"
+#include "base/memory/weak_ptr.h"
+#include "chrome/browser/media/media_capture_devices_dispatcher.h"
+
+class MediaDelegateChromeOS : public ash::MediaDelegate,
+ MediaCaptureDevicesDispatcher::Observer {
+ public:
+ MediaDelegateChromeOS();
+ virtual ~MediaDelegateChromeOS();
+
+ // ash::MediaDelegate:
+ virtual void HandleMediaNextTrack() OVERRIDE;
+ virtual void HandleMediaPlayPause() OVERRIDE;
+ virtual void HandleMediaPrevTrack() OVERRIDE;
+ virtual ash::MediaCaptureState GetMediaCaptureState(
+ content::BrowserContext* context) OVERRIDE;
+
+ // MediaCaptureDevicesDispatcher::Observer:
+ virtual void OnRequestUpdate(int render_process_id,
+ int render_view_id,
+ const content::MediaStreamDevice& device,
+ const content::MediaRequestState state) OVERRIDE;
+
+ private:
+ void NotifyMediaCaptureChange();
+
+ base::WeakPtrFactory<MediaDelegateChromeOS> weak_ptr_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(MediaDelegateChromeOS);
+};
+
+#endif // CHROME_BROWSER_UI_ASH_MEDIA_DELEGATE_CHROMEOS_H_
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate_views.cc ('k') | chrome/browser/ui/ash/media_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698