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

Side by Side Diff: chrome/browser/media/media_stream_capture_indicator.h

Issue 2123863004: ScreenCapture for Android phase1, part II (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: UI tweaking and rebase Created 4 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_ 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_
6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_ 6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Returns true if the |web_contents| is capturing video (e.g., webcam). 48 // Returns true if the |web_contents| is capturing video (e.g., webcam).
49 bool IsCapturingVideo(content::WebContents* web_contents) const; 49 bool IsCapturingVideo(content::WebContents* web_contents) const;
50 50
51 // Returns true if the |web_contents| is capturing audio (e.g., microphone). 51 // Returns true if the |web_contents| is capturing audio (e.g., microphone).
52 bool IsCapturingAudio(content::WebContents* web_contents) const; 52 bool IsCapturingAudio(content::WebContents* web_contents) const;
53 53
54 // Returns true if the |web_contents| itself is being mirrored (e.g., a source 54 // Returns true if the |web_contents| itself is being mirrored (e.g., a source
55 // of media for remote broadcast). 55 // of media for remote broadcast).
56 bool IsBeingMirrored(content::WebContents* web_contents) const; 56 bool IsBeingMirrored(content::WebContents* web_contents) const;
57 57
58 // Called when STOP button in media capture notification is clicked.
59 void NotifyStopped(content::WebContents* web_contents) const;
60
58 private: 61 private:
59 class UIDelegate; 62 class UIDelegate;
60 class WebContentsDeviceUsage; 63 class WebContentsDeviceUsage;
61 friend class WebContentsDeviceUsage; 64 friend class WebContentsDeviceUsage;
62 65
63 friend class base::RefCountedThreadSafe<MediaStreamCaptureIndicator>; 66 friend class base::RefCountedThreadSafe<MediaStreamCaptureIndicator>;
64 ~MediaStreamCaptureIndicator() override; 67 ~MediaStreamCaptureIndicator() override;
65 68
66 // Following functions/variables are executed/accessed only on UI thread. 69 // Following functions/variables are executed/accessed only on UI thread.
67 70
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // A vector which maps command IDs to their associated WebContents 104 // A vector which maps command IDs to their associated WebContents
102 // instance. This is rebuilt each time the status tray icon context menu is 105 // instance. This is rebuilt each time the status tray icon context menu is
103 // updated. 106 // updated.
104 typedef std::vector<content::WebContents*> CommandTargets; 107 typedef std::vector<content::WebContents*> CommandTargets;
105 CommandTargets command_targets_; 108 CommandTargets command_targets_;
106 109
107 DISALLOW_COPY_AND_ASSIGN(MediaStreamCaptureIndicator); 110 DISALLOW_COPY_AND_ASSIGN(MediaStreamCaptureIndicator);
108 }; 111 };
109 112
110 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_ 113 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_CAPTURE_INDICATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698