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

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

Issue 10830353: Introduce InfoBarTabService API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments, merge to LKGR Created 8 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 | 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 #include "chrome/browser/ui/media_stream_infobar_delegate.h" 5 #include "chrome/browser/ui/media_stream_infobar_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/infobars/infobar_tab_helper.h"
8 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
9 #include "grit/theme_resources.h" 10 #include "grit/theme_resources.h"
10 #include "ui/base/resource/resource_bundle.h" 11 #include "ui/base/resource/resource_bundle.h"
11 12
12 MediaStreamInfoBarDelegate::MediaStreamInfoBarDelegate( 13 MediaStreamInfoBarDelegate::MediaStreamInfoBarDelegate(
13 InfoBarTabHelper* tab_helper, 14 InfoBarTabHelper* tab_helper,
14 MediaStreamDevicesController* controller) 15 MediaStreamDevicesController* controller)
15 : InfoBarDelegate(tab_helper), 16 : InfoBarDelegate(tab_helper),
16 controller_(controller) { 17 controller_(controller) {
17 DCHECK(controller_.get()); 18 DCHECK(controller_.get());
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 67 }
67 68
68 InfoBarDelegate::Type MediaStreamInfoBarDelegate::GetInfoBarType() const { 69 InfoBarDelegate::Type MediaStreamInfoBarDelegate::GetInfoBarType() const {
69 return PAGE_ACTION_TYPE; 70 return PAGE_ACTION_TYPE;
70 } 71 }
71 72
72 MediaStreamInfoBarDelegate* 73 MediaStreamInfoBarDelegate*
73 MediaStreamInfoBarDelegate::AsMediaStreamInfoBarDelegate() { 74 MediaStreamInfoBarDelegate::AsMediaStreamInfoBarDelegate() {
74 return this; 75 return this;
75 } 76 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/media_stream_infobar_delegate.h ('k') | chrome/browser/ui/startup/autolaunch_prompt_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698