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

Side by Side Diff: chrome/browser/ui/media_stream_infobar_delegate.h

Issue 10542092: Refactor the content interface for RequestMediaAccessPermission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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 | Annotate | Revision Log
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_UI_MEDIA_STREAM_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_MEDIA_STREAM_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_UI_MEDIA_STREAM_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_MEDIA_STREAM_INFOBAR_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chrome/browser/infobars/infobar_delegate.h" 12 #include "chrome/browser/infobars/infobar_delegate.h"
13 #include "content/public/browser/content_browser_client.h" 13 #include "content/public/browser/web_contents_delegate.h"
14 #include "content/public/common/media_stream_request.h" 14 #include "content/public/common/media_stream_request.h"
15 15
16 class MessageLoop; 16 class MessageLoop;
17 class TabContents; 17 class TabContents;
18 18
19 // This class configures an infobar shown when a page requests access to a 19 // This class configures an infobar shown when a page requests access to a
20 // user's microphone and/or video camera. The user is shown a message asking 20 // user's microphone and/or video camera. The user is shown a message asking
21 // which audio and/or video devices he wishes to use with the current page, and 21 // which audio and/or video devices he wishes to use with the current page, and
22 // buttons to give access to the selected devices to the page, or to deny access 22 // buttons to give access to the selected devices to the page, or to deny access
23 // to them. 23 // to them.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 content::MediaResponseCallback callback_; 72 content::MediaResponseCallback callback_;
73 73
74 // Whether the request is for audio and/or video devices. 74 // Whether the request is for audio and/or video devices.
75 bool has_audio_; 75 bool has_audio_;
76 bool has_video_; 76 bool has_video_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarDelegate); 78 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarDelegate);
79 }; 79 };
80 80
81 #endif // CHROME_BROWSER_UI_MEDIA_STREAM_INFOBAR_DELEGATE_H_ 81 #endif // CHROME_BROWSER_UI_MEDIA_STREAM_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/shell_window.cc ('k') | content/browser/renderer_host/media/media_stream_device_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698