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

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

Issue 9706012: Add abstractions that let embedders drive tests of WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove CONTENT_EXPORT on statically linked functions. Merge to head for commit. Created 8 years, 9 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/content_browser_client.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;
18 class TabContentsWrapper; 17 class TabContentsWrapper;
19 18
20 // 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
21 // 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
22 // 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
23 // 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
24 // to them. 23 // to them.
25 class MediaStreamInfoBarDelegate : public InfoBarDelegate { 24 class MediaStreamInfoBarDelegate : public InfoBarDelegate {
26 public: 25 public:
27 MediaStreamInfoBarDelegate( 26 MediaStreamInfoBarDelegate(
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 content::MediaResponseCallback callback_; 72 content::MediaResponseCallback callback_;
74 73
75 // Whether the request is for audio and/or video devices. 74 // Whether the request is for audio and/or video devices.
76 bool has_audio_; 75 bool has_audio_;
77 bool has_video_; 76 bool has_video_;
78 77
79 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarDelegate); 78 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarDelegate);
80 }; 79 };
81 80
82 #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/gtk/web_intent_picker_gtk.h ('k') | chrome/browser/ui/panels/base_panel_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698