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

Side by Side Diff: chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc

Issue 10879037: Rename InfoBarTabService -> InfoBarService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix include guard 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/custom_handlers/register_protocol_handler_infobar_deleg ate.h" 5 #include "chrome/browser/custom_handlers/register_protocol_handler_infobar_deleg ate.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/api/infobars/infobar_tab_service.h" 8 #include "chrome/browser/api/infobars/infobar_service.h"
9 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 9 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
11 #include "content/public/browser/user_metrics.h" 11 #include "content/public/browser/user_metrics.h"
12 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 15
16 using content::OpenURLParams; 16 using content::OpenURLParams;
17 using content::Referrer; 17 using content::Referrer;
18 using content::UserMetricsAction; 18 using content::UserMetricsAction;
19 19
20 RegisterProtocolHandlerInfoBarDelegate::RegisterProtocolHandlerInfoBarDelegate( 20 RegisterProtocolHandlerInfoBarDelegate::RegisterProtocolHandlerInfoBarDelegate(
21 InfoBarTabService* infobar_service, 21 InfoBarService* infobar_service,
22 ProtocolHandlerRegistry* registry, 22 ProtocolHandlerRegistry* registry,
23 const ProtocolHandler& handler) 23 const ProtocolHandler& handler)
24 : ConfirmInfoBarDelegate(infobar_service), 24 : ConfirmInfoBarDelegate(infobar_service),
25 registry_(registry), 25 registry_(registry),
26 handler_(handler) { 26 handler_(handler) {
27 } 27 }
28 28
29 InfoBarDelegate::InfoBarAutomationType 29 InfoBarDelegate::InfoBarAutomationType
30 RegisterProtocolHandlerInfoBarDelegate::GetInfoBarAutomationType() const { 30 RegisterProtocolHandlerInfoBarDelegate::GetInfoBarAutomationType() const {
31 return RPH_INFOBAR; 31 return RPH_INFOBAR;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 bool RegisterProtocolHandlerInfoBarDelegate::IsReplacedBy( 104 bool RegisterProtocolHandlerInfoBarDelegate::IsReplacedBy(
105 RegisterProtocolHandlerInfoBarDelegate* delegate) { 105 RegisterProtocolHandlerInfoBarDelegate* delegate) {
106 return handler_.IsEquivalent(delegate->handler_); 106 return handler_.IsEquivalent(delegate->handler_);
107 } 107 }
108 108
109 RegisterProtocolHandlerInfoBarDelegate* 109 RegisterProtocolHandlerInfoBarDelegate*
110 RegisterProtocolHandlerInfoBarDelegate:: 110 RegisterProtocolHandlerInfoBarDelegate::
111 AsRegisterProtocolHandlerInfoBarDelegate() { 111 AsRegisterProtocolHandlerInfoBarDelegate() {
112 return this; 112 return this;
113 } 113 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698