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

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

Issue 10209022: Refactor media stream infobar delegate code and also fix a typo (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 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_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"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // and adds it to the |devices| array. 55 // and adds it to the |devices| array.
56 void AddDeviceWithId(content::MediaStreamDeviceType type, 56 void AddDeviceWithId(content::MediaStreamDeviceType type,
57 const std::string& id, 57 const std::string& id,
58 content::MediaStreamDevices* devices); 58 content::MediaStreamDevices* devices);
59 59
60 // InfoBarDelegate: 60 // InfoBarDelegate:
61 virtual InfoBar* CreateInfoBar(InfoBarTabHelper* owner) OVERRIDE; 61 virtual InfoBar* CreateInfoBar(InfoBarTabHelper* owner) OVERRIDE;
62 virtual void InfoBarDismissed() OVERRIDE; 62 virtual void InfoBarDismissed() OVERRIDE;
63 virtual gfx::Image* GetIcon() const OVERRIDE; 63 virtual gfx::Image* GetIcon() const OVERRIDE;
64 virtual Type GetInfoBarType() const OVERRIDE; 64 virtual Type GetInfoBarType() const OVERRIDE;
65 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfobarDelegate() OVERRIDE; 65 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate() OVERRIDE;
66 66
67 // The original request for access to devices. 67 // The original request for access to devices.
68 const content::MediaStreamRequest* request_; 68 const content::MediaStreamRequest* request_;
69 69
70 // The callback that needs to be Run to notify WebRTC of whether access to 70 // The callback that needs to be Run to notify WebRTC of whether access to
71 // audio/video devices was granted or not. 71 // audio/video devices was granted or not.
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/gtk/infobars/media_stream_infobar_gtk.cc ('k') | chrome/browser/ui/media_stream_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698